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

Issue 14038045: worker/addresspublisher: new package

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

Description

worker/addresspublisher: new package This package implements a worker that watches machines in state and populates their addresses; it will also publish the addresses of relevant state server machines in the state and in the provider's state-info. This is the start of the implementation of this package, with internal tests for runMachine completed, but only a single test for watchMachinesLoop done. To come: complete tests for watchMachinesLoop; wiring up the logic to real state, and the state server publication. https://code.launchpad.net/~rogpeppe/juju-core/424-worker-publisher/+merge/188114 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : worker/addresspublisher: new package #

Total comments: 9

Patch Set 3 : worker/addresspublisher: new package #

Total comments: 4

Patch Set 4 : worker/addresspublisher: new package #

Unified diffs Side-by-side diffs Delta from patch set Stats (+613 lines, -0 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A worker/addressupdater/machine_test.go View 1 2 1 chunk +299 lines, -0 lines 0 comments Download
A worker/addressupdater/updater.go View 1 2 3 1 chunk +229 lines, -0 lines 0 comments Download
A worker/addressupdater/updater_test.go View 1 2 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
10 years, 7 months ago (2013-09-29 17:02:13 UTC) #1
fwereade
A few preliminary thoughts -- and a vague sensation that there's something a bit tangly ...
10 years, 7 months ago (2013-09-30 08:12:54 UTC) #2
rog
I'll publish these comments now, although I'm holding off moving forward this package for the ...
10 years, 7 months ago (2013-09-30 12:09:59 UTC) #3
rog
Please take a look. https://codereview.appspot.com/14038045/diff/3001/worker/addresspublisher/publisher.go File worker/addresspublisher/publisher.go (right): https://codereview.appspot.com/14038045/diff/3001/worker/addresspublisher/publisher.go#newcode78 worker/addresspublisher/publisher.go:78: ctxt publisherContext On 2013/09/30 12:09:59, ...
10 years, 7 months ago (2013-10-02 15:03:19 UTC) #4
fwereade
OK, I think this LGTM, despite the all-internal testing which makes it a bit hard ...
10 years, 7 months ago (2013-10-02 15:44:56 UTC) #5
rog
10 years, 7 months ago (2013-10-02 15:58:04 UTC) #6
Please take a look.

https://codereview.appspot.com/14038045/diff/8001/worker/addressupdater/updat...
File worker/addressupdater/updater.go (right):

https://codereview.appspot.com/14038045/diff/8001/worker/addressupdater/updat...
worker/addressupdater/updater.go:39: //}
On 2013/10/02 15:44:57, fwereade wrote:
> drop these bits?

since they're skeletons for upcoming code, I'd like
to leave them here until I flesh them out, if that's ok.

https://codereview.appspot.com/14038045/diff/8001/worker/addressupdater/updat...
worker/addressupdater/updater.go:197: // in which case we return. The logic will
still work
On 2013/10/02 15:44:57, fwereade wrote:
> not quite accurate any more

I've changed the logic slightly so that this comment
is no longer necessary.
Sign in to reply to this message.

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