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

Issue 13952043: Hook up tools mirrors (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by wallyworld
Modified:
10 years, 7 months ago
Reviewers:
mp+187642, thumper
Visibility:
Public.

Description

Hook up tools mirrors When finding tools metadata, simplestreams mirrors are now used. The initial mirrors work was done in isolation and so it turned out that a chunk of code could be deleted, since mirrors metadata parsing is not done stand alone, but incorprated into the index loading process. https://code.launchpad.net/~wallyworld/juju-core/use-simplestreams-mirrors/+merge/187642 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -142 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/simplestreams/simplestreams.go View 11 chunks +60 lines, -83 lines 4 comments Download
M environs/simplestreams/simplestreams_test.go View 4 chunks +15 lines, -54 lines 2 comments Download
M environs/simplestreams/testing/testing.go View 4 chunks +44 lines, -1 line 2 comments Download
M environs/tools/simplestreams.go View 2 chunks +5 lines, -3 lines 0 comments Download
M environs/tools/simplestreams_test.go View 1 chunk +25 lines, -0 lines 0 comments Download
M environs/tools/testing/testing.go View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3
wallyworld
Please take a look.
10 years, 7 months ago (2013-09-26 03:01:18 UTC) #1
thumper
LGTM - although not sure I fully grok it. There are a few places where ...
10 years, 7 months ago (2013-09-26 03:31:39 UTC) #2
wallyworld
10 years, 7 months ago (2013-09-26 03:48:31 UTC) #3
https://codereview.appspot.com/13952043/diff/1/environs/simplestreams/simples...
File environs/simplestreams/simplestreams.go (right):

https://codereview.appspot.com/13952043/diff/1/environs/simplestreams/simples...
environs/simplestreams/simplestreams.go:20: //	"path"
On 2013/09/26 03:31:39, thumper wrote:
> wat?

Sigh. I mean to delete this line

https://codereview.appspot.com/13952043/diff/1/environs/simplestreams/simples...
environs/simplestreams/simplestreams.go:607: return mirrorRef.hasCloud(cloud)
//&& mirrorRef.DataType == datatype
On 2013/09/26 03:31:39, thumper wrote:
> why have you commented this out?  the comment above suggests that it is
needed.

Ooops. I meant to uncomment this

https://codereview.appspot.com/13952043/diff/1/environs/simplestreams/simples...
File environs/simplestreams/simplestreams_test.go (right):

https://codereview.appspot.com/13952043/diff/1/environs/simplestreams/simples...
environs/simplestreams/simplestreams_test.go:394: if !c.Check(err, gc.IsNil) {
On 2013/09/26 03:31:39, thumper wrote:
> I did not realise that Check had a return type

Pretty nifty for using in a for loop.

https://codereview.appspot.com/13952043/diff/1/environs/simplestreams/testing...
File environs/simplestreams/testing/testing.go (right):

https://codereview.appspot.com/13952043/diff/1/environs/simplestreams/testing...
environs/simplestreams/testing/testing.go:86: "region": "us-east-1",
On 2013/09/26 03:31:39, thumper wrote:
> this indentation looks wrong.  Even though this is JSON, it is hard to follow
> the indentation.

Tabs vs spaces. WFT does Go use tabs I'll never understand.
Sign in to reply to this message.

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