[Git][qa/jenkins.debian.net][master] rdn stats: fix syntax

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Aug 30 01:19:37 BST 2025



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
3e5b5b6b by Jochen Sprickerhof at 2025-08-30T02:19:29+02:00
rdn stats: fix syntax

(cherry picked from commit ff6fc669aa0339f67f7361e07e0ec13ad79d24e5)
Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/rebuilderd_stats.py


Changes:

=====================================
bin/rebuilderd_stats.py
=====================================
@@ -42,7 +42,6 @@ def main() -> None:
     )
     parser.add_argument(
         "--release",
-        type=Path,
         help="Release name to filter for",
     )
     parser.add_argument(
@@ -205,12 +204,12 @@ def main() -> None:
 
     db_size = path.getsize(args.db)
     with (args.output_dir / "index.html").open("w") as outfile:
-        output(outfile, args.arch, db_size, total, messages_packages, False, api)
+        output(outfile, args.arch, db_size, total, messages_packages, False, api, args.release)
     with (args.output_dir / "index_size.html").open("w") as outfile:
-        output(outfile, args.arch, db_size, total, messages_packages, True, api)
+        output(outfile, args.arch, db_size, total, messages_packages, True, api, args.release)
 
 
-def output(outfile, arch, db_size, total, messages_packages, size_sort, api):
+def output(outfile, arch, db_size, total, messages_packages, size_sort, api, release):
     with urlopen("https://salsa.debian.org/reproducible-builds/reproducible-notes/-/raw/master/packages.yml?ref_type=heads") as rn:
         rn_bugs = safe_load(rn)
 
@@ -267,7 +266,7 @@ def output(outfile, arch, db_size, total, messages_packages, size_sort, api):
     else:
         ci_arch = arch
 
-    ci_release = args.release.split("-", 1)[0]
+    ci_release = release.split("-", 1)[0]
 
     for message, packages in messages_packages.items():
         anchor = message.replace(" ", "-")



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3e5b5b6b6889de15a2704be5c63f5ea53f4910a3

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3e5b5b6b6889de15a2704be5c63f5ea53f4910a3
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250830/29062975/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list