From d1f6ef1a704c11d2a7f0d74ae9895b61b1bbc314 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 20 May 2015 02:39:03 +0200 Subject: reproducible: breakages: add a lack_buildinfo check --- bin/reproducible_breakages.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_breakages.py') diff --git a/bin/reproducible_breakages.py b/bin/reproducible_breakages.py index 5ea2261f..444d9ea5 100755 --- a/bin/reproducible_breakages.py +++ b/bin/reproducible_breakages.py @@ -85,6 +85,25 @@ def lack_rbuild(): return bad_pkgs +def lack_buildinfo(): + log.info('running lack_buildinfo check...') + bad_pkgs = [] + 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 NOT IN ("blacklisted", "not for us", "FTBFS", "") + ORDER BY s.name ASC, s.suite DESC''' + results = query_db(query) + for pkg, version, suite, arch in results: + eversion = strip_epoch(version) + buildinfo = BUILDINFO_PATH + '/' + suite + '/' + arch + '/' + pkg + \ + '_' + eversion + '_' + arch + '.buildinfo' + if not os.access(buildinfo, os.R_OK): + bad_pkgs.append((pkg, version, suite, arch)) + log.warning(pkg + '/' + suite + ' (' + version + ') has been ' + 'successfully built, but a .buildinfo is missing') + return bad_pkgs + + def pbuilder_dep_fail(): log.info('running pbuilder_dep_fail check...') bad_pkgs = [] @@ -226,9 +245,11 @@ def gen_html(): # debbindiff report where it shouldn't be html += _gen_section('are not marked as unreproducible, but they ' + 'have a debbindiff file:', not_unrep_with_dbd_file()) - # missing buildlog + # missing files html += _gen_section('are built but don\'t have a buildlog:', lack_rbuild()) + html += _gen_section('are built but don\'t have a .buildinfo file:', + lack_buildinfo()) # pbuilder-satisfydepends failed html += _gen_section('failed to match their build-dependencies:', pbuilder_dep_fail()) -- cgit v1.2.3-70-g09d2