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

Issue 6198064: environs: upload juju tools to cloud.

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

Description

environs: upload juju tools to cloud. https://code.launchpad.net/~rogpeppe/juju/go-ec2-find-tools/+merge/105382 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs: upload juju tools to cloud. #

Total comments: 15

Patch Set 3 : environs: upload juju tools to cloud. #

Patch Set 4 : environs: upload juju tools to cloud. #

Patch Set 5 : environs: upload juju tools to cloud. #

Patch Set 6 : environs: upload juju tools to cloud. #

Total comments: 17

Patch Set 7 : environs: upload juju tools to cloud. #

Patch Set 8 : environs: upload juju tools to cloud. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -152 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/cmd_test.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M environs/dummy/environs.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M environs/ec2/image.go View 1 2 3 4 5 6 6 chunks +15 lines, -8 lines 0 comments Download
M environs/ec2/image_test.go View 1 2 3 4 5 6 3 chunks +12 lines, -11 lines 0 comments Download
M environs/ec2/state.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M environs/ec2/storage.go View 1 2 2 chunks +2 lines, -8 lines 0 comments Download
M environs/jujutest/test.go View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M environs/tools.go View 1 2 3 4 5 6 5 chunks +189 lines, -87 lines 0 comments Download
M environs/tools_test.go View 1 2 3 4 5 6 4 chunks +160 lines, -31 lines 0 comments Download
M state/presence/presence_test.go View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
12 years, 10 months ago (2012-05-10 19:29:36 UTC) #1
dave_cheney.net
https://codereview.appspot.com/6198064/diff/2001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6198064/diff/2001/environs/ec2/ec2.go#newcode115 environs/ec2/ec2.go:115: if err != nil && s3ErrorStatusCode(err) != 404 { ...
12 years, 10 months ago (2012-05-10 23:23:16 UTC) #2
niemeyer
This is touched by the conversation we've had on IRC today as well.
12 years, 10 months ago (2012-05-15 22:06:40 UTC) #3
fwereade
https://codereview.appspot.com/6198064/diff/2001/environs/ec2/image.go File environs/ec2/image.go (right): https://codereview.appspot.com/6198064/diff/2001/environs/ec2/image.go#newcode33 environs/ec2/image.go:33: OS string // The OS the image will run ...
12 years, 10 months ago (2012-05-17 10:03:46 UTC) #4
rog
Please take a look. https://codereview.appspot.com/6198064/diff/2001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6198064/diff/2001/environs/ec2/ec2.go#newcode115 environs/ec2/ec2.go:115: if err != nil && ...
12 years, 9 months ago (2012-05-21 17:40:30 UTC) #5
niemeyer
Quite nice, thanks. LGTM, given the below is addressed. Feel free to leave the renaming ...
12 years, 9 months ago (2012-05-21 21:29:10 UTC) #6
rog
12 years, 9 months ago (2012-05-22 09:00:58 UTC) #7
*** Submitted:

environs: upload juju tools to cloud.

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

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

https://codereview.appspot.com/6198064/diff/17001/cmd/juju/cmd_test.go#newcod...
cmd/juju/cmd_test.go:139: defer dummy.Reset()
On 2012/05/21 21:29:10, niemeyer wrote:
> Why is this necessary, considering that TearDownTest is doing it too?

Done.

https://codereview.appspot.com/6198064/diff/17001/environs/ec2/image_test.go
File environs/ec2/image_test.go (right):

https://codereview.appspot.com/6198064/diff/17001/environs/ec2/image_test.go#...
environs/ec2/image_test.go:76: func (imageSuite) TestFindImageSpec(c *C) {
On 2012/05/21 21:29:10, niemeyer wrote:
> The implementation changed but the test did not?

Done.

https://codereview.appspot.com/6198064/diff/17001/environs/tools.go
File environs/tools.go (right):

https://codereview.appspot.com/6198064/diff/17001/environs/tools.go#newcode19
environs/tools.go:19: var CurrentUbuntuRelease = "precise"         // TODO find
out actual version.
On 2012/05/21 21:29:10, niemeyer wrote:
> version, series, or release? Can we please stick to "series" across the whole
> code base whenever we mean the Ubuntu series?

i'll do this, but in general i'm not particularly keen on using this very
generic term in such a specific way. the vast majority of this code base is not
ubuntu-specific, and for the sake of future readers and porting efforts, i think
it would be nicer if parochial stuff like this was more obviously flagged. using
the word "ubuntu" seems like an easy and clear way to do that.

BTW if i google for "ubuntu series", apart from juju stuff, i get a single hit
(https://launchpad.net/ubuntu/+series), and even in there it refers to each
version as an "ubuntu release". it seems to me that using the term "series" to
refer to a particular ubuntu release is not greatly widespread.

https://codereview.appspot.com/6198064/diff/17001/environs/tools.go#newcode20
environs/tools.go:20: var CurrentArch = ubuntuArch(runtime.GOARCH) // TODO
better than this
On 2012/05/21 21:29:10, niemeyer wrote:
> On the same token, can we stick to "arch" whenever we mean architecture in the
> code base? (which means, the above is fine)

Done.

https://codereview.appspot.com/6198064/diff/17001/environs/tools.go#newcode45
environs/tools.go:45: // TODO find binaries from $PATH when go dev environment
not available.
On 2012/05/21 21:29:10, niemeyer wrote:
> // TODO find binaries from $PATH when not using a development
> // version of juju within a $GOPATH.

Done.

https://codereview.appspot.com/6198064/diff/17001/environs/tools.go#newcode105
environs/tools.go:105: // readFile writes the contents of the given file to w.
On 2012/05/21 21:29:10, niemeyer wrote:
> copyFile was a better name ("readFile writes")

Done.

https://codereview.appspot.com/6198064/diff/17001/environs/tools.go#newcode199
environs/tools.go:199: // found StorageReader and the path within that storage.
On 2012/05/21 21:29:10, niemeyer wrote:
> "the found StorageReader"? Would be good to clarify this.

Done.

https://codereview.appspot.com/6198064/diff/17001/environs/tools_test.go
File environs/tools_test.go (right):

https://codereview.appspot.com/6198064/diff/17001/environs/tools_test.go#newc...
environs/tools_test.go:216: version.Current = originalVersion
On 2012/05/21 21:29:10, niemeyer wrote:
> Rather than hacking it, it'd be nicer to provide FindTools with a version
> number. We'll need this anyway (and arch/series too).

i didn't do this because AFAIR you originally objected to passing a version to
Environ.FindTools. but i'm very happy to do it now.
Sign in to reply to this message.

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