summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-10 12:59:05 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-10 12:59:05 +0200
commit4320f7cc8da9c9a970d4a7cb5e36c8b7138bd069 (patch)
tree9f48ad410471e1eb223caadcc55312252a058d18
parent00ae28f2e8c659ba2848c1a12683bed483f31c08 (diff)
downloadjenkins.debian.net-4320f7cc8da9c9a970d4a7cb5e36c8b7138bd069.tar.xz
reproducible: run pbuilder with nice ionice -c 3
-rw-r--r--TODO1
-rwxr-xr-xbin/reproducible_build.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index 53b4d0da..dcd2f82e 100644
--- a/TODO
+++ b/TODO
@@ -127,6 +127,7 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian
* watch: android: no debbindiff output?
* watch: swig/subversion (FTBFS, report note at least...)
* watch: hurd-libfuse: should be not for us
+* run pbuilder with timeout 12h
* generate .json for tracker.d.o
* reschedule all pkg tested before oct 06 00:00 UTC (we want to know if they generate .buildinfo files)
* reschedule all files with 0 length .rbuild.log files
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index c999fe00..361ea1d9 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -168,7 +168,7 @@ for SRCPACKAGE in ${PACKAGES} ; do
SKIPPED="${SRCPACKAGE} ${SKIPPED}"
continue
fi
- sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --debbuildopts "-b" --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc 2>&1 | tee -a ${RBUILDLOG}
+ nice ionice -c 3 sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --debbuildopts "-b" --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc 2>&1 | tee -a ${RBUILDLOG}
if [ -f /var/cache/pbuilder/result/${SRCPACKAGE}_${EVERSION}_amd64.changes ] ; then
mkdir b1 b2
dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_${EVERSION}_amd64.changes b1
@@ -176,7 +176,7 @@ for SRCPACKAGE in ${PACKAGES} ; do
# so first delete files from .dsc, then from .changes file
sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_${EVERSION}.dsc
sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_${EVERSION}_amd64.changes
- sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --debbuildopts "-b" --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_${EVERSION}.dsc
+ nice ionice -c 3 sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --debbuildopts "-b" --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_${EVERSION}.dsc
dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_${EVERSION}_amd64.changes b2
# and again (see comment 5 lines above)
sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_${EVERSION}.dsc