[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: look for reproducible_build.sh processes with pid 1 as parent (=orphans) and let the maintenance job become unstable if found

Holger Levsen holger at moszumanska.debian.org
Thu Jan 7 21:08:41 UTC 2016


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 db01d0bb08820168ad39ead186143242699e5a65
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Jan 7 22:08:29 2016 +0100

    reproducible: look for reproducible_build.sh processes with pid 1 as parent (=orphans) and let the maintenance job become unstable if found
---
 bin/reproducible_maintenance.sh | 8 ++++++++
 logparse/reproducible.rules     | 1 +
 2 files changed, 9 insertions(+)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 430b5d9..851384b 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -328,6 +328,14 @@ if [ ! -z "$PSCALL" ] ; then
 	echo
 fi
 
+# find builds which should not be there
+RESULTS=$(pgrep -f reproducible_build.sh --parent 1 || true)
+if [ ! -z "$RESULTS" ] ; then
+	DIRTY=true
+	echo "Warning: found reproducible_build.sh processes which have pid 1 as parent (and not sshd), thus something went wrong… please investigate."
+	echo -e "$RESULTS"
+
+fi
 
 # remove artifacts older than a day
 echo "$(date -u) - Checking for artifacts older than a day."
diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules
index dbd54bc..09ccbfe 100644
--- a/logparse/reproducible.rules
+++ b/logparse/reproducible.rules
@@ -7,6 +7,7 @@ warning /Warning: .+ contains invalid yaml, please fix./
 warning /Warning: lock .+ still exists, exiting./
 warning /Warning: Tried, but failed to delete these:/
 warning /Warning: processes found which should not be there/
+warning /Warning: found reproducible_build.sh processes which have pid 1 as parent.+/
 warning /Warning: Found files with bad permissions.+/
 warning /Warning: .+ could not be fully removed.+/
 warning /Warning: cannot update html pages for.+/

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