[Qa-jenkins-scm] [jenkins.debian.net] 04/04: chroot-installs: drop jobs with upgrade apt-dpkg first (and add them to the zombie check)

Holger Levsen holger at layer-acht.org
Sat Aug 5 16:26:28 UTC 2017


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 2a36fbce0ba3e69d5f5bd8e69c90654cd1b3d83a
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Aug 5 12:23:12 2017 -0400

    chroot-installs: drop jobs with upgrade apt-dpkg first (and add them to the zombie check)
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/chroot-installation.sh            |  7 -------
 bin/reproducible_node_health_check.sh |  2 +-
 job-cfg/chroot-installation.yaml.py   | 16 +---------------
 3 files changed, 2 insertions(+), 23 deletions(-)

diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh
index f86febe..76d6127 100755
--- a/bin/chroot-installation.sh
+++ b/bin/chroot-installation.sh
@@ -137,18 +137,11 @@ echo "set +x" >> $CTMPFILE
 }
 
 prepare_upgrade2() {
-	# support _aptdpkg_first type upgrade jobs...
-	if [ "${JOB_NAME: -14}" = "_aptdpkg_first" ] ; then
-		APTDPKGFIRST="apt-get -y install dpkg apt"
-	else
-		APTDPKGFIRST=""
-	fi
 	cat >> $CTMPFILE <<-EOF
 echo "deb $MIRROR $1 main" > /etc/apt/sources.list.d/$1.list
 $SCRIPT_HEADER
 set -x
 apt-get update
-$APTDPKGFIRST
 apt-get -y upgrade
 apt-get clean
 apt-get -yf dist-upgrade
diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh
index 760ecbd..d29e6db 100755
--- a/bin/reproducible_node_health_check.sh
+++ b/bin/reproducible_node_health_check.sh
@@ -145,7 +145,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
 	# and we dont know why and when that happens,
 	# so just report those zombies here.
 	#
-	ZOMBIES=$(ls -1d /var/lib/jenkins/jobs/* | egrep 'reproducible_(builder_(amd64|i386|armhf|arm64)|setup_(pbuilder|schroot)_testing)|chroot-installation_wheezy|ff64a|jtk1a|odc2a' || true)
+	ZOMBIES=$(ls -1d /var/lib/jenkins/jobs/* | egrep 'reproducible_(builder_(amd64|i386|armhf|arm64)|setup_(pbuilder|schroot)_testing)|chroot-installation_wheezy|aptdpkg|ff64a|jtk1a|odc2a' || true)
 	if [ ! -z "$ZOMBIES" ] ; then
 		echo "Warning, rise of the jenkins job zombies has started again, these jobs should not exist:"
 		for z in $ZOMBIES ; do
diff --git a/job-cfg/chroot-installation.yaml.py b/job-cfg/chroot-installation.yaml.py
index 5cc46a2..cbdedeb 100755
--- a/job-cfg/chroot-installation.yaml.py
+++ b/job-cfg/chroot-installation.yaml.py
@@ -195,13 +195,6 @@ jobspecs = [
       'distfilter': (lambda d: tuple(set(d) & set(distro_upgrades))),
       'skiptaryet': (lambda t: False)
     },
-    { 'j_ext': '_upgrade_to_{dist2}_aptdpkg_first',
-      'd_ext': ', then upgrade apt and dpkg to {dist2} and then everything else',
-      's_ext': ' {dist2}',
-      'dist_func': (lambda d: [{dist: {'dist2': distro_upgrades[dist]}} for dist in d]),
-      'distfilter': (lambda d: tuple((set(d) & set(distro_upgrades)))),
-      'skiptaryet': (lambda t: t[:10] == 'education-')
-    },
 ]
 
 # some functions first…
@@ -284,13 +277,6 @@ data.append(
 data.append(
     {   'job-template': {   'defaults': 'chroot-installation',
                             'name': '{name}_{dist}_install_{target}_upgrade_to_{dist2}'}})
-data.append(
-    {   'job-template': {   'defaults': 'chroot-installation',
-                            'name': '{name}_{dist}_{action}_upgrade_to_{dist2}_aptdpkg_first'}})
-data.append(
-    {   'job-template': {   'defaults': 'chroot-installation',
-                            'name': '{name}_{dist}_install_{target}_upgrade_to_{dist2}_aptdpkg_first'}})
-
 # maintenance jobs
 maint_distros = []
 for base_distro in sorted(base_distros):
@@ -299,7 +285,7 @@ for base_distro in sorted(base_distros):
         trigger = 'chroot-installation_{dist}_bootstrap'
         for item in distro_upgrades.items():
             if item[1]==base_distro and base_distro in distro_upgrades:
-                trigger = trigger+', chroot-installation_{dist}_bootstrap_upgrade_to_{dist2}, chroot-installation_{dist}_bootstrap_upgrade_to_{dist2}_aptdpkg_first'
+                trigger = trigger+', chroot-installation_{dist}_bootstrap_upgrade_to_{dist2}'
                 dist2 = distro_upgrades[base_distro]
     else:
         trigger = 'chroot-installation_{dist}_bootstrap_upgrade_to_{dist2}'

-- 
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