Merge lp:~xubuntu-dev/ubuntu-cdimage/git_seed into lp:ubuntu-cdimage

Proposed by Sean Davis
Status: Merged
Approved by: Steve Langasek
Approved revision: 1737
Merged at revision: 1735
Proposed branch: lp:~xubuntu-dev/ubuntu-cdimage/git_seed
Merge into: lp:ubuntu-cdimage
Diff against target: 32 lines (+2/-2)
2 files modified
lib/cdimage/germinate.py (+1/-1)
lib/cdimage/tests/test_germinate.py (+1/-1)
To merge this branch: bzr merge lp:~xubuntu-dev/ubuntu-cdimage/git_seed
Reviewer Review Type Date Requested Status
Sean Davis (community) Needs Resubmitting
Steve Langasek Needs Fixing
Review via email: mp+346912@code.launchpad.net

Commit message

Xubuntu now uses git seeds, not bzr

Description of the change

This branch migrates the Xubuntu seed from bzr to git

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

Also needs corresponding test updates.

$ ./run-tests
[...]
======================================================================
FAIL: test_seed_sources_bzr (cdimage.tests.test_germinate.TestGermination)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vorlon/devel/canonical/cdimage/lib/cdimage/tests/test_germinate.py", line 113, in test_seed_sources_bzr
    self.assertEqual(sources, self.germination.seed_sources(project))
AssertionError: Lists differ: ['http://bazaar.launchpad.net/~xubuntu-dev/ubun[71 chars]it/'] != ['https://git.launchpad.net/~xubuntu-dev/ubuntu[74 chars]it/']

First differing element 0:
'http://bazaar.launchpad.net/~xubuntu-dev/ubuntu-seeds/'
'https://git.launchpad.net/~xubuntu-dev/ubuntu-seeds/+git/'

- ['http://bazaar.launchpad.net/~xubuntu-dev/ubuntu-seeds/',
? ^^^^^^

+ ['https://git.launchpad.net/~xubuntu-dev/ubuntu-seeds/+git/',
? + ^^^ +++++

   'https://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/']

----------------------------------------------------------------------
Ran 580 tests in 15.046s

FAILED (failures=1)

review: Needs Fixing
1736. By Sean Davis

Add cosmic condition for germinate, update tests

Revision history for this message
Sean Davis (bluesabre) wrote :

Thanks for reviewing, Steve. I've made the needed changes and tests now run successfully.

review: Needs Resubmitting
Revision history for this message
Steve Langasek (vorlon) wrote :

This latest change has reverted the behavior of cdimage to use the bzr branches as authoritative for all releases prior to cosmic, using the git branch only for cosmic and forward. I don't think this is expected, given that you have imported trusty and later into the git repository, and I don't think it's a good idea to maintain such a split.

The intent of my previous review was to ask that the tests be updated to match the otherwise-correct code.

review: Needs Fixing
1737. By Sean Davis

Fix germinate and tests to use gitpattern for xubuntu intrepid and above

Revision history for this message
Sean Davis (bluesabre) wrote :

Thanks again Steve. I'm getting a better understanding of how these things relate now. The latest commit should get everything back in order.

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/cdimage/germinate.py'
2--- lib/cdimage/germinate.py 2018-05-26 07:29:41 +0000
3+++ lib/cdimage/germinate.py 2018-05-28 01:24:55 +0000
4@@ -83,7 +83,7 @@
5 sources.insert(0, bzrpattern % "mythbuntu-dev")
6 elif project == "xubuntu":
7 if series >= "intrepid":
8- sources.insert(0, bzrpattern % "xubuntu-dev")
9+ sources.insert(0, gitpattern % "xubuntu-dev")
10 else:
11 sources.insert(0, bzrpattern % "ubuntu-core-dev")
12 elif project in ("lubuntu", "lubuntu-next"):
13
14=== modified file 'lib/cdimage/tests/test_germinate.py'
15--- lib/cdimage/tests/test_germinate.py 2018-05-26 07:29:55 +0000
16+++ lib/cdimage/tests/test_germinate.py 2018-05-28 01:24:55 +0000
17@@ -91,7 +91,6 @@
18 ["ubuntustudio-dev"]),
19 ("mythbuntu", "raring", ["mythbuntu-dev"]),
20 ("xubuntu", "hardy", ["ubuntu-core-dev"]),
21- ("xubuntu", "intrepid", ["xubuntu-dev"]),
22 ("ubuntu-gnome", "raring",
23 ["ubuntu-gnome-dev"]),
24 ("ubuntu-budgie", "zesty",
25@@ -115,6 +114,7 @@
26 for project, series, owners in (
27 ("ubuntu", "raring", ["ubuntu-core-dev"]),
28 ("lubuntu", "raring", ["lubuntu-dev", "ubuntu-core-dev"]),
29+ ("xubuntu", "intrepid", ["xubuntu-dev", "ubuntu-core-dev"]),
30 ):
31 self.config["DIST"] = series
32 sources = [

Subscribers

People subscribed via source and target branches