[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible Debian rebuilder 'thing': use builddir and run diff on .buildinfo files after build

Holger Levsen gitlab at salsa.debian.org
Wed Apr 1 18:22:34 BST 2020



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


Commits:
11860066 by Holger Levsen at 2020-04-01T19:19:01+02:00
reproducible Debian rebuilder 'thing': use builddir and run diff on .buildinfo files after build

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

- - - - -
2ae360dd by Holger Levsen at 2020-04-01T19:20:04+02:00
reproduicible Debian: docuement progress on rebuilder prototype

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

- - - - -


2 changed files:

- TODO
- bin/reproducible_debian_rebuilder_prototype.sh


Changes:

=====================================
TODO
=====================================
@@ -64,11 +64,11 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian
 === Debian rebuilder 'thing'
 
 * prototype only dealing with bullseye and amd64 (and arch all packages)
-** first step: download a .buildinfo file and sbuild it - WIP
-*** second step: put result in db
-*** third step: have some scheduler job and a rebuilder job picking up tasks
-*** fourth step: have a smarter scheduler
-*** fifth step: export results as json and html
+** first step: download a .buildinfo file and sbuild it - done
+** second step: put result in db
+** third step: have some scheduler job and a rebuilder job picking up tasks
+** fourth step: have a smarter scheduler
+** fifth step: export results as json and html
 * run jenkins job on pb7 (=buildinfos.d.n), which triggers builds on osuosl173 and stores the results on pb7
 ** keep data in postgresql|sqlite on pb7
 *** pb7 also has the builtin-pho db so it seems natural to join them...


=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -51,6 +51,10 @@ POOLPATH="" 	# declared as a global variable
 set_poolpath	# set it properly
 URLPATH="https://buildinfos.debian.net/buildinfo-pool/$POOLPATH/$PKG"
 
+# hack, should be done better, also with cleanup *after* the job run...
+mkdir $PKG || (rm $PKG -r ; mkdir $PKG)
+cd $PKG
+
 # use gpg here to workaround #955050 in devscripts: debrebuild: please accepted signed .buildinfo files
 output_echo "downloading $URLPATH/$FILE"
 # FIXME: this will fail with unsigned .buildinfo files
@@ -98,6 +102,8 @@ eval $SBUILD
 # show what we did/created
 output_echo "File artifacts:"
 ls -lart
+output_echo "Diff between .buildinfo files:"
+diff $FILE.orig $FILE
 
 # the end
 rm -f $FILE $DEBREBUILD



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/e27aa5ca6b34192a7bf1d871b360182b704c7bba...2ae360ddac6b4642fbd600b737ebde881988ed89

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/e27aa5ca6b34192a7bf1d871b360182b704c7bba...2ae360ddac6b4642fbd600b737ebde881988ed89
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/20200401/d0bf15f7/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list