Merge lp:~cjohnston/ubuntu-ci-services-itself/fix-bzr-error into lp:ubuntu-ci-services-itself

Proposed by Chris Johnston
Status: Merged
Approved by: Francis Ginther
Approved revision: 246
Merged at revision: 249
Proposed branch: lp:~cjohnston/ubuntu-ci-services-itself/fix-bzr-error
Merge into: lp:ubuntu-ci-services-itself
Diff against target: 29 lines (+4/-1)
2 files modified
juju-deployer/test_update.py (+3/-0)
juju-deployer/update.py (+1/-1)
To merge this branch: bzr merge lp:~cjohnston/ubuntu-ci-services-itself/fix-bzr-error
Reviewer Review Type Date Requested Status
Francis Ginther Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+207218@code.launchpad.net

Commit message

Fix bzr error

Description of the change

======================================================================
ERROR: test_ensure_some_branches_are_not_pinned (__main__.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./juju-deployer/test_update.py", line 91, in setUp
    ('add', ('filename', 'f-id', 'file', 'content\n'))])
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/branchbuilder.py", line 259, in build_snapshot
    message_callback=message_callback)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/branchbuilder.py", line 127, in _do_commit
    **kwargs)
  File "<string>", line 4, in commit_write_locked
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/mutabletree.py", line 211, in commit
    *args, **kwargs)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/commit.py", line 290, in commit
    lossy=lossy)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/cleanup.py", line 132, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/commit.py", line 410, in _commit
    rev_id, lossy=lossy)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/branch.py", line 752, in get_commit_builder
    lossy)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/vf_repository.py", line 1306, in get_commit_builder
    lossy)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/repofmt/pack_repo.py", line 110, in __init__
    lossy=lossy)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/vf_repository.py", line 117, in __init__
    revision_id, lossy)
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/repository.py", line 102, in __init__
    self._committer = self._config_stack.get('email')
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/config.py", line 3738, in get
    value = opt.get_default()
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/config.py", line 2414, in get_default
    value = self.default()
  File "/tmp/tmp.pjlTcFZxJd/local/lib/python2.7/site-packages/bzr-2.6.0-py2.7-linux-i686.egg/bzrlib/config.py", line 1598, in default_email
    raise errors.NoWhoami()
NoWhoami: Unable to determine your name.
Please, set your name with the 'whoami' command.
E.g. bzr whoami "Your Name <email address hidden>"

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:245
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/179/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/179/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:245
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/180/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/180/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:245
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/181/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/181/rebuild

review: Needs Fixing (continuous-integration)
246. By Chris Johnston

Use env python for update.py

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:246
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/182/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/182/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:246
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/183/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/183/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:246
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/184/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/184/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:246
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/185/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/185/rebuild

review: Approve (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

This fixes the current jenkins testing issue. There are still problems caused by pypi access (see other failures above), cjohnston is starting to work on this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'juju-deployer/test_update.py'
2--- juju-deployer/test_update.py 2014-02-17 15:34:05 +0000
3+++ juju-deployer/test_update.py 2014-02-19 16:11:48 +0000
4@@ -23,6 +23,8 @@
5 import unittest
6 import yaml
7
8+from ucitests import fixtures
9+
10 sys.path.append(os.path.abspath(os.path.dirname(sys.argv[0])))
11 import update
12
13@@ -80,6 +82,7 @@
14 def setUp(self):
15 self.temp_dir = tempfile.mkdtemp()
16 self.addCleanup(lambda: shutil.rmtree(self.temp_dir))
17+ fixtures.override_env(self, 'BZR_EMAIL', 'foo@example.com')
18 # We need a real branch with at least 2 revisions (so we can check out
19 # of date references)
20 builder = branchbuilder.BranchBuilder(
21
22=== modified file 'juju-deployer/update.py'
23--- juju-deployer/update.py 2014-02-17 10:13:29 +0000
24+++ juju-deployer/update.py 2014-02-19 16:11:48 +0000
25@@ -1,4 +1,4 @@
26-#!/usr/bin/python
27+#!/usr/bin/env python
28 # Ubuntu CI Engine
29 # Copyright 2014 Canonical Ltd.
30

Subscribers

People subscribed via source and target branches