Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 1128783003: Add master_manager_launch script which launches master_manager scripts for each master on a host. (Closed)

Created:
5 years, 7 months ago by ghost stip (do not use)
Modified:
5 years, 7 months ago
Reviewers:
agable, iannucci
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Add master_manager_launch script which launches master_manager scripts for each master on a host. BUG=479059 Committed: https://chromium.googlesource.com/infra/infra/+/51f4a0dc0f645c4ade146178112d8b504cc5f7b9

Patch Set 1 #

Patch Set 2 : Add coverage. #

Total comments: 38

Patch Set 3 : Semi-address comments. #

Patch Set 4 : Fix typo. #

Patch Set 5 : Some more cleanup. #

Patch Set 6 : Move to infra/services. #

Total comments: 16

Patch Set 7 : Address agable's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -5 lines) Patch
M infra/libs/buildbot/master.py View 1 2 3 1 chunk +22 lines, -5 lines 0 comments Download
M infra/libs/buildbot/test/master_test.py View 1 1 chunk +12 lines, -0 lines 0 comments Download
A infra/services/master_manager_launcher/__init__.py View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A infra/services/master_manager_launcher/__main__.py View 1 2 3 4 5 1 chunk +122 lines, -0 lines 0 comments Download
A infra/services/master_manager_launcher/desired_state_parser.py View 1 2 3 4 5 6 1 chunk +134 lines, -0 lines 0 comments Download
A infra/services/master_manager_launcher/test/__init__.py View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A infra/services/master_manager_launcher/test/data/invalid.json View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A infra/services/master_manager_launcher/test/data/valid.json View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A infra/services/master_manager_launcher/test/desired_state_parser_test.py View 1 2 3 4 5 6 1 chunk +138 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
ghost stip (do not use)
ptal. this version doesn't have multiprocessing or gitiles support yet, those will be added in ...
5 years, 7 months ago (2015-05-06 07:15:27 UTC) #2
agable
https://codereview.chromium.org/1128783003/diff/20001/infra/tools/master_manager_launcher/__main__.py File infra/tools/master_manager_launcher/__main__.py (right): https://codereview.chromium.org/1128783003/diff/20001/infra/tools/master_manager_launcher/__main__.py#newcode1 infra/tools/master_manager_launcher/__main__.py:1: #!/usr/bin/python infra/tools is meant to hold things for people ...
5 years, 7 months ago (2015-05-06 23:29:31 UTC) #3
iannucci
some more minor bits https://chromiumcodereview.appspot.com/1128783003/diff/20001/infra/libs/buildbot/master.py File infra/libs/buildbot/master.py (right): https://chromiumcodereview.appspot.com/1128783003/diff/20001/infra/libs/buildbot/master.py#newcode110 infra/libs/buildbot/master.py:110: return json.loads(subprocess.check_output( if this gets ...
5 years, 7 months ago (2015-05-06 23:48:05 UTC) #4
ghost stip (do not use)
https://codereview.chromium.org/1128783003/diff/20001/infra/libs/buildbot/master.py File infra/libs/buildbot/master.py (right): https://codereview.chromium.org/1128783003/diff/20001/infra/libs/buildbot/master.py#newcode110 infra/libs/buildbot/master.py:110: return json.loads(subprocess.check_output( On 2015/05/06 23:48:05, iannucci wrote: > if ...
5 years, 7 months ago (2015-05-07 06:50:57 UTC) #5
ghost stip (do not use)
ok, addressed the comments. ptal! to make things a bit easier to follow, the first ...
5 years, 7 months ago (2015-05-07 07:07:22 UTC) #6
agable
https://chromiumcodereview.appspot.com/1128783003/diff/20001/infra/tools/master_manager_launcher/__main__.py File infra/tools/master_manager_launcher/__main__.py (right): https://chromiumcodereview.appspot.com/1128783003/diff/20001/infra/tools/master_manager_launcher/__main__.py#newcode77 infra/tools/master_manager_launcher/__main__.py:77: def log_triggered_ignored(triggered, ignored, hostname, logger): On 2015/05/07 at 06:50:57, ...
5 years, 7 months ago (2015-05-07 17:59:30 UTC) #7
agable
https://chromiumcodereview.appspot.com/1128783003/diff/20001/infra/tools/master_manager_launcher/__main__.py File infra/tools/master_manager_launcher/__main__.py (right): https://chromiumcodereview.appspot.com/1128783003/diff/20001/infra/tools/master_manager_launcher/__main__.py#newcode77 infra/tools/master_manager_launcher/__main__.py:77: def log_triggered_ignored(triggered, ignored, hostname, logger): On 2015/05/07 at 06:50:57, ...
5 years, 7 months ago (2015-05-07 17:59:31 UTC) #8
ghost stip (do not use)
ptal with: 1 rebuttal (past states) 1 half-rebuttal (printing command lines raw vs. space-joined) 1 ...
5 years, 7 months ago (2015-05-07 19:49:40 UTC) #9
agable
LGTM % my rebuttal to your rebuttal :) I don't actually expect you to change ...
5 years, 7 months ago (2015-05-08 00:14:53 UTC) #10
ghost stip (do not use)
https://codereview.chromium.org/1128783003/diff/20001/infra/tools/master_manager_launcher/desired_state_parser.py File infra/tools/master_manager_launcher/desired_state_parser.py (right): https://codereview.chromium.org/1128783003/diff/20001/infra/tools/master_manager_launcher/desired_state_parser.py#newcode67 infra/tools/master_manager_launcher/desired_state_parser.py:67: if not get_master_state(states, now=now): On 2015/05/08 00:14:53, agable wrote: ...
5 years, 7 months ago (2015-05-08 00:22:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128783003/110001
5 years, 7 months ago (2015-05-08 00:22:39 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:110001) as https://chromium.googlesource.com/infra/infra/+/51f4a0dc0f645c4ade146178112d8b504cc5f7b9
5 years, 7 months ago (2015-05-08 00:26:47 UTC) #14
agable
5 years, 7 months ago (2015-05-08 18:01:03 UTC) #15
Message was sent while issue was closed.
On 2015/05/08 at 00:22:13, stip wrote:
> On 2015/05/08 00:14:53, agable wrote:
> > Case 1.5: The file used to contain a bunch of entries, but has been cleaned
out
> > for the sake of readability. Goto Case 2 or 3.
> 
> You can't clean it out for readability fully, because the script (and
presubmit) won't allow you to delete all entries -- you must have at least one
describing a state in the past.

/facepalm, yes, that was my point exactly -- you *should* be able to clean it
out fully, which is one of the reasons that the script *shouldn't* enforce
describing at least one state in the past.

Powered by Google App Engine
This is Rietveld 408576698