Loading TODO +8 −0 Original line number Diff line number Diff line Loading @@ -337,11 +337,19 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian *** actually schedule old packages once queue is empty *** also delete unknown packages from db *** check/make sure that updated packages are only scheduled once *** dont schedule blacklisted packages ** make build.sh read & write db *** delete all pkg.needs_build files on disk *** drop all occurrances of pkg.needs_build from the code *** really share /var/log/jenkins/reproducible-stale-builds.log with debian? *** same for /var/log/jenkins/reproducible-race-conditions.log **** i think we want to split those... (into debian and archlinux ones) ** make build respect pacman exit code ** create new job to recreate all pkg pages ** call pkg html function after each build ** cleanup now useless code from scheduler ** create json * fix build.sh: ** build2.log doesnt get deleted if build1 fails Loading bin/reproducible_archlinux_scheduler.sh +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ update_archlinux_repositories() { # # db based scheduler # echo "Processing $repo $pkgbase $version" PKG=$pkgbase SUITE="archlinux_$repo" ARCH="x86_64" Loading @@ -82,6 +83,7 @@ update_archlinux_repositories() { DATE="$(date -u +'%Y-%m-%d %H:%M')" if [ -z "$VERSION" ] ; then # new package, add to db and schedule echo "INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$VERSION', '$SUITE', '$ARCH');" query_db "INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$VERSION', '$SUITE', '$ARCH');" PKGID=$(query_db "SELECT id FROM sources WHERE name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';") #FIXME: enable next line once the db has been initially populated Loading @@ -92,8 +94,10 @@ update_archlinux_repositories() { # known package but with new version, update db and schedule echo $REPO/$pkgbase >> $UPDATED echo "$(date -u ) - we know $REPO/$pkgbase $VERSION, but repo has $version, so rescheduling... " echo "UPDATE sources SET version = '$version' WHERE name = '$PKG' AND suite = '$SUITE' AND architecture='$ARCH';" query_db "UPDATE sources SET version = '$version' WHERE name = '$PKG' AND suite = '$SUITE' AND architecture='$ARCH';" PKGID=$(query_db "SELECT id FROM sources WHERE name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';") echo "INSERT INTO schedule (package_id, date_scheduled) VALUES ('$PKGID', '$DATE');" query_db "INSERT INTO schedule (package_id, date_scheduled) VALUES ('$PKGID', '$DATE');" elif [ "$VERCMP" = "-1" ] ; then Loading Loading
TODO +8 −0 Original line number Diff line number Diff line Loading @@ -337,11 +337,19 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian *** actually schedule old packages once queue is empty *** also delete unknown packages from db *** check/make sure that updated packages are only scheduled once *** dont schedule blacklisted packages ** make build.sh read & write db *** delete all pkg.needs_build files on disk *** drop all occurrances of pkg.needs_build from the code *** really share /var/log/jenkins/reproducible-stale-builds.log with debian? *** same for /var/log/jenkins/reproducible-race-conditions.log **** i think we want to split those... (into debian and archlinux ones) ** make build respect pacman exit code ** create new job to recreate all pkg pages ** call pkg html function after each build ** cleanup now useless code from scheduler ** create json * fix build.sh: ** build2.log doesnt get deleted if build1 fails Loading
bin/reproducible_archlinux_scheduler.sh +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ update_archlinux_repositories() { # # db based scheduler # echo "Processing $repo $pkgbase $version" PKG=$pkgbase SUITE="archlinux_$repo" ARCH="x86_64" Loading @@ -82,6 +83,7 @@ update_archlinux_repositories() { DATE="$(date -u +'%Y-%m-%d %H:%M')" if [ -z "$VERSION" ] ; then # new package, add to db and schedule echo "INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$VERSION', '$SUITE', '$ARCH');" query_db "INSERT into sources (name, version, suite, architecture) VALUES ('$PKG', '$VERSION', '$SUITE', '$ARCH');" PKGID=$(query_db "SELECT id FROM sources WHERE name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';") #FIXME: enable next line once the db has been initially populated Loading @@ -92,8 +94,10 @@ update_archlinux_repositories() { # known package but with new version, update db and schedule echo $REPO/$pkgbase >> $UPDATED echo "$(date -u ) - we know $REPO/$pkgbase $VERSION, but repo has $version, so rescheduling... " echo "UPDATE sources SET version = '$version' WHERE name = '$PKG' AND suite = '$SUITE' AND architecture='$ARCH';" query_db "UPDATE sources SET version = '$version' WHERE name = '$PKG' AND suite = '$SUITE' AND architecture='$ARCH';" PKGID=$(query_db "SELECT id FROM sources WHERE name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';") echo "INSERT INTO schedule (package_id, date_scheduled) VALUES ('$PKGID', '$DATE');" query_db "INSERT INTO schedule (package_id, date_scheduled) VALUES ('$PKGID', '$DATE');" elif [ "$VERCMP" = "-1" ] ; then Loading