Merge lp:~gary/charms/precise/juju-gui/gitdevrelease into lp:~juju-gui/charms/precise/juju-gui/trunk

Proposed by Gary Poster
Status: Merged
Merged at revision: 159
Proposed branch: lp:~gary/charms/precise/juju-gui/gitdevrelease
Merge into: lp:~juju-gui/charms/precise/juju-gui/trunk
Diff against target: 51 lines (+22/-1)
2 files modified
hooks/utils.py (+1/-1)
tests/test_utils.py (+21/-0)
To merge this branch: bzr merge lp:~gary/charms/precise/juju-gui/gitdevrelease
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+204579@code.launchpad.net

Description of the change

Restore development build support

This branch restores the ability to follow the quick trunk deploy workflow.

- In GUI: `BRANCH_IS_GOOD make distfile`
- Copy new release into local GUI charm releases folder
- bootstrap juju and run `make deploy` in charm

This is the fastest way I know to demo or qa a GUI branch with the charm trunk.

https://codereview.appspot.com/52230045/

To post a comment you must log in.
Revision history for this message
Gary Poster (gary) wrote :

Reviewers: mp+204579_code.launchpad.net,

Message:
Please take a look.

Description:
Restore development build support

This branch restores the ability to follow the quick trunk deploy
workflow.

- In GUI: `BRANCH_IS_GOOD make distfile`
- Copy new release into local GUI charm releases folder
- bootstrap juju and run `make deploy` in charm

This is the fastest way I know to demo or qa a GUI branch with the charm
trunk.

https://code.launchpad.net/~gary/charms/precise/juju-gui/gitdevrelease/+merge/204579

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/52230045/

Revision history for this message
Francesco Banconi (frankban) wrote :
Revision history for this message
Gary Poster (gary) wrote :

*** Submitted:

Restore development build support

This branch restores the ability to follow the quick trunk deploy
workflow.

- In GUI: `BRANCH_IS_GOOD make distfile`
- Copy new release into local GUI charm releases folder
- bootstrap juju and run `make deploy` in charm

This is the fastest way I know to demo or qa a GUI branch with the charm
trunk.

R=frankban
CC=
https://codereview.appspot.com/52230045

https://codereview.appspot.com/52230045/

Revision history for this message
Gary Poster (gary) wrote :

On 2014/02/04 09:13:47, frankban wrote:
> LGTM + QA ok. Thank you!

Thank you for the review, Francesco.

https://codereview.appspot.com/52230045/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/utils.py'
2--- hooks/utils.py 2014-02-03 16:30:24 +0000
3+++ hooks/utils.py 2014-02-03 21:39:35 +0000
4@@ -129,7 +129,7 @@
5 juju-gui- # Juju GUI prefix.
6 (
7 \d+\.\d+\.\d+ # Major, minor, and patch version numbers.
8- (?:\+build\.\d+)? # Optional bzr revno for development releases.
9+ (?:\+build\.\w+)? # Optional git hash for development releases.
10 )
11 \.(?:tgz|xz) # File extension.
12 """, re.VERBOSE)
13
14=== modified file 'tests/test_utils.py'
15--- tests/test_utils.py 2014-02-03 16:30:24 +0000
16+++ tests/test_utils.py 2014-02-03 21:39:35 +0000
17@@ -345,6 +345,17 @@
18 path = get_release_file_path()
19 self.assert_path('juju-gui-2.0.1.xz', path)
20
21+ def test_xz_git_dev(self):
22+ # The last release is correctly retrieved.
23+ self.add('juju-gui-0.12.1.tgz')
24+ self.add('juju-gui-1.2.3.tgz')
25+ self.add('juju-gui-2.0.0+build.42.tgz')
26+ self.add('juju-gui-2.0.1.tgz')
27+ self.add('juju-gui-2.1.0+build.42a.xz')
28+ with self.mock_releases_dir():
29+ path = get_release_file_path()
30+ self.assert_path('juju-gui-2.1.0+build.42a.xz', path)
31+
32 def test_ordering(self):
33 # Release versions are correctly ordered.
34 self.add('juju-gui-0.12.1.tgz')
35@@ -394,6 +405,16 @@
36 path = get_release_file_path('2.42.47+build.4247')
37 self.assert_path('juju-gui-2.42.47+build.4247.tgz', path)
38
39+ def test_xz_git_development_version(self):
40+ # A specific development version is correctly retrieved.
41+ self.add('juju-gui-1.2.3+build.4247.tgz')
42+ self.add('juju-gui-2.42.47+build.42b7.xz')
43+ self.add('juju-gui-2.42.47.tgz')
44+ self.add('juju-gui-3.42.47+build.4247.tgz')
45+ with self.mock_releases_dir():
46+ path = get_release_file_path('2.42.47+build.42b7')
47+ self.assert_path('juju-gui-2.42.47+build.42b7.xz', path)
48+
49 def test_version_not_found(self):
50 # None is returned if the requested version is not found.
51 self.add('juju-gui-1.2.3.tgz')

Subscribers

People subscribed via source and target branches

to all changes: