guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Ludovic Courtès
Date: Wed, 22 Nov 2023 05:12:26 -0500 (EST)

branch: master
commit ef5437e051a0eb93e7ddbb15ea3cf277be1a85eb
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Nov 22 10:49:55 2023 +0100

    templates: Choose “danger” badge when there are actual new failures.
    
    Fixes a bug in 0daae8bfc902ff3fb00edddfd9d0a60eda018624 whereby a
    “danger” badge would sometimes be displayed even though the “new”
    failures were not introduced by this particular evaluation.
    
    * src/cuirass/templates.scm (evaluation-badges): Use
    ‘build-summary-newly-failed’ rather than
    ‘evaluation-summary-newly-failed’ to choose the type of badge.
---
 src/cuirass/templates.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index 5d18d86..c8e5a37 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -986,7 +986,7 @@ the existing SPEC otherwise."
                                        (number->string
                                         (build-summary-evaluation-id 
evaluation))
                                        "?status=succeeded"))
-             ,((if (> (evaluation-summary-newly-failed absolute) 0)
+             ,((if (> (build-summary-newly-failed evaluation) 0)
                    newly-failed-build-badge
                    failed-build-badge)
                (build-summary-failed evaluation)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]