[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: deal gracefully with dose-deb-coinstall failures
Holger Levsen
holger at moszumanska.debian.org
Sat May 9 10:34:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit afd1bc3ae35acc5871a02ec07f1ac71a47c6fb43
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat May 9 12:34:38 2015 +0200
reproducible: deal gracefully with dose-deb-coinstall failures
---
bin/reproducible_create_meta_pkg_sets.sh | 43 +++++++++++++++++++++++---------
logparse/reproducible.rules | 1 +
2 files changed, 32 insertions(+), 12 deletions(-)
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index 5659c7f..e972d11 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -68,6 +68,17 @@ update_if_similar() {
fi
}
+get_installable_set() {
+ set +e
+ schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE
+ RESULT=$?
+ if [ $RESULT -ne 0 ] ; then
+ rm $TMPFILE
+ echo "Warning: dose-deb-coinstall cannot calculate the installable set for $1"
+ fi
+ set -e
+}
+
update_pkg_sets() {
# the essential package set
if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[1]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[3]}.pkgset ] ; then
@@ -87,9 +98,11 @@ update_pkg_sets() {
if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[3]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[3]}.pkgset ] ; then
chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FBuild-Essential yes --or -FPackage build-essential \) > ${TMPFILE2}
# here we want the installable set:
- schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE
- convert_from_deb822_into_source_packages_only
- update_if_similar ${META_PKGSET[3]}.pkgset
+ get_installable_set ${META_PKGSET[3]}.pkgset
+ if [ -f $TMPFILE ] ; then
+ convert_from_deb822_into_source_packages_only
+ update_if_similar ${META_PKGSET[3]}.pkgset
+ fi
fi
# build-essential-depends
@@ -151,9 +164,11 @@ update_pkg_sets() {
# gnome and everything it depends on
if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[8]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[8]}.pkgset ] ; then
chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FPackage gnome \) > ${TMPFILE2}
- schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE
- convert_from_deb822_into_source_packages_only
- update_if_similar ${META_PKGSET[8]}.pkgset
+ get_installable_set ${META_PKGSET[8]}.pkgset
+ if [ -f $TMPFILE ] ; then
+ convert_from_deb822_into_source_packages_only
+ update_if_similar ${META_PKGSET[8]}.pkgset
+ fi
fi
# The build-depends of X tasks can be solved once dose-ceve is able to read
@@ -178,9 +193,11 @@ update_pkg_sets() {
# kde and everything it depends on
if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[10]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[10]}.pkgset ] ; then
chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FPackage kde-full \) > ${TMPFILE2}
- schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE
- convert_from_deb822_into_source_packages_only
- update_if_similar ${META_PKGSET[10]}.pkgset
+ get_installable_set ${META_PKGSET[10]}.pkgset
+ if [ -f $TMPFILE ] ; then
+ convert_from_deb822_into_source_packages_only
+ update_if_similar ${META_PKGSET[10]}.pkgset
+ fi
fi
# all build depends of kde
rm -f $TMPFILE
@@ -195,9 +212,11 @@ update_pkg_sets() {
# xfce and everything it depends on
if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[12]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[12]}.pkgset ] ; then
chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FPackage xfce4 \) > ${TMPFILE2}
- schroot --directory /tmp -c source:jenkins-dpkg-jessie -- dose-deb-coinstall --deb-native-arch=$ARCH --bg=$PACKAGES --fg=${TMPFILE2} > $TMPFILE
- convert_from_deb822_into_source_packages_only
- update_if_similar ${META_PKGSET[12]}.pkgset
+ get_installable_set ${META_PKGSET[12]}.pkgset
+ if [ -f $TMPFILE ] ; then
+ convert_from_deb822_into_source_packages_only
+ update_if_similar ${META_PKGSET[12]}.pkgset
+ fi
fi
# all build depends of xfce
rm -f $TMPFILE
diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules
index a5094a4..f2d04fd 100644
--- a/logparse/reproducible.rules
+++ b/logparse/reproducible.rules
@@ -18,3 +18,4 @@ warning /Warning: package .+is probably already building elsewhere, exiting./
warning /Warning: too much difference for .+, aborting. Please investigate and update manually./
warning /Warning: This query produces no results:.+/
warning /Warning: couldn't delete old files from.+/
+warning /Warning: dose-deb-coinstall cannot.+/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list