[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible debian: json: export NFU and blacklist status to...
Mattia Rizzolo (@mattia)
gitlab at salsa.debian.org
Mon May 31 14:43:57 BST 2021
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
37d9cc75 by Mattia Rizzolo at 2021-05-31T15:43:47+02:00
reproducible debian: json: export NFU and blacklist status to reproducible.json, but keep excluding them from tracker.json
these status are useful for things like clean-notes, and there is no reason to hide them from there
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- bin/reproducible_json.py
Changes:
=====================================
bin/reproducible_json.py
=====================================
@@ -38,7 +38,7 @@ distro_id = get_distribution_id(DISTRO)
# filter_query is defined in reproducible_common.py and excludes some FTBFS issues
query = text("SELECT s.name, r.version, s.suite, s.architecture, r.status, r.build_date " + \
"FROM results AS r JOIN sources AS s ON r.package_id = s.id "+ \
- "WHERE status != '' AND s.distribution = :distro AND status NOT IN ('NFU', 'E404', 'blacklisted' ) AND (( status != 'FTBFS' ) OR " \
+ "WHERE status != '' AND s.distribution = :distro AND status NOT IN ('E404') AND (( status != 'FTBFS' ) OR " \
" ( status = 'FTBFS' and r.package_id NOT IN (SELECT n.package_id FROM NOTES AS n WHERE " + filter_query + " )))")
result = sorted(query_db(query, distro=distro_id))
@@ -62,6 +62,10 @@ for row in result:
# tracker.d.o should only care about results in testing
if pkg['suite'] == 'bullseye':
+ if pkg["status"] in ("NFU", "blacklisted"):
+ # don't export these states in reproducible-tracker.json
+ continue
+
package = pkg['package']
if package in crossarch:
# compare statuses to get cross-arch package status
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/37d9cc7531f6f027c1ad1f7076b6d51d64b6bece
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/37d9cc7531f6f027c1ad1f7076b6d51d64b6bece
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210531/b9a42199/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list