Merge lp:~cprov/britney/boottesting-no-skip-notice into lp:~canonical-ci-engineering/britney/boottesting-support

Proposed by Celso Providelo
Status: Merged
Merged at revision: 460
Proposed branch: lp:~cprov/britney/boottesting-no-skip-notice
Merge into: lp:~canonical-ci-engineering/britney/boottesting-support
Diff against target: 56 lines (+6/-8)
3 files modified
boottest.py (+1/-2)
britney.py (+1/-2)
tests/test_boottest.py (+4/-4)
To merge this branch: bzr merge lp:~cprov/britney/boottesting-no-skip-notice
Reviewer Review Type Date Requested Status
Francis Ginther Approve
Review via email: mp+249240@code.launchpad.net

Description of the change

Stop updating excuses for SKIPPED boottest attempts (noise reduction).

To post a comment you must log in.
Revision history for this message
Francis Ginther (fginther) wrote :

Approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'boottest.py'
2--- boottest.py 2015-02-06 16:43:38 +0000
3+++ boottest.py 2015-02-10 18:54:20 +0000
4@@ -127,11 +127,10 @@
5 This class provides an API for handling the boottest-jenkins
6 integration layer (mostly derived from auto-package-testing/adt):
7 """
8- VALID_STATUSES = ('PASS', 'SKIPPED')
9+ VALID_STATUSES = ('PASS',)
10
11 EXCUSE_LABELS = {
12 "PASS": '<span style="background:#87d96c">Pass</span>',
13- "SKIPPED": '<span style="background:#e5c545">Skipped</span>',
14 "FAIL": '<span style="background:#ff6666">Regression</span>',
15 "RUNNING": '<span style="background:#99ddff">Test in progress</span>',
16 }
17
18=== modified file 'britney.py'
19--- britney.py 2015-02-06 15:38:36 +0000
20+++ britney.py 2015-02-10 18:54:20 +0000
21@@ -1932,8 +1932,7 @@
22 # Only sources whitelisted in the boottest context should
23 # be tested (currently only sources building phone binaries).
24 if not boottest.needs_test(excuse.name, excuse.ver[1]):
25- label = BootTest.EXCUSE_LABELS.get('SKIPPED')
26- excuse.addhtml("Boottest result: %s" % (label))
27+ # Silently skipping.
28 continue
29 # Okay, aggregate required boottests requests.
30 boottest_excuses.append(excuse)
31
32=== modified file 'tests/test_boottest.py'
33--- tests/test_boottest.py 2015-02-06 16:43:38 +0000
34+++ tests/test_boottest.py 2015-02-10 18:54:20 +0000
35@@ -352,7 +352,7 @@
36 def test_skipped_not_on_phone(self):
37 # `Britney` updates boottesting information in excuses when the
38 # package was skipped and marks the package as a valid candidate for
39- # promotion.
40+ # promotion, but no notice about 'boottest' is added to the excuse.
41 context = []
42 context.append(
43 ('apache2', {'Source': 'apache2-src', 'Architecture': 'all',
44@@ -360,9 +360,9 @@
45 self.do_test(
46 context,
47 [r'\bapache2-src\b.*\(- to .*>2.4.8-1ubuntu1<',
48- '<li>Boottest result: {}'.format(
49- boottest.BootTest.EXCUSE_LABELS['SKIPPED']),
50- '<li>Valid candidate'])
51+ '<li>Valid candidate'],
52+ ['<li>Boottest result:'],
53+ )
54
55 def test_skipped_architecture_not_allowed(self):
56 # `Britney` does not trigger boottests for source not yet built on

Subscribers

People subscribed via source and target branches