[Git][qa/jenkins.debian.net][master] reproduce.d.n: include sqlite db size in /stats
Holger Levsen (@holger)
gitlab at salsa.debian.org
Mon Jan 6 23:58:20 GMT 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
3443a5bd by Holger Levsen at 2025-01-07T00:57:38+01:00
reproduce.d.n: include sqlite db size in /stats
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/rebuilderd_stats.py
Changes:
=====================================
bin/rebuilderd_stats.py
=====================================
@@ -5,6 +5,8 @@ from datetime import datetime
from re import search, sub, DOTALL
from sqlite3 import connect
from sys import argv
+from psutil._common import bytes2human
+from os import path
def main() -> None:
@@ -109,6 +111,7 @@ def main() -> None:
"</head><body>"
f"<header><h1>https://<a href=\"/\">{arch}</a>.reproduce.debian.net/ stats</h1></header> <main>"
)
+ print(f"Database size: {db} is {bytes2human(path.getsize(db))}")
print(f"Last changed: {datetime.now().replace(microsecond=0)} - updated every 3h.")
print("<table> <tr> <th>error</th> <th>number of affected bad packages</th> </tr>")
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3443a5bdb821dc16aa8e4ec1fbe8e7e49a748a0e
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3443a5bdb821dc16aa8e4ec1fbe8e7e49a748a0e
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/20250106/3228e0c1/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list