[Git][qa/jenkins.debian.net][master] rdn stats: fix grouping and simplify code
Holger Levsen (@holger)
gitlab at salsa.debian.org
Wed Jun 10 09:38:23 BST 2026
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
a2b7889a by Jochen Sprickerhof at 2026-06-10T10:38:13+02:00
rdn stats: fix grouping and simplify code
(cherry picked from commit 2431e98c7d6a9f0b144a8fdc2a740938f180562b)
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/rebuilderd_stats.py
Changes:
=====================================
bin/rebuilderd_stats.py
=====================================
@@ -262,11 +262,10 @@ def output(outfile, arch, db_size, total, messages_packages, size_sort, api, rel
print('<p>Packages are grouped by having a bug in <a href="https://salsa.debian.org/reproducible-builds/reproducible-notes">reproducible-notes</a> and sorted by build time (newer logs later) inside the group. There is also a <a href="index_size.html">page</a> sorted by diffoscope size.</p>', file=outfile)
def sorter(pkg):
- if rn_bug := rn_bugs.get(pkg["src"]):
- if any(x in rn_bug for x in ("bugs", "comments", "issues")):
- if size_sort and pkg["diff"]:
- return 1 - 1 / pkg["diff"]
- return -1
+ if any(x in rn_bugs.get(pkg["src"], []) for x in ("bugs", "comments", "issues")):
+ if size_sort and pkg["diff"]:
+ return 1 - 1 / pkg["diff"]
+ return -1
if size_sort and pkg["diff"]:
return pkg["diff"]
return 1
@@ -287,7 +286,7 @@ def output(outfile, arch, db_size, total, messages_packages, size_sort, api, rel
bug_break = False
print("<p><span>", file=outfile)
for pkg in sorted(packages, key=sorter):
- if not bug_break and (pkg["src"] not in rn_bugs or ("bugs" not in rn_bugs[pkg["src"]] and "comments" not in rn_bugs[pkg["src"]])):
+ if not bug_break and not any(x in rn_bugs.get(pkg["src"], []) for x in ("bugs", "comments", "issues")):
bug_break = True
print("</span></p><p><span>", file=outfile)
print(f'<a href="../{api}/builds/{pkg["id"]}/log">{pkg["name"]}</a> ', end='', file=outfile)
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a2b7889a5b6453c03e22ddc402cbd2b53032c75c
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a2b7889a5b6453c03e22ddc402cbd2b53032c75c
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20260610/f3526190/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list