Merge lp:~xnox/ubuntu-archive-tools/sru-report-autopkgtest-vomit into lp:ubuntu-archive-tools

Proposed by Dimitri John Ledkov
Status: Rejected
Rejected by: Steve Langasek
Proposed branch: lp:~xnox/ubuntu-archive-tools/sru-report-autopkgtest-vomit
Merge into: lp:ubuntu-archive-tools
Diff against target: 64 lines (+11/-12)
1 file modified
sru-report (+11/-12)
To merge this branch: bzr merge lp:~xnox/ubuntu-archive-tools/sru-report-autopkgtest-vomit
Reviewer Review Type Date Requested Status
Dimitri John Ledkov (community) obsolete Disapprove
Ubuntu Package Archive Administrators Pending
Review via email: mp+341570@code.launchpad.net

Description of the change

systemd triggered regressions make the report unreadable

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Just commenting on the visuals here:

It all seems like a decent idea but I think the visual side would still need some work. One thing I'd like to try is to make the build failures in the list smaller. It's quite frequent for some packages to have more than 4-5 failures listed, which suddenly makes it hard to read. Also, the table cells have varying size so the bigger and more ADT failures are listed, the smaller the other columns are - and for the SRU team both the bugs and ADT-result ones are equally important. Speaking of which, maybe we should work a bit on the formatting of the table columns. I'm not saying that previously everything was ok, but now with a new high-width column the tables for each series can potentially look completely different. Maybe we should standardize their sizes somehow?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Please reject this merge proposal

review: Disapprove (obsolete)

Unmerged revisions

1167. By Dimitri John Ledkov

Autopkgtest regression in a standalone column

Currently autopkgtests regressions, make a vomit of a page, if there
are a lot of them. Move them to a separate column, to significantly
shorten the page, and make it easier to go through the autopkgtest
regressions.

This tries to group autopkgtest regressions under a package name, and
make arch tag link to the test log, whilst the regressed package links
to the overall table of tests for said package.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sru-report'
2--- sru-report 2017-10-28 17:29:35 +0000
3+++ sru-report 2018-03-18 00:50:19 +0000
4@@ -271,7 +271,8 @@
5 <table id='%s'>
6 <tr><th>Package</th><th>-release</th><th>-updates</th>
7 <th>-proposed (signer, creator)</th>
8- <th>changelog bugs</th><th>days</th></tr>''' % (release, release))
9+ <th>changelog bugs</th><th>Autopkgtest regressions</th>
10+ <th>days</th></tr>''' % (release, release))
11 for pkg, pub in sorted(pkg_index[release].iteritems(),
12 key=itemgetter(1)):
13 # skip everything that shows up on the kernel SRU reports
14@@ -296,15 +297,8 @@
15 if builds:
16 builds = '<span style="font-size: x-small">%s</span>' % builds
17
18- autopkg_fails = ''
19- for excuse in rpkg['autopkg_fails']:
20- autopkg_fails += '<br/>%s' % excuse
21- if autopkg_fails:
22- autopkg_fails = '<span style="font-size: x-small">%s</span>' \
23- % autopkg_fails
24-
25- print(' <tr><td><a href="%s">%s</a>%s %s</td> ' %
26- (pkgurl, pkg, builds, autopkg_fails))
27+ print(' <tr><td><a href="%s">%s</a>%s</td> ' %
28+ (pkgurl, pkg, builds))
29 print(' <td><a href="%s">%s</a></td> ' %
30 (pkgurl + rpkg['release'], rpkg['release']))
31 print(' <td><a href="%s">%s</a></td> ' %
32@@ -392,10 +386,12 @@
33 'title="%s" %s>%d%s</a>' %
34 (lp_url, b, hover_text.replace('"', ''), cls, b,
35 '(hw)' if 'hw-specific' in t else ''))
36+
37 if antique and removable:
38 proposed_antique.append((releases[release].name, pkg,
39 [str(b) for b in rpkg['bugs']]))
40 print('&nbsp;</td>')
41+ print(' <td>%s</td>' % ' '.join(rpkg['autopkg_fails']))
42 print(' <td>%i</td></tr>' % age)
43 print('</table>')
44
45@@ -677,6 +673,7 @@
46 if 'autopkgtest' not in excuse['policy_info']:
47 continue
48 for testpkg in excuse['policy_info']['autopkgtest']:
49+ autopkg_excuses = []
50 for arch in excuse['policy_info']['autopkgtest'][testpkg]:
51 if excuse['policy_info']['autopkgtest'][testpkg][arch][0] == 'REGRESSION':
52 link = excuse['policy_info']['autopkgtest'][testpkg][arch][1]
53@@ -685,8 +682,10 @@
54 testpkg_idx = testpkg_name[:3]
55 else:
56 testpkg_idx = testpkg_name[0]
57- autopkg_url = 'http://autopkgtest.ubuntu.com/packages/%s/%s/%s/%s' % (testpkg_idx, testpkg_name, release, arch)
58- srus[release][pkg]['autopkg_fails'].append('Regression in autopkgtest for <a href="%s">%s (%s)</a>: <a href="%s">test log</a>' % (autopkg_url, testpkg_name, arch, link))
59+ autopkg_url = 'http://autopkgtest.ubuntu.com/packages/%s/%s' % (testpkg_idx, testpkg_name)
60+ autopkg_excuses.append('<a href="%s">%s </a>' % (link, arch))
61+ if autopkg_excuses:
62+ srus[release][pkg]['autopkg_fails'].append('<a href="%s">%s</a> (%s)' % (autopkg_url, testpkg_name, ' '.join(autopkg_excuses)))
63
64 return srus
65

Subscribers

People subscribed via source and target branches