mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-18 22:11:30 +00:00
Presenting links for the corresponding boottest jenkins job.
This commit is contained in:
commit
60a0bcad76
16
britney.py
16
britney.py
@ -1942,11 +1942,25 @@ class Britney(object):
|
|||||||
if not self.options.dry_run:
|
if not self.options.dry_run:
|
||||||
boottest.submit()
|
boottest.submit()
|
||||||
boottest.collect()
|
boottest.collect()
|
||||||
|
# Boottest Jenkins views location.
|
||||||
|
jenkins_public = "https://jenkins.qa.ubuntu.com/job"
|
||||||
|
jenkins_private = (
|
||||||
|
"http://d-jenkins.ubuntu-ci:8080/view/%s/view/BootTest/job" %
|
||||||
|
self.options.series.title())
|
||||||
# Update excuses from the boottest context.
|
# Update excuses from the boottest context.
|
||||||
for excuse in boottest_excuses:
|
for excuse in boottest_excuses:
|
||||||
status = boottest.get_status(excuse.name, excuse.ver[1])
|
status = boottest.get_status(excuse.name, excuse.ver[1])
|
||||||
label = BootTest.EXCUSE_LABELS.get(status, 'UNKNOWN STATUS')
|
label = BootTest.EXCUSE_LABELS.get(status, 'UNKNOWN STATUS')
|
||||||
excuse.addhtml("Boottest result: %s" % (label))
|
public_url = "%s/%s-boottest-%s/lastBuild" % (
|
||||||
|
jenkins_public, self.options.series,
|
||||||
|
excuse.name.replace("+", "-"))
|
||||||
|
private_url = "%s/%s-boottest-%s/lastBuild" % (
|
||||||
|
jenkins_private, self.options.series,
|
||||||
|
excuse.name.replace("+", "-"))
|
||||||
|
excuse.addhtml(
|
||||||
|
"Boottest result: %s (Jenkins: <a href=\"%s\">public</a>"
|
||||||
|
", <a href=\"%s\">private</a>)" % (
|
||||||
|
label, public_url, private_url))
|
||||||
# Allows hints to force boottest failures/attempts
|
# Allows hints to force boottest failures/attempts
|
||||||
# to be ignored.
|
# to be ignored.
|
||||||
hints = self.hints.search('force', package=excuse.name)
|
hints = self.hints.search('force', package=excuse.name)
|
||||||
|
@ -239,6 +239,8 @@ args.func()
|
|||||||
# `Britney` runs and considers binary packages for boottesting
|
# `Britney` runs and considers binary packages for boottesting
|
||||||
# when it is enabled in the configuration, only binaries needed
|
# when it is enabled in the configuration, only binaries needed
|
||||||
# in the phone image are considered for boottesting.
|
# in the phone image are considered for boottesting.
|
||||||
|
# The boottest status is presented along with its corresponding
|
||||||
|
# jenkins job urls for the public and the private servers.
|
||||||
# 'in progress' tests blocks package promotion.
|
# 'in progress' tests blocks package promotion.
|
||||||
context = [
|
context = [
|
||||||
('green', {'Source': 'green', 'Version': '1.1~beta',
|
('green', {'Source': 'green', 'Version': '1.1~beta',
|
||||||
@ -247,11 +249,19 @@ args.func()
|
|||||||
'Architecture': 'armhf',
|
'Architecture': 'armhf',
|
||||||
'Depends': 'libc6 (>= 0.9)'}),
|
'Depends': 'libc6 (>= 0.9)'}),
|
||||||
]
|
]
|
||||||
|
public_jenkins_url = (
|
||||||
|
'https://jenkins.qa.ubuntu.com/job/series-boottest-green/'
|
||||||
|
'lastBuild')
|
||||||
|
private_jenkins_url = (
|
||||||
|
'http://d-jenkins.ubuntu-ci:8080/view/Series/view/BootTest/'
|
||||||
|
'job/series-boottest-green/lastBuild')
|
||||||
self.do_test(
|
self.do_test(
|
||||||
context,
|
context,
|
||||||
[r'\bgreen\b.*>1</a> to .*>1.1~beta<',
|
[r'\bgreen\b.*>1</a> to .*>1.1~beta<',
|
||||||
'<li>Boottest result: {}'.format(
|
r'<li>Boottest result: {} \(Jenkins: '
|
||||||
boottest.BootTest.EXCUSE_LABELS['RUNNING']),
|
r'<a href="{}">public</a>, <a href="{}">private</a>\)'.format(
|
||||||
|
boottest.BootTest.EXCUSE_LABELS['RUNNING'],
|
||||||
|
public_jenkins_url, private_jenkins_url),
|
||||||
'<li>Not considered'])
|
'<li>Not considered'])
|
||||||
|
|
||||||
# The `boottest-britney` input (recorded for testing purposes),
|
# The `boottest-britney` input (recorded for testing purposes),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user