Merge ~jbicha/britney/+git/https-autopkgtest:master into ~ubuntu-release/britney/+git/britney2-ubuntu:master

Proposed by Jeremy Bícha
Status: Needs review
Proposed branch: ~jbicha/britney/+git/https-autopkgtest:master
Merge into: ~ubuntu-release/britney/+git/britney2-ubuntu:master
Diff against target: 68 lines (+9/-9)
2 files modified
britney2/policies/autopkgtest.py (+2/-2)
tests/test_autopkgtest.py (+7/-7)
Reviewer Review Type Date Requested Status
Ubuntu Release Team Pending
Review via email: mp+345302@code.launchpad.net
To post a comment you must log in.

Unmerged commits

9dfab29... by Jeremy Bícha

Use https for autopkgtest.ubuntu.com

c3fe5dc... by Iain Lane

run-autopkgtest: Pass SUDO_USER as the requester if it's set

No place to hide

100a3f4... by Steve Langasek

adjust variable name for ubuntu-sru as well

336b115... by Steve Langasek

adjust variable name so that hints files can reflect actual team names

82b448e... by Steve Langasek

devel series hints are governed by the release team, not the archive team

88b4d02... by Mathieu Trudel-Lapierre

Use the CSafeLoader YAML loader to catch issues with complex objects

b16530a... by Mathieu Trudel-Lapierre

Flatten the defaultdict(set) for unsat_deps into a standard dict for output

f32907a... by Mathieu Trudel-Lapierre

Fix review issues.

80bf906... by Mathieu Trudel-Lapierre

Re-add 'unsatisfiable dependencies' information which dropped with the excuses key.

94bffad... by Steve Langasek

As near as I can tell, the 'excuses' element within the yaml data is a
complete duplication of other structured data elsewhere in the yaml, and
does nothing but slow down the yaml parsing. So, just avoid emitting it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py
2index 806debd..03e7162 100644
3--- a/britney2/policies/autopkgtest.py
4+++ b/britney2/policies/autopkgtest.py
5@@ -188,7 +188,7 @@ class AutopkgtestPolicy(BasePolicy):
6
7 # add test result details to Excuse
8 verdict = PolicyVerdict.PASS
9- cloud_url = "http://autopkgtest.ubuntu.com/packages/%(h)s/%(s)s/%(r)s/%(a)s"
10+ cloud_url = "https://autopkgtest.ubuntu.com/packages/%(h)s/%(s)s/%(r)s/%(a)s"
11 for (testsrc, testver) in sorted(pkg_arch_result):
12 arch_results = pkg_arch_result[(testsrc, testver)]
13 r = set([v[0] for v in arch_results.values()])
14@@ -717,7 +717,7 @@ class AutopkgtestPolicy(BasePolicy):
15 result = 'RUNNING'
16 else:
17 result = 'RUNNING-ALWAYSFAIL'
18- url = 'http://autopkgtest.ubuntu.com/running'
19+ url = 'https://autopkgtest.ubuntu.com/running'
20 else:
21 raise RuntimeError('Result for %s/%s/%s (triggered by %s) is neither known nor pending!' %
22 (src, ver, arch, trigger))
23diff --git a/tests/test_autopkgtest.py b/tests/test_autopkgtest.py
24index bc736ae..26ff3c6 100755
25--- a/tests/test_autopkgtest.py
26+++ b/tests/test_autopkgtest.py
27@@ -231,13 +231,13 @@ class T(TestBase):
28 self.assertEqual(exc['darkgreen']['policy_info']['autopkgtest'],
29 {'darkgreen': {
30 'amd64': ['RUNNING-ALWAYSFAIL',
31- 'http://autopkgtest.ubuntu.com/running',
32- 'http://autopkgtest.ubuntu.com/packages/d/darkgreen/series/amd64',
33+ 'https://autopkgtest.ubuntu.com/running',
34+ 'https://autopkgtest.ubuntu.com/packages/d/darkgreen/series/amd64',
35 None,
36 None],
37 'i386': ['RUNNING-ALWAYSFAIL',
38- 'http://autopkgtest.ubuntu.com/running',
39- 'http://autopkgtest.ubuntu.com/packages/d/darkgreen/series/i386',
40+ 'https://autopkgtest.ubuntu.com/running',
41+ 'https://autopkgtest.ubuntu.com/packages/d/darkgreen/series/i386',
42 None,
43 None]}})
44
45@@ -507,7 +507,7 @@ class T(TestBase):
46 self.assertEqual(exc['green']['policy_info']['autopkgtest']['lightgreen/1']['amd64'][:4],
47 ['REGRESSION',
48 'http://localhost:18085/autopkgtest-series/series/amd64/l/lightgreen/20150101_100101@/log.gz',
49- 'http://autopkgtest.ubuntu.com/packages/l/lightgreen/series/amd64',
50+ 'https://autopkgtest.ubuntu.com/packages/l/lightgreen/series/amd64',
51 None])
52
53 # should have retry link for the regressions (not a stable URL, test
54@@ -2065,12 +2065,12 @@ class T(TestBase):
55 self.assertEqual(exc['lightgreen']['policy_info']['autopkgtest'],
56 {'lightgreen': {
57 'amd64': ['RUNNING-ALWAYSFAIL',
58- 'http://autopkgtest.ubuntu.com/running',
59+ 'https://autopkgtest.ubuntu.com/running',
60 None,
61 None,
62 None],
63 'i386': ['RUNNING-ALWAYSFAIL',
64- 'http://autopkgtest.ubuntu.com/running',
65+ 'https://autopkgtest.ubuntu.com/running',
66 None,
67 None,
68 None]}

Subscribers

People subscribed via source and target branches