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

Issue 7755045: cmd/jujud: upgrader skips unnecessary downloads

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by fwereade
Modified:
11 years, 1 month ago
Reviewers:
dave, jameinel, thumper, mp+153378
Visibility:
Public.

Description

cmd/jujud: upgrader skips unnecessary downloads kinda trivial, but I couldn't figure out how to write a test case. Not really keen toput in any more time on this, just saw it lying around -- I'm fine either submitting or rejecting as is. Agreed that a better-factored loop would simplify this a lot and make it more testable; also agree out of scope. https://code.launchpad.net/~fwereade/juju-core/upgrader-save-unnecessary-download/+merge/153378 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : cmd/jujud: upgrader skips unnecessary downloads #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/upgrade.go View 1 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 6
fwereade
Please take a look.
11 years, 1 month ago (2013-03-14 14:37:21 UTC) #1
dave_cheney.net
LGTM if you say so. https://codereview.appspot.com/7755045/diff/1/cmd/jujud/upgrade.go File cmd/jujud/upgrade.go (right): https://codereview.appspot.com/7755045/diff/1/cmd/jujud/upgrade.go#newcode179 cmd/jujud/upgrade.go:179: // The perfect tools ...
11 years, 1 month ago (2013-03-14 21:44:10 UTC) #2
jameinel
LGTM. Better to be landed than not, though I feel the reason it is hard ...
11 years, 1 month ago (2013-03-17 11:13:59 UTC) #3
thumper
LTGM I agree with John's comments about it being easier to test if the function ...
11 years, 1 month ago (2013-03-21 22:25:26 UTC) #4
thumper
On 2013/03/21 22:25:26, thumper wrote: > LTGM LGTM even dumb abbreviation > I agree with ...
11 years, 1 month ago (2013-03-21 22:26:16 UTC) #5
fwereade
11 years, 1 month ago (2013-03-22 10:49:25 UTC) #6
*** Submitted:

cmd/jujud: upgrader skips unnecessary downloads

kinda trivial, but I couldn't figure out how to write a test case. Not
really keen toput in any more time on this, just saw it lying around --
I'm fine either submitting or rejecting as is.

Agreed that a better-factored loop would simplify this a lot and make it
more testable; also agree out of scope.

R=dfc, jameinel, thumper
CC=
https://codereview.appspot.com/7755045

https://codereview.appspot.com/7755045/diff/1/cmd/jujud/upgrade.go
File cmd/jujud/upgrade.go (right):

https://codereview.appspot.com/7755045/diff/1/cmd/jujud/upgrade.go#newcode179
cmd/jujud/upgrade.go:179: // The perfect tools have already been downloaded, so
use them.
On 2013/03/14 21:44:10, dfc wrote:
> s/perfect/exact/

Done.
Sign in to reply to this message.

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