[Git][qa/jenkins.debian.net][master] jenkins nodes: prepare infom08-i386 to become another rebuilderd-worker
Holger Levsen (@holger)
gitlab at salsa.debian.org
Sat Dec 21 17:29:42 GMT 2024
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
7326d082 by Holger Levsen at 2024-12-21T18:29:17+01:00
jenkins nodes: prepare infom08-i386 to become another rebuilderd-worker
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
11 changed files:
- README.infrastructure
- bin/reproducible_build_workers
- hosts/common/etc/pbuilderrc
- hosts/common/etc/rc.local
- + hosts/infom08-i386/etc/apt/sources.list
- + hosts/infom08-i386/opt/etc/rebuilderd-worker.conf
- + hosts/infom08-i386/opt/usr/libexec/rebuilderd/rebuilder-debian.sh
- hosts/osuosl5-amd64/var/www/html/rebuilderd-setup.html
- job-cfg/reproducible.yaml
- nodes/list.yml
- update_jdn.sh
Changes:
=====================================
README.infrastructure
=====================================
@@ -59,7 +59,7 @@ The nodes are used for these jobs:
* infom01-amd64, doing Debian r-b CI builds
* infom02-amd64, doing Debian r-b CI builds, running in the future
* infom07-i386, running rebuilderd at https://i386.reproduce.debian.net
-* infom08-i386, doing Debian r-b CI builds, running in the future
+* infom08-i386, running rebuilderd-worker for https://i386.reproduce.debian.net
$ sudo apt install openstack-clients
=====================================
bin/reproducible_build_workers
=====================================
@@ -54,10 +54,10 @@ i386_5 ionos12-i386 ionos6-i386
i386_6 ionos6-i386 ionos12-i386
i386_7 ionos12-i386 ionos16-i386
i386_8 ionos16-i386 ionos12-i386
-i386_9 ionos2-i386 infom08-i386
-i386_10 infom08-i386 ionos12-i386
-i386_11 infom08-i386 ionos2-i386
-i386_12 ionos12-i386 infom08-i386
+i386_9 ionos2-i386 ionos6-i386
+i386_10 ionos16-i386 ionos2-i386
+i386_11 ionos6-i386 ionos12-i386
+i386_12 ionos12-i386 ionos16-i386
# arm64
arm64_1 codethink01-arm64 codethink02-arm64
=====================================
hosts/common/etc/pbuilderrc
=====================================
@@ -29,7 +29,7 @@ fi
# needed to ignore failures due to running 398 days in the future…
# (only on those nodes running in the future…)
case $HOSTNAME in
- ionos5-amd64|ionos6-i386|ionos15-amd64|ionos16-i386|codethink01-arm64|codethink03-arm64|infom02-amd64|infom08-i386)
+ ionos5-amd64|ionos6-i386|ionos15-amd64|ionos16-i386|codethink01-arm64|codethink03-arm64|infom02-amd64)
APTGETOPT=(-o Acquire::Check-Valid-Until="false")
;;
*) ;;
=====================================
hosts/common/etc/rc.local
=====================================
@@ -101,7 +101,6 @@ case $(hostname) in
ionos16*) send_back_to_the_future ;;
osuosl2*) send_back_to_the_future time.osuosl.org ;;
infom02*) send_back_to_the_future ch.pool.ntp.org ;;
- infom08*) send_back_to_the_future ch.pool.ntp.org ;;
*) ;;
esac
=====================================
hosts/infom08-i386/etc/apt/sources.list
=====================================
@@ -0,0 +1,23 @@
+#
+# Debian trixie
+#
+deb http://deb.debian.org/debian/ trixie main non-free-firmware contrib non-free
+#deb-src http://deb.debian.org/debian/ trixie main non-free-firmware contrib non-free
+
+#
+# Debian trixie security
+#
+deb http://security.debian.org/ trixie-security main non-free-firmware contrib non-free
+#deb-src http://security.debian.org/ trixie-security main non-free-firmware contrib non-free
+
+#
+# Debian trixie updates
+#
+deb http://deb.debian.org/debian/ trixie-updates main non-free-firmware contrib non-free
+#deb-src http://deb.debian.org/debian/ trixie-updates main non-free-firmware contrib non-free
+
+#
+# Debian trixie-backports
+#
+deb http://deb.debian.org/debian/ trixie-backports main non-free-firmware contrib non-free
+#deb-src http://deb.debian.org/debian/ trixie-backports main non-free-firmware contrib non-free
=====================================
hosts/infom08-i386/opt/etc/rebuilderd-worker.conf
=====================================
@@ -0,0 +1,33 @@
+## The rebuilderd to connect to
+endpoint = "http://127.0.0.1:8484"
+## The server would either allowlist our key or require a signup secret
+#signup_secret = "your_signup_key"
+
+[build]
+#timeout = 86400 # 24 hours
+## Set a maximum build log limit in bytes (default: none).
+## When reaching this limit the log is truncated but the rebuilder backend is *not* terminated.
+max_bytes = 20971520 # 20 MiB ## 10 MiB is upstream default
+## By default build output is forwarded to stdout/stderr.
+## This can be disabled by settings this to true.
+#silent = true
+
+[diffoscope]
+## Generate and attach diffs with diffoscope when rebuilding
+enabled = true
+## Pass additional arguments to diffoscope. Use wisely, some options might not work well.
+#args = ["--max-container-depth", "2", "--fuzzy-threshold", "0"]
+## Set a timeout in seconds after which diffoscope is terminated (default: 3600)
+timeout = 600 # 10 minutes
+## Set a maximum diffoscope output limit in bytes (default: none).
+## When reaching this limit, diffoscope is terminated and the output is truncated.
+max_bytes = 10485760 # 10 MiB
+
+[backend."archlinux"]
+path = "/usr/libexec/rebuilderd/rebuilder-archlinux.sh"
+
+[backend."debian"]
+path = "/opt/usr/libexec/rebuilderd/rebuilder-debian.sh"
+
+[backend."tails"]
+path = "/usr/libexec/rebuilderd/rebuilder-tails.sh"
=====================================
hosts/infom08-i386/opt/usr/libexec/rebuilderd/rebuilder-debian.sh
=====================================
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -xe
+cd "$(dirname "$1")"
+
+mkdir -p etc/apt
+mkdir -p var/lib/apt/lists/
+echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie main' > etc/apt/sources.list
+apt-get -o Dir=. update
+apt-get -o Dir=. source --download-only "$(basename "$1" | cut -d_ -f1)"
+
+/usr/bin/debrebuild --buildresult="${REBUILDERD_OUTDIR}" --builder=sbuild+unshare --cache=/srv/rebuilderd/cache -- "${1}"
=====================================
hosts/osuosl5-amd64/var/www/html/rebuilderd-setup.html
=====================================
@@ -25,10 +25,10 @@
</h1>
<pre>
-(version 0.4, feedback much welcome.)
+(version 0.5, feedback much welcome.)
USER=rebuilderd
-# sudo adduser $USER ; sudo passwd -d $USER
+# sudo adduser --system --home /srv/rebuilderd --group $USER ; sudo passwd -d $USER
REBUILDERD_HOSTNAME=rebuilderd.example.org
# to get a working debrebuild, debootsnap and debsnap (all from src:devscripts)
@@ -36,7 +36,7 @@ sudo apt install devscripts equivs apt-utils mmdebstrap python3-debian python3-p
# needed? (not mentioned in devscripts/README.md) libstring-shellquote-perl
# to get a working sbuild with unshare backend
sudo apt install sbuild uidmap
-# also needed.. ;)
+# also needed
sudo apt install dpkg-dev debian-keyring
#
=====================================
job-cfg/reproducible.yaml
=====================================
@@ -442,7 +442,6 @@
- 'codethink04': { my_arch: 'arm64' }
- 'infom01': { my_arch: 'amd64' }
- 'infom02': { my_arch: 'amd64' }
- - 'infom08': { my_arch: 'i386' }
my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh'
my_naginator_regex: '^E: Couldn.t download .*/Packages'
=====================================
nodes/list.yml
=====================================
@@ -114,7 +114,6 @@
ip: 195.15.242.54
keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID2/4mxitVSFefuyUDQpQ7Seg5dJaaPKG/Mt69IdXqXQ root at infom08
- time: future
# arm64
- hostname: codethink01-arm64.debian.net
=====================================
update_jdn.sh
=====================================
@@ -67,7 +67,7 @@ case $HOSTNAME in
# set correct date
set_correct_date time.osuosl.org
;;
- infom02*|infom08*)
+ infom02*)
# set correct date
set_correct_date ch.pool.ntp.org
;;
@@ -472,7 +472,7 @@ if [ -f /etc/debian_version ] ; then
ionos5-amd64|ionos6-i386|ionos15-amd64|ionos16-i386) DEBS="$DEBS ntpdate" ;;
codethink01*|codethink03*) DEBS="$DEBS ntpdate" ;;
osuosl2*) DEBS="$DEBS ntpdate" ;;
- infom02*|infom08*) DEBS="$DEBS ntpdate" ;;
+ infom02*) DEBS="$DEBS ntpdate" ;;
*) ;;
esac
# needed to run coreboot/openwrt/netbsd/fedora jobs
@@ -1021,10 +1021,6 @@ case $HOSTNAME in
disable_dsa_check_packages
sudo date --set="+398 days +6 hours + 23 minutes"
;;
- infom08-i386)
- disable_dsa_check_packages
- sudo date --set="+398 days +6 hours + 23 minutes"
- ;;
jenkins)
# notify irc on updates of jenkins.d.n
MESSAGE="jenkins.d.n updated to $(cd $BASEDIR ; git describe --always)."
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7326d0824f99d2d162bd7c527976b06e7a99ef04
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7326d0824f99d2d162bd7c527976b06e7a99ef04
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/20241221/7168bca2/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list