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: mp+385998@code.launchpad.net

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

    autopkgtest:
      verdict: REJECTED_TEMPORARILY

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>
    main()
  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
=== modified file 'generate-team-p-m'
--- generate-team-p-m 2020-04-07 10:02:51 +0000
+++ generate-team-p-m 2020-06-18 10:36:55 +0000
@@ -258,6 +258,9 @@
258 prob.waiting = []258 prob.waiting = []
259 if 'autopkgtest' in item['reason']:259 if 'autopkgtest' in item['reason']:
260 for package, results in sorted(item['policy_info']['autopkgtest'].items()):260 for package, results in sorted(item['policy_info']['autopkgtest'].items()):
261 # the verdict entries are not packages
262 if package == 'verdict':
263 continue
261 regr_arches = []264 regr_arches = []
262 wait_arches = []265 wait_arches = []
263 for arch, result in sorted(results.items()):266 for arch, result in sorted(results.items()):

Subscribers

People subscribed via source and target branches