Merge lp:~seb128/ubuntu-archive-scripts/verdict-not-package into lp:ubuntu-archive-scripts

Proposed by Sebastien Bacher
Status: Superseded
Proposed branch: lp:~seb128/ubuntu-archive-scripts/verdict-not-package
Merge into: lp:ubuntu-archive-scripts
Diff against target: 13 lines (+3/-0)
1 file modified
generate-team-p-m (+3/-0)
To merge this branch: bzr merge lp:~seb128/ubuntu-archive-scripts/verdict-not-package
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email:

Commit message

the 'verdict" entries in the autopkgtest sections are not packages

fix the code with the new britney output

Description of the change

Using the new britney version the yaml has such entries


or the code assumed the autopkgtest section only includes packages entries and hits an error

Traceback (most recent call last):
  File "./generate-team-p-m", line 352, in <module>
  File "./generate-team-p-m", line 265, in main
    for arch, result in sorted(results.items()):
AttributeError: 'str' object has no attribute 'items'

ignoring those lines makes the report work again

To post a comment you must log in.
283. By Sebastien Bacher

ignore verdict entries for block-bug and update-excuse

284. By Sebastien Bacher

exclude the verdit entries from the code it's simpler, thanks Laney!

285. By Sebastien Bacher

simply the template code again

286. By Sebastien Bacher

try reading the xz report first, if not fallback to the uncompressed one

287. By Sebastien Bacher

there is no need to read the report before iterating

288. By Sebastien Bacher

specify the urllib error to catch

289. By Sebastien Bacher

indicate when the fallback url is read and display the error

290. By Sebastien Bacher

don't special case verdicts entries, they are filter out now

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'generate-team-p-m'
2--- generate-team-p-m 2020-04-07 10:02:51 +0000
3+++ generate-team-p-m 2020-06-18 10:36:55 +0000
4@@ -258,6 +258,9 @@
5 prob.waiting = []
6 if 'autopkgtest' in item['reason']:
7 for package, results in sorted(item['policy_info']['autopkgtest'].items()):
8+ # the verdict entries are not packages
9+ if package == 'verdict':
10+ continue
11 regr_arches = []
12 wait_arches = []
13 for arch, result in sorted(results.items()):


People subscribed via source and target branches