Merge lp:~seb128/ubuntu-archive-scripts/display-components-mismatch into lp:ubuntu-archive-scripts

Proposed by Sebastien Bacher
Status: Merged
Merged at revision: 299
Proposed branch: lp:~seb128/ubuntu-archive-scripts/display-components-mismatch
Merge into: lp:ubuntu-archive-scripts
Diff against target: 51 lines (+16/-0)
2 files modified
generate-team-p-m (+6/-0)
templates/team-report.html (+10/-0)
To merge this branch: bzr merge lp:~seb128/ubuntu-archive-scripts/display-components-mismatch
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+391370@code.launchpad.net

Commit message

Display component mismatch information in the team report

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

That's a bit hackish but seems there is no better way from the yaml currently available (or we would need to add a new section to the proposed migration output that can be parsed)

296. By Sebastien Bacher

Display component mismatch information in the team report

Revision history for this message
Sebastien Bacher (seb128) wrote :

example output on

https://people.canonical.com/~seb128/reportmismatch.html

the lintian entry is one example

Revision history for this message
Steve Langasek (vorlon) :
review: Approve

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-09-18 15:04:17 +0000
3+++ generate-team-p-m 2020-09-25 14:26:50 +0000
4@@ -193,6 +193,7 @@
5 unsatdepends = attr.ib(default=None) # [string]
6 unsatbuilddep = attr.ib(default=None) # [string]
7 brokenbin = attr.ib(default=None) # [string]
8+ componentmismatch = attr.ib(default=None) # [string]
9
10 _age = attr.ib(default=None)
11
12@@ -267,6 +268,7 @@
13 in_proposed_packages[source_package_name] = prob
14 prob.regressions = []
15 prob.waiting = []
16+ prob.componentmismatch = []
17 # The verdict entries are not items to list on the report
18 for policy in ['autopkgtest', 'update-excuse', 'block-bugs']:
19 try:
20@@ -290,6 +292,10 @@
21 prob.regressions.append(regr)
22 if wait_arches:
23 prob.waiting.append((package + ": " + ", ".join(wait_arches)))
24+ if 'depends' in item['reason']:
25+ for l in item['excuses']:
26+ if 'cannot depend on' in l:
27+ prob.componentmismatch.append(l)
28 if 'dependencies' in item and 'unsatisfiable-dependencies' in item['dependencies']:
29 unsatd = defaultdict(list)
30 for arch, packages in item['dependencies']['unsatisfiable-dependencies'].items():
31
32=== modified file 'templates/team-report.html'
33--- templates/team-report.html 2020-09-17 19:50:01 +0000
34+++ templates/team-report.html 2020-09-25 14:26:50 +0000
35@@ -116,6 +116,16 @@
36 {% if prob.brokenbin %}
37 <li>Binaries broken by the update: {{ prob.brokenbin | join(' ') }}</li>
38 {% endif %}
39+ {% if prob.componentmismatch %}
40+ <li>
41+ Component mismatch entries
42+ <ul>
43+ {% for component in prob.componentmismatch %}
44+ <li> {{ component }} </li>
45+ {% endfor %}
46+ </ul>
47+ </li>
48+ {% endif %}
49 {% if d["policy_info"]["block-bugs"] %}
50 <li>Blocked by bug:
51 {% for bug in d["policy_info"]["block-bugs"]|map("int")|sort|map("string") %}

Subscribers

People subscribed via source and target branches