Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2241)

Issue 7927043: cmd: upgrade-charm basic implementation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by dimitern
Modified:
11 years, 1 month ago
Reviewers:
mp+154411
Visibility:
Public.

Description

cmd: upgrade-charm basic implementation This is the basic upgrade-charm command, no flags yet implemented, only a --repository argument. https://code.launchpad.net/~dimitern/juju-core/016-upgrade-charm-cmd/+merge/154411 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : cmd: upgrade-charm basic implementation #

Total comments: 29

Patch Set 3 : cmd: upgrade-charm basic implementation #

Total comments: 10

Patch Set 4 : cmd: upgrade-charm basic implementation #

Total comments: 4

Patch Set 5 : cmd: upgrade-charm basic implementation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -14 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M charm/repo.go View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M charm/repo_test.go View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M cmd/juju/deploy_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/main.go View 1 chunk +1 line, -0 lines 0 comments Download
M cmd/juju/main_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A cmd/juju/upgradecharm.go View 1 2 3 4 1 chunk +106 lines, -0 lines 0 comments Download
A cmd/juju/upgradecharm_test.go View 1 2 3 1 chunk +133 lines, -0 lines 0 comments Download
M juju/conn.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M juju/conn_test.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11
fwereade
Bit confused by the tests, and pretty sure the implementation needs some work. https://codereview.appspot.com/7927043/diff/1/cmd/juju/upgradecharm.go File ...
11 years, 1 month ago (2013-03-20 17:14:46 UTC) #1
dimitern
Please take a look. https://codereview.appspot.com/7927043/diff/1/cmd/juju/upgradecharm.go File cmd/juju/upgradecharm.go (right): https://codereview.appspot.com/7927043/diff/1/cmd/juju/upgradecharm.go#newcode59 cmd/juju/upgradecharm.go:59: curl, err := charm.InferURL(c.ServiceName, conf.DefaultSeries()) ...
11 years, 1 month ago (2013-03-25 16:43:44 UTC) #2
fwereade
Looking good, but I've had a few more thoughts since a couple of hours ago ...
11 years, 1 month ago (2013-03-25 17:45:43 UTC) #3
rog
looks really good in general. a few thoughts below. https://codereview.appspot.com/7927043/diff/5001/cmd/juju/deploy_test.go File cmd/juju/deploy_test.go (right): https://codereview.appspot.com/7927043/diff/5001/cmd/juju/deploy_test.go#newcode171 cmd/juju/deploy_test.go:171: ...
11 years, 1 month ago (2013-03-25 17:54:24 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/7927043/diff/5001/cmd/juju/deploy_test.go File cmd/juju/deploy_test.go (right): https://codereview.appspot.com/7927043/diff/5001/cmd/juju/deploy_test.go#newcode171 cmd/juju/deploy_test.go:171: c.Assert(err, ErrorMatches, "cannot increment revision ...
11 years, 1 month ago (2013-03-25 19:18:50 UTC) #5
dimitern
Actually, wrt the --repository test because repoSuite *always* overwrites JUJU_REPOSITORY in SetUpSuite it's not possible ...
11 years, 1 month ago (2013-03-25 19:22:29 UTC) #6
fwereade
Basically LGTM, but it *would* be really nice to add a trivial passthrough for SetCharm ...
11 years, 1 month ago (2013-03-26 08:38:52 UTC) #7
rog
LGTM with william's changes applied. https://codereview.appspot.com/7927043/diff/5001/cmd/juju/upgradecharm.go File cmd/juju/upgradecharm.go (right): https://codereview.appspot.com/7927043/diff/5001/cmd/juju/upgradecharm.go#newcode89 cmd/juju/upgradecharm.go:89: return fmt.Errorf("already running latest ...
11 years, 1 month ago (2013-03-26 11:20:06 UTC) #8
dimitern
Please take a look. https://codereview.appspot.com/7927043/diff/15001/cmd/juju/upgradecharm.go File cmd/juju/upgradecharm.go (right): https://codereview.appspot.com/7927043/diff/15001/cmd/juju/upgradecharm.go#newcode27 cmd/juju/upgradecharm.go:27: in the charm store or ...
11 years, 1 month ago (2013-03-26 12:24:51 UTC) #9
fwereade
LGTM, thanks https://codereview.appspot.com/7927043/diff/28001/cmd/juju/upgradecharm.go File cmd/juju/upgradecharm.go (right): https://codereview.appspot.com/7927043/diff/28001/cmd/juju/upgradecharm.go#newcode28 cmd/juju/upgradecharm.go:28: automatically incremented to create a newer version. ...
11 years, 1 month ago (2013-03-26 13:01:08 UTC) #10
dimitern
11 years, 1 month ago (2013-03-26 13:05:44 UTC) #11
*** Submitted:

cmd: upgrade-charm basic implementation

This is the basic upgrade-charm command, no
flags yet implemented, only a --repository
argument.

R=fwereade, rog
CC=
https://codereview.appspot.com/7927043

https://codereview.appspot.com/7927043/diff/28001/cmd/juju/upgradecharm.go
File cmd/juju/upgradecharm.go (right):

https://codereview.appspot.com/7927043/diff/28001/cmd/juju/upgradecharm.go#ne...
cmd/juju/upgradecharm.go:28: automatically incremented to create a newer
version.
On 2013/03/26 13:01:08, fwereade wrote:
> s/version/charm/ perhaps?

Done.

https://codereview.appspot.com/7927043/diff/28001/cmd/juju/upgradecharm_test.go
File cmd/juju/upgradecharm_test.go (right):

https://codereview.appspot.com/7927043/diff/28001/cmd/juju/upgradecharm_test....
cmd/juju/upgradecharm_test.go:44: err = runUpgradeCharm(c, "riak",
"--repository=")
On 2013/03/26 13:01:08, fwereade wrote:
> Maybe just drop the "--repository=" arg here?

I prefer to leave it as is; it reads better I think.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b