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

Issue 7102043: various: use agent package, lose agent flags

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

Description

various: use agent package, lose agent flags Unfortunate circular dependencies mean this comes in one big lump. https://code.launchpad.net/~rogpeppe/juju-core/180-jujud-lose-flags/+merge/142938 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : various: use agent package, lose agent flags #

Patch Set 3 : various: use agent package, lose agent flags #

Total comments: 12

Patch Set 4 : various: use agent package, lose agent flags #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -498 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/agent.go View 1 5 chunks +20 lines, -131 lines 0 comments Download
M cmd/jujud/agent_test.go View 10 chunks +92 lines, -66 lines 0 comments Download
M cmd/jujud/bootstrap.go View 3 chunks +9 lines, -4 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 11 chunks +29 lines, -21 lines 0 comments Download
M cmd/jujud/deploy_test.go View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 chunks +5 lines, -2 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 5 chunks +38 lines, -63 lines 0 comments Download
M cmd/jujud/main_test.go View 1 chunk +0 lines, -8 lines 0 comments Download
M cmd/jujud/unit.go View 2 chunks +5 lines, -2 lines 0 comments Download
M cmd/jujud/unit_test.go View 5 chunks +37 lines, -70 lines 0 comments Download
M cmd/jujud/upgrade_test.go View 11 chunks +33 lines, -36 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 3 8 chunks +79 lines, -49 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 5 chunks +24 lines, -14 lines 0 comments Download
M state/open.go View 1 1 chunk +1 line, -1 line 0 comments Download
M worker/deployer/simple.go View 2 chunks +16 lines, -19 lines 0 comments Download
M worker/deployer/simple_test.go View 3 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
11 years, 3 months ago (2013-01-11 16:56:54 UTC) #1
dimitern
On 2013/01/11 16:56:54, rog wrote: > Please take a look. LGTM with a few trivial ...
11 years, 3 months ago (2013-01-11 17:27:24 UTC) #2
dimitern
LGTM with these.. https://codereview.appspot.com/7102043/diff/5001/cmd/jujud/bootstrap_test.go File cmd/jujud/bootstrap_test.go (right): https://codereview.appspot.com/7102043/diff/5001/cmd/jujud/bootstrap_test.go#newcode44 cmd/jujud/bootstrap_test.go:44: func (s *BootstrapSuite) initBootstrapCommand(c *C, args ...
11 years, 3 months ago (2013-01-11 17:27:56 UTC) #3
fwereade
On 2013/01/11 17:27:56, dimitern wrote: > LGTM with these.. > > https://codereview.appspot.com/7102043/diff/5001/cmd/jujud/bootstrap_test.go > File cmd/jujud/bootstrap_test.go ...
11 years, 3 months ago (2013-01-11 17:50:37 UTC) #4
fwereade
gaah, sorry https://codereview.appspot.com/7102043/diff/5001/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (right): https://codereview.appspot.com/7102043/diff/5001/environs/cloudinit/cloudinit.go#newcode205 environs/cloudinit/cloudinit.go:205: acfg := cfg.agentConfig(entityName) On 2013/01/11 17:27:56, dimitern ...
11 years, 3 months ago (2013-01-11 18:01:26 UTC) #5
rog
11 years, 3 months ago (2013-01-11 18:18:37 UTC) #6
*** Submitted:

various: use agent package, lose agent flags

Unfortunate circular dependencies mean this
comes in one big lump.

R=dimitern, fwereade
CC=
https://codereview.appspot.com/7102043

https://codereview.appspot.com/7102043/diff/5001/cmd/jujud/deploy_test.go
File cmd/jujud/deploy_test.go (right):

https://codereview.appspot.com/7102043/diff/5001/cmd/jujud/deploy_test.go#new...
cmd/jujud/deploy_test.go:82: e0 := *expectInfo
On 2013/01/11 17:27:56, dimitern wrote:
> What's the purpose of this?

it means we don't care how expectInfo is changed after the call to this
function, because we're making a copy of it.

https://codereview.appspot.com/7102043/diff/5001/environs/cloudinit/cloudinit.go
File environs/cloudinit/cloudinit.go (right):

https://codereview.appspot.com/7102043/diff/5001/environs/cloudinit/cloudinit...
environs/cloudinit/cloudinit.go:205: acfg := cfg.agentConfig(entityName)
On 2013/01/11 17:27:56, dimitern wrote:
> Why don't you replace these few lines with a call to addAgentInfo() above? It
> seems like unnecessary duplication.

good call.

https://codereview.appspot.com/7102043/diff/5001/environs/cloudinit/cloudinit...
File environs/cloudinit/cloudinit_test.go (right):

https://codereview.appspot.com/7102043/diff/5001/environs/cloudinit/cloudinit...
environs/cloudinit/cloudinit_test.go:279: cfg.StateInfo = &state.Info{Addrs:
[]string{"host:98765"}}
On 2013/01/11 17:27:56, dimitern wrote:
> Maybe adding a constant MONGODB_HOST = "host:98765" will make it better?

i'm not sure that helps - it's longer, and the exact value is irrelevant - they
could all contain different values and it wouldn't matter.

https://codereview.appspot.com/7102043/diff/5001/state/state.go
File state/state.go (right):

https://codereview.appspot.com/7102043/diff/5001/state/state.go#newcode696
state/state.go:696: log.Printf("set password %q = %q", name, password)
On 2013/01/11 18:01:26, fwereade wrote:
> badges on log messages?

i thought i'd deleted that already!
Sign in to reply to this message.

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