[Git][qa/jenkins.debian.net][master] r.d.n: pkgsync script: refactoring
Holger Levsen (@holger)
gitlab at salsa.debian.org
Sat Apr 5 22:05:14 BST 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
b7358b4e by Holger Levsen at 2025-04-05T23:04:58+02:00
r.d.n: pkgsync script: refactoring
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- TODO.rebuilderd-systemd-units
- bin/rebuilderd_pkgsync.sh
Changes:
=====================================
TODO.rebuilderd-systemd-units
=====================================
@@ -1,5 +1,8 @@
-pkg sync unit
+pkg sync timers
run every 6h +- 30min, 2.5h after dinstall
+ https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html#RandomizedDelaySec=
+ + a big AccuracySec=
+
rebuilderd backup
unit or script which stops and disables the rebuilded service
=====================================
bin/rebuilderd_pkgsync.sh
=====================================
@@ -35,7 +35,12 @@ shift
# REBUILDERD_COOKIE_PATH could be set by service
export REBUILDERD_COOKIE_PATH=/srv/rebuilderd/$ARCH/.auth-cookie
while true ; do
- /opt/usr/bin/rebuildctl -H http://127.0.0.1:$PORT pkgs sync-profile --sync-config /opt/etc/rebuilderd-sync-${ARCH}.conf debian-main --print-json | jq "$JQQUERY" | jq -s | /opt/usr/bin/rebuildctl -H http://127.0.0.1:$PORT pkgs sync-stdin debian main
+ /opt/usr/bin/rebuildctl -H http://127.0.0.1:$PORT pkgs sync-profile \
+ --sync-config /opt/etc/rebuilderd-sync-${ARCH}.conf debian-main \
+ --print-json \
+ | jq "$JQQUERY" \
+ | jq -s \
+ | /opt/usr/bin/rebuildctl -H http://127.0.0.1:$PORT pkgs sync-stdin debian main
ST=$(shuf -i 150-210 -n 1)
echo sleeping ${ST}m now
sleep ${ST}m
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b7358b4ea8d7e504a740f271e74d87dd43d2caa6
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b7358b4ea8d7e504a740f271e74d87dd43d2caa6
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/20250405/b68e550f/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list