Merge lp:~vila/uci-engine/britney-config-fallout into lp:uci-engine

Proposed by Vincent Ladeuil
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: 916
Merged at revision: 917
Proposed branch: lp:~vila/uci-engine/britney-config-fallout
Merge into: lp:uci-engine
Diff against target: 37 lines (+5/-4)
1 file modified
tests/test_britney.py (+5/-4)
To merge this branch: bzr merge lp:~vila/uci-engine/britney-config-fallout
Reviewer Review Type Date Requested Status
Paul Larson Approve
Review via email: mp+245834@code.launchpad.net

Commit message

Fix fallout from an old refactoring moving the config part out of britney/post_request.py.

Description of the change

Last spin-off from nova-failure: this fixes a fallout missed in an old britney-related refactoring.

The root cause is that we don't run the tests against different deployments in tarmac which is a known issue but shouldn't block that fix either.

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

looks straightforward enough, I see those things moved. +1

review: Approve
Revision history for this message
Ubuntu CI Bot (uci-bot) wrote :
Download full text (59.8 KiB)

The attempt to merge lp:~vila/uci-engine/britney-config-fallout into lp:uci-engine failed. Below is the output from the failed tests.

2015-01-08 17:31:52 INFO juju.cmd supercommand.go:37 running jujud [1.20.14.1-precise-amd64 gc]
2015-01-08 17:31:52 DEBUG juju.agent agent.go:377 read agent config, format "1.18"
2015-01-08 17:31:52 INFO juju.jujud unit.go:78 unit agent unit-ci-airline-ts-django-0 start (1.20.14.1-precise-amd64 [gc])
2015-01-08 17:31:52 INFO juju.worker runner.go:260 start "api"
2015-01-08 17:31:52 INFO juju.state.api apiclient.go:242 dialing "wss://10.0.3.1:17070/"
2015-01-08 17:31:52 INFO juju.state.api apiclient.go:176 connection established to "wss://10.0.3.1:17070/"
2015-01-08 17:31:52 INFO juju.state.api apiclient.go:242 dialing "wss://10.0.3.1:17070/"
2015-01-08 17:31:52 INFO juju.state.api apiclient.go:176 connection established to "wss://10.0.3.1:17070/"
2015-01-08 17:31:52 INFO juju.state.api apiclient.go:242 dialing "wss://10.0.3.1:17070/"
2015-01-08 17:31:52 INFO juju.state.api apiclient.go:176 connection established to "wss://10.0.3.1:17070/"
2015-01-08 17:31:53 INFO juju.worker runner.go:260 start "upgrader"
2015-01-08 17:31:53 INFO juju.worker runner.go:260 start "logger"
2015-01-08 17:31:53 DEBUG juju.worker.logger logger.go:35 initial log config: "<root>=DEBUG"
2015-01-08 17:31:53 INFO juju.worker runner.go:260 start "uniter"
2015-01-08 17:31:53 DEBUG juju.worker.logger logger.go:60 logger setup
2015-01-08 17:31:53 INFO juju.worker runner.go:260 start "apiaddressupdater"
2015-01-08 17:31:53 INFO juju.worker runner.go:260 start "rsyslog"
2015-01-08 17:31:53 DEBUG juju.worker.rsyslog worker.go:75 starting rsyslog worker mode 1 for "unit-ci-airline-ts-django-0" "tarmac-local"
2015-01-08 17:31:53 DEBUG juju.worker.logger logger.go:45 reconfiguring logging from "<root>=DEBUG" to "<root>=WARNING;unit=DEBUG"
2015-01-08 17:32:12 INFO juju-log Making dir /srv/ci-airline-ts-django/code/ root:root 555
2015-01-08 17:32:12 INFO juju-log Adding dependencies.
2015-01-08 17:32:12 INFO juju-log installing apt packages...
2015-01-08 17:32:15 INFO config-changed gpg: keyring `/tmp/tmpBBCrhv/secring.gpg' created
2015-01-08 17:32:15 INFO config-changed gpg: keyring `/tmp/tmpBBCrhv/pubring.gpg' created
2015-01-08 17:32:15 INFO config-changed gpg: requesting key 6A8DFC40 from hkp server keyserver.ubuntu.com
2015-01-08 17:32:15 INFO config-changed gpg: /tmp/tmpBBCrhv/trustdb.gpg: trustdb created
2015-01-08 17:32:15 INFO config-changed gpg: key 6A8DFC40: public key "Launchpad PPA for Canonical CI Engineering" imported
2015-01-08 17:32:15 INFO config-changed gpg: Total number processed: 1
2015-01-08 17:32:15 INFO config-changed gpg: imported: 1 (RSA: 1)
2015-01-08 17:32:16 INFO config-changed OK
2015-01-08 17:32:23 INFO config-changed Hit http://archive.ubuntu.com precise Release.gpg
2015-01-08 17:32:23 INFO config-changed Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]
2015-01-08 17:32:24 INFO config-changed Get:2 http://ubuntu-cloud.archive.canonical.com precise-updates/cloud-tools Release.gpg [543 B]
2015-01-08 17:32:24 INFO config-changed Get:3 http://ppa.launchpad.net prec...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/test_britney.py'
--- tests/test_britney.py 2014-11-03 12:59:48 +0000
+++ tests/test_britney.py 2015-01-08 10:52:07 +0000
@@ -1,6 +1,6 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# Ubuntu Continuous Integration Engine2# Ubuntu Continuous Integration Engine
3# Copyright 2014 Canonical Ltd.3# Copyright 2014, 2015 Canonical Ltd.
44
5# This program is free software: you can redistribute it and/or modify it5# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU Affero General Public License version 3, as6# under the terms of the GNU Affero General Public License version 3, as
@@ -37,6 +37,7 @@
3737
3838
39from britney import (39from britney import (
40 config,
40 post_request,41 post_request,
41 process_results,42 process_results,
42)43)
@@ -186,15 +187,15 @@
186 password = 's3cr3t'187 password = 's3cr3t'
187 rabbit_ip = get_rabbit_ip(status)188 rabbit_ip = get_rabbit_ip(status)
188 deployers.expose_rabbit(self, rabbit_ip, user, password)189 deployers.expose_rabbit(self, rabbit_ip, user, password)
189 os.makedirs(post_request.user_config_dir())190 os.makedirs(config.user_config_dir())
190 self.config = post_request.BritneyStack()191 self.config = config.BritneyStack()
191 self.config.store._load_from_string('''\192 self.config.store._load_from_string('''\
192uci.rabbit.host = {rabbit_ip}193uci.rabbit.host = {rabbit_ip}
193uci.rabbit.user = {user}194uci.rabbit.user = {user}
194uci.rabbit.password = {password}195uci.rabbit.password = {password}
195 '''.format(**locals()))196 '''.format(**locals()))
196 fixtures.patch(self, amqp_utils, 'get_config',197 fixtures.patch(self, amqp_utils, 'get_config',
197 post_request.amqp_config(self.config))198 config.amqp_config(self.config))
198 self.out = StringIO()199 self.out = StringIO()
199 self.err = StringIO()200 self.err = StringIO()
200201

Subscribers

People subscribed via source and target branches