[Git][qa/jenkins.debian.net][master] fixup: r.d.n/stats: break the html in blocks of 256 pkgs to address rendering issues

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Feb 5 12:41:17 GMT 2025



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


Commits:
0fa4fc68 by Holger Levsen at 2025-02-05T13:40:47+01:00
fixup: r.d.n/stats: break the html in blocks of 256 pkgs to address rendering issues

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/rebuilderd_stats.py


Changes:

=====================================
bin/rebuilderd_stats.py
=====================================
@@ -114,10 +114,9 @@ def main() -> None:
         message = sub(r'(#)([0-9]*)', r'https://bugs.debian.org/\2', message)
         message = sub(r'(https://[a-z.A-Z_0-9/]*)', r'<a href="\1">\1</a>', message)
         print(f'\n<h2 id="{anchor}">{message}</h2>')
-        print("<p>")
         span = 0
+        print("<p><span>")
         for pkg in packages:
-            print("<span>")
             print(f'<a href="https://{arch}.reproduce.debian.net/api/v0/builds/{pkg["id"]}/log">{pkg["name"]}</a>', end='')
             if pkg["diff"]:
                 print(f'<a href="https://{arch}.reproduce.debian.net/api/v0/builds/{pkg["id"]}/diffoscope">💠</a>', end='')
@@ -125,9 +124,9 @@ def main() -> None:
             print(f'<a href="https://tests.reproducible-builds.org/debian/rb-pkg/trixie/{arch}/{pkg["src"]}.html">♻</a>', end='')
             print(" ")
             span += 1
-            if span == 100:
-              span = 0
-              print("</span><span>")
+            if span == 256:
+                span = 0
+                print("</span><span>")
         print("</span> ")
         print("</p>")
 



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/0fa4fc68fe7e7958e09e8d2956afe7796a3fc209
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/20250205/a84ad2d3/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list