From a39ed67180fa93d30de2d85cd8f486f34f4e0591 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 12 Mar 2025 16:18:18 -0400 Subject: [PATCH] Do no store timestamps in the build result in the build hook case The variables are only set by CGroup mechanisms in `killSandbox` in the local build. In the build hook case, these variables will not be set, so there is nothing to do. --- src/libstore/build/derivation-goal.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index 3e7778656..77ab559a6 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -922,14 +922,6 @@ Goal::Co DerivationGoal::hookDone() /* Close the log file. */ closeLogFile(); - if (buildResult.cpuUser && buildResult.cpuSystem) { - debug("builder for '%s' terminated with status %d, user CPU %.3fs, system CPU %.3fs", - worker.store.printStorePath(drvPath), - status, - ((double) buildResult.cpuUser->count()) / 1000000, - ((double) buildResult.cpuSystem->count()) / 1000000); - } - try { /* Check the exit status. */