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

Holger Levsen (@holger) gitlab at salsa.debian.org
Mon Feb 3 20:12:34 GMT 2025


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


Commits:
fe9d6a85 by Holger Levsen at 2025-02-03T21:12:24+01:00
r.d.n/stats: break the html in blocks of 100 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
=====================================
@@ -115,6 +115,7 @@ def main() -> None:
         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
         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='')
@@ -122,7 +123,12 @@ def main() -> None:
                 print(f'<a href="https://{arch}.reproduce.debian.net/api/v0/builds/{pkg["id"]}/diffoscope">💠</a>', end='')
             print(f'<a href="https://tracker.debian.org/pkg/{pkg["src"]}">🍥</a>', end='')
             print(f'<a href="https://tests.reproducible-builds.org/debian/rb-pkg/trixie/{arch}/{pkg["src"]}.html">♻</a>', end='')
-            print("</span> ")
+            print(" ")
+            span += 1
+            if span == 100:
+              span = 0
+              print("</span><span>")
+        print("</span> ")
         print("</p>")
 
     print('<br/><br/><hr/><a href="https://salsa.debian.org/qa/jenkins.debian.net/-/blob/master/bin/rebuilderd_stats.py">rebuilderd_stats.py<a/> - patches welcome.</main></body></html>')



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/fe9d6a8545aedcbb9f51090caa02620fee9537a5
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/20250203/70a46d60/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list