This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch main
in repository guix-cuirass.

The following commit(s) were added to refs/heads/main by this push:
     new 0042ce2  database: Set ‘starttime’ and ‘stoptime’ for 
‘failed-dependency’.
0042ce2 is described below

commit 0042ce2a83ea7cf4dd4b8df08ab3183bd6ffe31d
Author: Ludovic Courtès <[email protected]>
AuthorDate: Sat Oct 5 22:52:05 2024 +0200

    database: Set ‘starttime’ and ‘stoptime’ for ‘failed-dependency’.
    
    Previously, builds that were immediately marked as ‘failed-dependency’,
    from the ‘db-add-build-dependencies’ call, would have their ‘starttime’
    and ‘stoptime’ set to zero.
    
    * src/cuirass/database.scm (db-mark-as-failed-if-dependencies-failed):
    Set ‘starttime’ and ‘stoptime’.
---
 src/cuirass/database.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index 3ae0a42..3737684 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -1185,7 +1185,10 @@ dependencies."
     (with-timing-check (format #f "checking for failed dependencies of '~a'"
                                drv)
       (unless (zero? (exec-query/bind db "
-UPDATE Builds SET status = " (build-status failed-dependency) "
+UPDATE Builds
+   SET status = " (build-status failed-dependency) ",
+       starttime = extract(epoch from now())::int,
+       stoptime = extract(epoch from now())::int
 FROM
   (SELECT count(Builds.id) AS total FROM Builds
    LEFT JOIN BuildDependencies AS bd ON bd.target = Builds.id

Reply via email to