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

Issue 13417043: juju-metadata: add generate-tools subcommand (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by axw
Modified:
10 years, 7 months ago
Reviewers:
axw1, mp+183070, wallyworld, jameinel
Visibility:
Public.

Description

juju-metadata: add generate-tools subcommand This is a new subcommand for the juju-metadata plugin, which can be used to generate simplestreams metadata (index and products) for an existing set of tools. The command will list the tools in the public bucket or a local directory, and generate the index and tools metadata in the same location. https://code.launchpad.net/~axwalk/juju-core/juju-metadata-generate-tools/+merge/183070 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : juju-metadata: add generate-tools subcommand #

Patch Set 3 : juju-metadata: add generate-tools subcommand #

Total comments: 18

Patch Set 4 : juju-metadata: add generate-tools subcommand #

Total comments: 5

Patch Set 5 : juju-metadata: add generate-tools subcommand #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+916 lines, -115 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/plugins/juju-metadata/metadata.go View 1 chunk +1 line, -0 lines 0 comments Download
M cmd/plugins/juju-metadata/metadataplugin_test.go View 1 chunk +1 line, -0 lines 0 comments Download
A cmd/plugins/juju-metadata/toolsmetadata.go View 1 2 3 4 1 chunk +169 lines, -0 lines 0 comments Download
A cmd/plugins/juju-metadata/toolsmetadata_test.go View 1 2 1 chunk +243 lines, -0 lines 2 comments Download
A environs/filestorage/filestorage.go View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M environs/localstorage/storage.go View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M environs/localstorage/storage_test.go View 1 chunk +9 lines, -0 lines 0 comments Download
A environs/simplestreams/json.go View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A environs/simplestreams/json_test.go View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M environs/simplestreams/simplestreams.go View 1 2 3 4 3 chunks +20 lines, -34 lines 0 comments Download
M environs/simplestreams/simplestreams_test.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M environs/sync/sync.go View 1 2 3 3 chunks +2 lines, -73 lines 0 comments Download
M environs/tools/boilerplate.go View 1 chunk +1 line, -1 line 0 comments Download
A environs/tools/marshal.go View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A environs/tools/marshal_test.go View 1 2 3 4 1 chunk +150 lines, -0 lines 0 comments Download
M environs/tools/simplestreams.go View 1 2 3 2 chunks +12 lines, -7 lines 0 comments Download
M environs/tools/simplestreams_test.go View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 11
axw
Please take a look.
10 years, 8 months ago (2013-08-30 03:58:24 UTC) #1
axw
Please take a look.
10 years, 8 months ago (2013-08-30 05:04:34 UTC) #2
axw
Please take a look.
10 years, 8 months ago (2013-08-30 05:46:37 UTC) #3
wallyworld
Coming along nicely. But not quite there. See various comments. https://codereview.appspot.com/13417043/diff/7001/cmd/plugins/juju-metadata/toolsmetadata.go File cmd/plugins/juju-metadata/toolsmetadata.go (right): https://codereview.appspot.com/13417043/diff/7001/cmd/plugins/juju-metadata/toolsmetadata.go#newcode30 ...
10 years, 8 months ago (2013-08-30 06:40:42 UTC) #4
axw1
https://codereview.appspot.com/13417043/diff/7001/cmd/plugins/juju-metadata/toolsmetadata.go File cmd/plugins/juju-metadata/toolsmetadata.go (right): https://codereview.appspot.com/13417043/diff/7001/cmd/plugins/juju-metadata/toolsmetadata.go#newcode30 cmd/plugins/juju-metadata/toolsmetadata.go:30: const pathPrefix = "tools/" On 2013/08/30 06:40:42, wallyworld wrote: ...
10 years, 8 months ago (2013-08-30 08:46:56 UTC) #5
axw
Please take a look.
10 years, 8 months ago (2013-08-30 08:49:39 UTC) #6
wallyworld
LGTM with the issues highlighted addressed https://codereview.appspot.com/13417043/diff/18001/environs/localstorage/storage.go File environs/localstorage/storage.go (right): https://codereview.appspot.com/13417043/diff/18001/environs/localstorage/storage.go#newcode71 environs/localstorage/storage.go:71: } I'd prefer ...
10 years, 8 months ago (2013-09-02 01:44:13 UTC) #7
axw1
On 2013/09/02 01:44:13, wallyworld wrote: > LGTM with the issues highlighted addressed > > https://codereview.appspot.com/13417043/diff/18001/environs/localstorage/storage.go ...
10 years, 8 months ago (2013-09-02 02:46:03 UTC) #8
axw
Please take a look.
10 years, 8 months ago (2013-09-02 03:42:49 UTC) #9
jameinel
https://codereview.appspot.com/13417043/diff/27001/cmd/plugins/juju-metadata/toolsmetadata_test.go File cmd/plugins/juju-metadata/toolsmetadata_test.go (right): https://codereview.appspot.com/13417043/diff/27001/cmd/plugins/juju-metadata/toolsmetadata_test.go#newcode232 cmd/plugins/juju-metadata/toolsmetadata_test.go:232: SHA256: "9268ba87201b1514171cc09334db6f680e1e013f5ae584f1b43252c743eea841", How did you come up with these ...
10 years, 8 months ago (2013-09-02 05:48:29 UTC) #10
axw1
10 years, 8 months ago (2013-09-02 05:59:26 UTC) #11
https://codereview.appspot.com/13417043/diff/27001/cmd/plugins/juju-metadata/...
File cmd/plugins/juju-metadata/toolsmetadata_test.go (right):

https://codereview.appspot.com/13417043/diff/27001/cmd/plugins/juju-metadata/...
cmd/plugins/juju-metadata/toolsmetadata_test.go:232: SHA256:  
"9268ba87201b1514171cc09334db6f680e1e013f5ae584f1b43252c743eea841",
On 2013/09/02 05:48:30, jameinel wrote:
> How did you come up with these SHA sums? It certainly seems very site-specific
> because the actual SHA will end up depending on the details of the compression
> (by default gzip compression inserts date stamps into the stream, so you won't
> ever be able to predict the compression of a newly generated file).

I've changed this a bit already, so the contents of the files are not tgz, but a
well defined content string. So the SHA1 sum is just a sum of that content.

> If we can validate them through some other path, I would love to see it, but
if
> we have to, you can do:
> 
>    SHA256: metadata[0].SHA256

What would be the point? I'm checking the value of metadata[N] :)

> Can we grab the actual .tgz before it is uploaded and check its sha that way?

Yes, that's probably more sensible. I'll do that.
Sign in to reply to this message.

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