[Git][qa/jenkins.debian.net][master] rdn: Make script URL agnostic
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Aug 21 09:04:35 BST 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
957034c1 by Jochen Sprickerhof at 2025-08-21T10:04:22+02:00
rdn: Make script URL agnostic
(cherry picked from commit 80bc53a67396af23137dfc86e3c015a10598a2d7)
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/rebuilderd_stats.py
Changes:
=====================================
bin/rebuilderd_stats.py
=====================================
@@ -192,10 +192,10 @@ def output(outfile, arch, db_size, total, messages_packages, size_sort):
print(
'<!DOCTYPE html><html lang="en"><head>'
'<meta charset="utf-8">'
- f"<title>https://reproduce.debian.net/{arch}/stats</title>"
+ f"<title>Debian {arch} rebuilderd stats</title>"
'<meta name="viewport" content="width=device-width, initial-scale=1">'
"</head><body>"
- f'<header><h1>https://<a href="/">reproduce</a>.debian.net/<a href="/{arch}">{arch}</a>/stats</h1></header> <main>',
+ f'<header><h1>Debian <a href="..">{arch}</a> <a href="/">rebuilderd</a> stats</h1></header> <main>',
file=outfile
)
print(f"Database size: {bytes2human(db_size)}<br/>", file=outfile)
@@ -250,9 +250,9 @@ def output(outfile, arch, db_size, total, messages_packages, size_sort):
if not bug_break and not (pkg["src"] in rn_bugs and "bugs" in rn_bugs[pkg["src"]]):
bug_break = True
print("</span></p><p><span>", file=outfile)
- print(f'<a href="https://reproduce.debian.net/{arch}/api/v0/builds/{pkg["id"]}/log">{pkg["name"]}</a> ', end='', file=outfile)
+ print(f'<a href="../api/v0/builds/{pkg["id"]}/log">{pkg["name"]}</a> ', end='', file=outfile)
if pkg["diff"]:
- print(f'<a href="https://reproduce.debian.net/{arch}/api/v0/builds/{pkg["id"]}/diffoscope">💠</a>', end='', file=outfile)
+ print(f'<a href="../api/v0/builds/{pkg["id"]}/diffoscope">💠</a>', end='', file=outfile)
print(f'<a href="https://tracker.debian.org/pkg/{pkg["src"]}">🍥</a>', end='', file=outfile)
print(f'<a href="https://tests.reproducible-builds.org/debian/rb-pkg/trixie/{ci_arch}/{pkg["src"]}.html">🔬</a>', end='', file=outfile)
if pkg["src"] in rn_bugs and "bugs" in rn_bugs[pkg["src"]]:
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/957034c16a74902c85757f3102be9753c6171cc1
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/957034c16a74902c85757f3102be9753c6171cc1
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/20250821/53af30bd/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list