[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: count source packages on which diffoscope time outs or crashes so that we can graph that

Holger Levsen holger at layer-acht.org
Wed Sep 28 23:26:52 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 2add97c65d0a23c12c01e3ac0c7b66f9b9687d8f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Sep 29 01:24:15 2016 +0200

    reproducible debian: count source packages on which diffoscope time outs or crashes so that we can graph that
---
 bin/reproducible_html_breakages.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index 8a03734..fb06d78 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -16,6 +16,7 @@ def unrep_with_dbd_issues():
     log.info('running unrep_with_dbd_issues check...')
     without_dbd = []
     bad_dbd = []
+    sources_without_dbd = []
     query = '''SELECT s.name, r.version, s.suite, s.architecture
                FROM sources AS s JOIN results AS r ON r.package_id=s.id
                WHERE r.status="unreproducible"
@@ -27,6 +28,8 @@ def unrep_with_dbd_issues():
             eversion + '.diffoscope.html'
         if not os.access(dbd, os.R_OK):
             without_dbd.append((pkg, version, suite, arch))
+            if pkg not in sources_without_dbd:
+                sources_without_dbd.append(pkg)
             log.warning(suite + '/' + arch + '/' + pkg + ' (' + version + ') is '
                         'unreproducible without diffoscope file.')
         else:
@@ -37,7 +40,9 @@ def unrep_with_dbd_issues():
                 log.warning(suite + '/' + arch + '/' + pkg + ' (' + version + ') has '
                             'diffoscope output, but it does not seem to '
                             'be an html page.')
-    return without_dbd, bad_dbd
+                if pkg not in sources_without_dbd:
+                    sources_without_dbd.append(pkg)
+    return without_dbd, bad_dbd, sources_without_dbd
 
 
 def not_unrep_with_dbd_file():
@@ -290,7 +295,7 @@ def gen_html():
     html += _gen_section('have been built but don\'t have a .buildinfo file:',
                          lack_buildinfo())
     # diffoscope troubles
-    without_dbd, bad_dbd = unrep_with_dbd_issues()
+    without_dbd, bad_dbd, sources_without_dbd = unrep_with_dbd_issues()
     html += _gen_section('are marked as unreproducible, but there is no ' +
                          'diffoscope output - so probably diffoscope ' +
                          'crashed:', without_dbd)
@@ -298,6 +303,9 @@ def gen_html():
                          'diffoscope output does not seem to be an html ' +
                          'file - so probably diffoscope ran into a ' +
                          'timeout:', bad_dbd)
+    # TODO: graph this
+    html += str(len(sources_without_dbd))
+    html += ' source packages on which diffoscope ran into a timeout or crashed.'
     # pbuilder-satisfydepends failed
     html += _gen_section('failed to satisfy their build-dependencies:',
                          pbuilder_dep_fail())

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