[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': try harder to rebuild packages from bullseyue

Holger Levsen gitlab at salsa.debian.org
Fri May 1 00:29:49 BST 2020



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


Commits:
cbdd243a by Holger Levsen at 2020-05-01T01:29:39+02:00
reproducible Debian rebuilder 'thing': try harder to rebuild packages from bullseyue

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_debian_rebuilder_prototype.sh


Changes:

=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -50,8 +50,18 @@ set_poolpath() {
 # define what to rebuild
 #
 
-# query a random .buildinfo file path from builtin-pho db
-BUILTINPHOPATH=$(psql -A -t -c 'SELECT path FROM builds WHERE arch_amd64=true ORDER BY RANDOM() LIMIT 1' buildinfo)
+# we want packages in bullseye first
+CHPATH=/srv/reproducible-results/chdist # FIXME: remove redudancy added for easier testing
+ARCH=amd64
+SUITE=bullseye
+DISTNAME="$SUITE-$ARCH"
+PACKAGES=$(ls $CHPATH/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_binary-${ARCH}_Packages)
+SOURCES=$(ls $CHPATH/$DISTNAME/var/lib/apt/lists/*_dists_${SUITE}_main_source_Sources)
+PKG=$(grep-available . -s Package $SOURCES|sort -R | head -1 | cut -d ' ' -f2)
+VERSION=$(grep-available -S $PKG -s Version $SOURCES | head -1 | cut -d ' ' -f2)
+
+# query a random .buildinfo file path (for that $PKG and $VERSION from bullseye...) from builtin-pho db
+BUILTINPHOPATH=$(psql -A -t -c "SELECT path FROM builds WHERE source='$PKG' AND source_version='$VERSION' AND arch_amd64=true ORDER BY RANDOM() LIMIT 1" buildinfo)
 FILE="$(echo $BUILTINPHOPATH | cut -d '/' -f5-)"
 PKG="$(echo $FILE | cut -d '_' -f1)"
 VERSION="$(echo $FILE | cut -d '_' -f2)"



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/cbdd243aae0b7a74b41552ae6166d6cc9271379e
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/20200430/a4cec7ea/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list