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

Issue 6145043: cmd/juju: add --upload-tools flag to bootstrap command

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by rog
Modified:
11 years, 11 months ago
Reviewers:
mp+104257
Visibility:
Public.

Description

cmd/juju: add --upload-tools flag to bootstrap command Also add Storage API to environs.Environ interface. https://code.launchpad.net/~rogpeppe/juju/go-upload-tools-flag/+merge/104257 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 3 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 4 : cmd/juju: add --upload-tools flag to bootstrap command #

Total comments: 5

Patch Set 5 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 6 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 7 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 8 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 9 : cmd/juju: add --upload-tools flag to bootstrap command #

Total comments: 49

Patch Set 10 : cmd/juju: add --upload-tools flag to bootstrap command #

Total comments: 1

Patch Set 11 : cmd/juju: add --upload-tools flag to bootstrap command #

Total comments: 2

Patch Set 12 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 13 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 14 : cmd/juju: add --upload-tools flag to bootstrap command #

Patch Set 15 : cmd/juju: add --upload-tools flag to bootstrap command #

Total comments: 4

Patch Set 16 : cmd/juju: add --upload-tools flag to bootstrap command #

Unified diffs Side-by-side diffs Delta from patch set Stats (+558 lines, -286 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M cmd/juju/cmd_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +25 lines, -3 lines 0 comments Download
M cmd/jujud/initzk_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -26 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +92 lines, -51 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -11 lines 0 comments Download
M environs/ec2/export_test.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -5 lines 0 comments Download
M environs/ec2/live_test.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -9 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M environs/ec2/state.go View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +19 lines, -75 lines 0 comments Download
A environs/ec2/storage.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +102 lines, -0 lines 0 comments Download
M environs/interface.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +54 lines, -20 lines 0 comments Download
M environs/jujutest/livetests.go View 1 2 3 4 5 6 2 chunks +27 lines, -9 lines 0 comments Download
M environs/jujutest/test.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M environs/jujutest/tests.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +63 lines, -27 lines 0 comments Download
M environs/open_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M environs/tools.go View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +70 lines, -5 lines 0 comments Download
M environs/tools_test.go View 1 2 3 4 5 6 7 8 9 4 chunks +49 lines, -37 lines 0 comments Download
M juju/conn.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M version/version.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17
rog
Please take a look.
12 years ago (2012-05-01 14:33:56 UTC) #1
rog
Please take a look.
12 years ago (2012-05-02 12:57:08 UTC) #2
fwereade
LGTM, very clear. https://codereview.appspot.com/6145043/diff/7001/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6145043/diff/7001/environs/dummy/environs.go#newcode171 environs/dummy/environs.go:171: if err != nil { Maybe ...
12 years ago (2012-05-02 13:36:27 UTC) #3
niemeyer
Looks nice. I'm just hoping we can do the cmd testing in a better fashion. ...
12 years ago (2012-05-03 00:52:05 UTC) #4
rog
oops, forgot to publish these comments https://codereview.appspot.com/6145043/diff/7001/cmd/juju/cmd_test.go File cmd/juju/cmd_test.go (right): https://codereview.appspot.com/6145043/diff/7001/cmd/juju/cmd_test.go#newcode142 cmd/juju/cmd_test.go:142: c.Check(<-opc, Equals, op(dummy.OpPutFile, ...
12 years ago (2012-05-04 16:29:13 UTC) #5
rog
Please take a look.
12 years ago (2012-05-04 17:17:25 UTC) #6
niemeyer
This is looking nice, but we've had a conversation today about how to organize things ...
11 years, 11 months ago (2012-05-15 20:18:29 UTC) #7
rog
Please take a look.
11 years, 11 months ago (2012-05-16 16:12:18 UTC) #8
niemeyer
I like this a lot. There are many comments because the branch is ginormous, but ...
11 years, 11 months ago (2012-05-17 01:08:41 UTC) #9
rog
thanks a lot for the review, and sorry the branch is so big. it started ...
11 years, 11 months ago (2012-05-17 11:43:33 UTC) #10
rog
Please take a look.
11 years, 11 months ago (2012-05-17 11:44:51 UTC) #11
fwereade
LGTM, I find this pleasing. https://codereview.appspot.com/6145043/diff/30001/environs/interface.go File environs/interface.go (right): https://codereview.appspot.com/6145043/diff/30001/environs/interface.go#newcode61 environs/interface.go:61: // TODO: URL returns ...
11 years, 11 months ago (2012-05-17 11:55:32 UTC) #12
rog
Please take a look.
11 years, 11 months ago (2012-05-17 15:22:41 UTC) #13
rog
Please take a look.
11 years, 11 months ago (2012-05-17 15:32:52 UTC) #14
rog
https://codereview.appspot.com/6145043/diff/21023/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6145043/diff/21023/environs/ec2/ec2.go#newcode44 environs/ec2/ec2.go:44: s3 *s3.S3 On 2012/05/17 11:55:32, fwereade wrote: > Do ...
11 years, 11 months ago (2012-05-17 15:34:30 UTC) #15
niemeyer
Minor gripe with the new dummy API. If you're happy with the suggested change, the ...
11 years, 11 months ago (2012-05-17 18:25:48 UTC) #16
rog
11 years, 11 months ago (2012-05-18 11:22:18 UTC) #17
*** Submitted:

cmd/juju: add --upload-tools flag to bootstrap command

Also add Storage API to environs.Environ interface.

R=fwereade, niemeyer
CC=
https://codereview.appspot.com/6145043

https://codereview.appspot.com/6145043/diff/25018/environs/interface.go
File environs/interface.go (right):

https://codereview.appspot.com/6145043/diff/25018/environs/interface.go#newco...
environs/interface.go:62: // in alphabetical order.
On 2012/05/17 18:25:48, niemeyer wrote:
> On 2012/05/17 11:43:33, rog wrote:
> > On 2012/05/17 01:08:42, niemeyer wrote:
> > > This should also mention the behavior with "directories".
> > 
> > i'm not sure what you mean here. there are no directories, and all behaviour
> > here can be understood in terms of simple names, i believe.
> 
> The point is precisely to tell people what you believe, since what they
believe
> may not match what you believe. Let's please include this:
> 
> // The names in the storage are considered to be in a flat
> // namespace, so the prefix may include slashes and what is
> // returned is the full name for the matching entries.

Done.

https://codereview.appspot.com/6145043/diff/27003/cmd/juju/cmd_test.go
File cmd/juju/cmd_test.go (right):

https://codereview.appspot.com/6145043/diff/27003/cmd/juju/cmd_test.go#newcod...
cmd/juju/cmd_test.go:138: defer dummy.Listen(nil)
On 2012/05/17 18:25:49, niemeyer wrote:
> Is this needed, considering that TearDownTest does it too?

Done.

https://codereview.appspot.com/6145043/diff/27003/environs/dummy/environs.go
File environs/dummy/environs.go (right):

https://codereview.appspot.com/6145043/diff/27003/environs/dummy/environs.go#...
environs/dummy/environs.go:107: // cleaned without registering a channel.
On 2012/05/17 18:25:49, niemeyer wrote:
> As pointed out earlier, the direction seems good, but the details of how this
is
> working sounds more involved than necessary.
> 
> The following API would separate the two concepts apart, and clarify the call
> sites:
> 
> // Reset resets the entire dummy environment and any
> // registered operation listeners. All opened environments
> // after Reset will share the same underlying state.
> func Reset() {
> 
> // Listen closes the previously registered listener (if any),
> // and if c is not nil registers it to receive notifications 
> // of follow up operations in the environment.
> func Listen(c chan<- Operation) {
> 
> 
> No need for dummy.Close. The dummy environment is not being closed.

that's definitely nicer, thanks. done.
Sign in to reply to this message.

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