diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-09-29 01:24:15 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-09-29 01:24:15 +0200 |
commit | 2add97c65d0a23c12c01e3ac0c7b66f9b9687d8f (patch) | |
tree | 64c39c8e138f969719f3f116cc463493db5689fa | |
parent | 69bb44f13854b87235680f4f56040da42cf568b4 (diff) | |
download | jenkins.debian.net-2add97c65d0a23c12c01e3ac0c7b66f9b9687d8f.tar.xz |
reproducible debian: count source packages on which diffoscope time outs or crashes so that we can graph that
-rwxr-xr-x | bin/reproducible_html_breakages.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py index 8a037342..fb06d78c 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()) |