Merge ~racb/git-ubuntu:test-collection-hang into git-ubuntu:master

Proposed by Robie Basak
Status: Merged
Approved by: Robie Basak
Approved revision: e5d07816e610d25b10971b5f0077a7bb985fa458
Merged at revision: e5d07816e610d25b10971b5f0077a7bb985fa458
Proposed branch: ~racb/git-ubuntu:test-collection-hang
Merge into: git-ubuntu:master
Diff against target: 24 lines (+5/-2)
1 file modified
gitubuntu/source_information.py (+5/-2)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Server Team CI bot continuous-integration Approve
git-ubuntu developers Pending
Review via email: mp+334033@code.launchpad.net

Commit message

Make Jenkins happy

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

FAILED: Continuous integration, rev:b799d6753d1d4054150d6bd378101a23e8141f41
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/214/
Executed test runs:
    SUCCESS: Checkout
    FAILED: Style Check

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/214/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:e5d07816e610d25b10971b5f0077a7bb985fa458
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/215/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Style Check
    SUCCESS: Unit Tests
    SUCCESS: Integration Tests
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/215/rebuild

review: Approve (continuous-integration)
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

+1

I got this backtrace when trying to exercise the code that uses launchpad authentication, but it happens with current master as well, so it's not something introduced by this change:

http://pastebin.ubuntu.com/26013467/

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/gitubuntu/source_information.py b/gitubuntu/source_information.py
2index b97bc8a..9e8f172 100644
3--- a/gitubuntu/source_information.py
4+++ b/gitubuntu/source_information.py
5@@ -16,7 +16,8 @@ try:
6 from launchpadlib.launchpad import Launchpad as LP
7 pkg = 'python3-ubuntutools'
8 from ubuntutools.archive import UbuntuSourcePackage, DebianSourcePackage, DownloadError
9- from ubuntutools.lp.lpapicache import Launchpad, SourcePackagePublishingHistory
10+ import ubuntutools.lp.lpapicache
11+ from ubuntutools.lp.lpapicache import SourcePackagePublishingHistory
12 except ImportError:
13 logging.error('Is %s installed?', pkg)
14 sys.exit(1)
15@@ -37,7 +38,9 @@ def launchpad_login():
16
17 _LP_LOGIN = LP.login_anonymously('git-ubuntu-importer', _lp_service,
18 version=_lp_api_version)
19- Launchpad.login_existing(_LP_LOGIN)
20+ # This is deliberately in a long form and we do not import the Launchpad
21+ # object into the module namespace itself to work around LP: #1733388
22+ ubuntutools.lp.lpapicache.Launchpad.login_existing(_LP_LOGIN)
23
24 return _LP_LOGIN
25

Subscribers

People subscribed via source and target branches