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

Issue 8318043: jujud: run machiner

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rog
Modified:
11 years, 1 month ago
Reviewers:
dimitern, mp+156867, fwereade
Visibility:
Public.

Description

jujud: run machiner The test is very slow because of the poll interval. We'll fix that later, but for the time being this means that machines will actually transition to Dead state correctly. https://code.launchpad.net/~rogpeppe/juju-core/258-jujud-run-machiner/+merge/156867 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : jujud: run machiner #

Total comments: 6

Patch Set 3 : jujud: run machiner #

Patch Set 4 : jujud: run machiner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 2 chunks +5 lines, -1 line 0 comments Download
M cmd/jujud/machine_test.go View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
11 years, 1 month ago (2013-04-03 14:36:41 UTC) #1
fwereade
LGTM https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine.go File cmd/jujud/machine.go (right): https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine.go#newcode107 cmd/jujud/machine.go:107: NewUpgrader(st, m, a.Conf.DataDir), I'm suddenly freaked out that ...
11 years, 1 month ago (2013-04-03 14:45:43 UTC) #2
dimitern
LGTM, just one comment. https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine_test.go File cmd/jujud/machine_test.go (right): https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine_test.go#newcode117 cmd/jujud/machine_test.go:117: case <-time.After(6 * time.Second): should ...
11 years, 1 month ago (2013-04-03 14:51:15 UTC) #3
rog
11 years, 1 month ago (2013-04-03 15:34:22 UTC) #4
*** Submitted:

jujud: run machiner

The test is very slow because of the poll interval.
We'll fix that later, but for the time being this
means that machines will actually transition to
Dead state correctly.

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

https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine.go
File cmd/jujud/machine.go (right):

https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine.go#newcode107
cmd/jujud/machine.go:107: NewUpgrader(st, m, a.Conf.DataDir),
On 2013/04/03 14:45:44, fwereade wrote:
> I'm suddenly freaked out that NewUpgrader might not clone m. This is totally
> irrelevant to this CL, though.

it probably should (let's do a Clone method) but for the time being this is safe
even if it doesn't, because we don't pass m to anything else.

https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine_test.go
File cmd/jujud/machine_test.go (right):

https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine_test.go#ne...
cmd/jujud/machine_test.go:117: case <-time.After(6 * time.Second):
On 2013/04/03 14:51:15, dimitern wrote:
> should this be a const somewhere then?

Done.

https://codereview.appspot.com/8318043/diff/2001/cmd/jujud/machine_test.go#ne...
cmd/jujud/machine_test.go:119: // TODO(rog) allow shorter poll interval in
tests.
On 2013/04/03 14:45:44, fwereade wrote:
> Please give this a bug in LP and badge it here.

Done.
Sign in to reply to this message.

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