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

Issue 1178733003: Modify annotated_run to read factory configs from the slave checkout. (Closed)

Created:
5 years, 6 months ago by Dirk Pranke
Modified:
5 years, 6 months ago
CC:
Paweł Hajdan Jr., chromium-reviews, kjellander-cc_chromium.org, stip+watch_chromium.org, ghost stip (do not use)
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Modify annotated_run to read factory configs from the slave checkout. Currently if you wish to change the recipe a builder uses, or change the other factory properties associated with a builder, you need to restart the master. This change modifies annotated_run.py so that instead of taking the information the master hands us, we ignore it and use the copy of the master config we find in the slave checkout, which should be up-to-date. This should allow us to eliminate a decent number of master restarts. (Though it would still be a good idea to restart the masters periodically so that they don't get too stale). R=iannucci@chromium.org, phajdan.jr@chromium.org, luqui@chromium.org BUG=499071 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=295684

Patch Set 1 #

Total comments: 14

Patch Set 2 : update w/ minor fixes from review feedback #

Patch Set 3 : rework to use scripts/tools/dump_master_cfg #

Patch Set 4 : add --override-lookup to run_recipe and annotated_run #

Total comments: 7

Patch Set 5 : fix logic, rework code to be more readable (and rename new flag) #

Total comments: 11

Patch Set 6 : fix lint error, merge to r295681 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -37 lines) Patch
M scripts/slave/annotated_run.py View 1 2 3 4 5 4 chunks +94 lines, -28 lines 0 comments Download
M scripts/tools/run_recipe.py View 1 2 3 4 4 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 41 (8 generated)
Dirk Pranke
5 years, 6 months ago (2015-06-10 23:35:58 UTC) #1
iannucci
https://codereview.chromium.org/1178733003/diff/1/scripts/slave/dump_factory_properties.py File scripts/slave/dump_factory_properties.py (right): https://codereview.chromium.org/1178733003/diff/1/scripts/slave/dump_factory_properties.py#newcode1 scripts/slave/dump_factory_properties.py:1: #!/usr/bin/python probably want to put this in scripts/tools https://codereview.chromium.org/1178733003/diff/1/scripts/slave/dump_factory_properties.py#newcode37 ...
5 years, 6 months ago (2015-06-11 00:28:08 UTC) #2
Dirk Pranke
https://codereview.chromium.org/1178733003/diff/1/scripts/slave/dump_factory_properties.py File scripts/slave/dump_factory_properties.py (right): https://codereview.chromium.org/1178733003/diff/1/scripts/slave/dump_factory_properties.py#newcode1 scripts/slave/dump_factory_properties.py:1: #!/usr/bin/python On 2015/06/11 00:28:08, iannucci wrote: > probably want ...
5 years, 6 months ago (2015-06-11 01:13:43 UTC) #3
iannucci
forgot to re-upload?
5 years, 6 months ago (2015-06-11 07:34:20 UTC) #4
Paweł Hajdan Jr.
https://codereview.chromium.org/1178733003/diff/1/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://codereview.chromium.org/1178733003/diff/1/scripts/slave/annotated_run.py#newcode36 scripts/slave/annotated_run.py:36: buildername = factory_properties['buildername'] How does this interact with e.g. ...
5 years, 6 months ago (2015-06-11 08:38:19 UTC) #6
Dirk Pranke
On 2015/06/11 07:34:20, iannucci wrote: > forgot to re-upload? no, just haven't gotten to it ...
5 years, 6 months ago (2015-06-11 16:38:16 UTC) #7
Dirk Pranke
On 2015/06/11 08:38:19, Paweł Hajdan Jr. wrote: > https://codereview.chromium.org/1178733003/diff/1/scripts/slave/annotated_run.py > File scripts/slave/annotated_run.py (right): > > ...
5 years, 6 months ago (2015-06-11 16:40:50 UTC) #8
iannucci
On 2015/06/11 08:38:19, Paweł Hajdan Jr. wrote: > https://codereview.chromium.org/1178733003/diff/1/scripts/slave/annotated_run.py > File scripts/slave/annotated_run.py (right): > > ...
5 years, 6 months ago (2015-06-11 16:41:14 UTC) #9
iannucci
On 2015/06/11 16:41:14, iannucci wrote: > On 2015/06/11 08:38:19, Paweł Hajdan Jr. wrote: > > ...
5 years, 6 months ago (2015-06-11 16:42:38 UTC) #10
Dirk Pranke
On 2015/06/11 16:40:50, Dirk Pranke wrote: > annotated_run calls run_recipe, so I would expect run_recipe ...
5 years, 6 months ago (2015-06-11 17:03:32 UTC) #11
Dirk Pranke
On 2015/06/11 17:03:32, Dirk Pranke wrote: > On 2015/06/11 16:40:50, Dirk Pranke wrote: > > ...
5 years, 6 months ago (2015-06-11 20:43:23 UTC) #12
iannucci
On 2015/06/11 20:43:23, Dirk Pranke wrote: > On 2015/06/11 17:03:32, Dirk Pranke wrote: > > ...
5 years, 6 months ago (2015-06-11 21:03:28 UTC) #13
Dirk Pranke
On 2015/06/11 21:03:28, iannucci wrote: > On 2015/06/11 20:43:23, Dirk Pranke wrote: > > On ...
5 years, 6 months ago (2015-06-11 21:28:29 UTC) #14
Dirk Pranke
Okay, this is re-worked to use the --override-lookup approach as discussed, and to use the ...
5 years, 6 months ago (2015-06-11 22:40:21 UTC) #15
iannucci
lg, though I don't think the new lookup logic will WAI https://codereview.chromium.org/1178733003/diff/60001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): ...
5 years, 6 months ago (2015-06-11 23:01:50 UTC) #16
Dirk Pranke
https://codereview.chromium.org/1178733003/diff/60001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://codereview.chromium.org/1178733003/diff/60001/scripts/slave/annotated_run.py#newcode49 scripts/slave/annotated_run.py:49: (properties['recipe'], factory_properties['recipe'])) Ok. It's easy enough to do. https://codereview.chromium.org/1178733003/diff/60001/scripts/slave/annotated_run.py#newcode81 ...
5 years, 6 months ago (2015-06-11 23:22:47 UTC) #17
iannucci
On 2015/06/11 23:22:47, Dirk Pranke wrote: > https://codereview.chromium.org/1178733003/diff/60001/scripts/slave/annotated_run.py > File scripts/slave/annotated_run.py (right): > > https://codereview.chromium.org/1178733003/diff/60001/scripts/slave/annotated_run.py#newcode49 ...
5 years, 6 months ago (2015-06-11 23:43:20 UTC) #18
Dirk Pranke
https://codereview.chromium.org/1178733003/diff/120001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://codereview.chromium.org/1178733003/diff/120001/scripts/slave/annotated_run.py#newcode52 scripts/slave/annotated_run.py:52: slave_properties[name]) If the master has a property set and ...
5 years, 6 months ago (2015-06-12 03:01:53 UTC) #21
Dirk Pranke
Okay, tested and cleaned up. Please take another look?
5 years, 6 months ago (2015-06-12 03:03:07 UTC) #22
Paweł Hajdan Jr.
https://codereview.chromium.org/1178733003/diff/120001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://codereview.chromium.org/1178733003/diff/120001/scripts/slave/annotated_run.py#newcode52 scripts/slave/annotated_run.py:52: slave_properties[name]) On 2015/06/12 at 03:01:53, Dirk Pranke wrote: > ...
5 years, 6 months ago (2015-06-12 09:24:11 UTC) #23
Dirk Pranke
If this basically looks good, I'd like to land this as-is so we can unblock ...
5 years, 6 months ago (2015-06-12 15:42:37 UTC) #24
iannucci
lgtm https://chromiumcodereview.appspot.com/1178733003/diff/120001/scripts/slave/annotated_run.py File scripts/slave/annotated_run.py (right): https://chromiumcodereview.appspot.com/1178733003/diff/120001/scripts/slave/annotated_run.py#newcode41 scripts/slave/annotated_run.py:41: buildername = master_properties['buildername'] these may not be set ...
5 years, 6 months ago (2015-06-12 17:46:59 UTC) #25
Paweł Hajdan Jr.
LGTM
5 years, 6 months ago (2015-06-15 10:02:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178733003/120001
5 years, 6 months ago (2015-06-15 21:02:37 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: build_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/build_presubmit/builds/201)
5 years, 6 months ago (2015-06-15 21:09:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178733003/140001
5 years, 6 months ago (2015-06-15 21:22:21 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: build_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/build_presubmit/builds/210)
5 years, 6 months ago (2015-06-15 21:29:15 UTC) #35
Dirk Pranke
Committed patchset #6 (id:140001) manually as 295684.
5 years, 6 months ago (2015-06-15 21:33:38 UTC) #36
Dirk Pranke
On 2015/06/15 21:33:38, Dirk Pranke wrote: > Committed patchset #6 (id:140001) manually as 295684. (bypassing ...
5 years, 6 months ago (2015-06-15 21:34:59 UTC) #37
Vadim Sh.
On 2015/06/15 21:34:59, Dirk Pranke wrote: > On 2015/06/15 21:33:38, Dirk Pranke wrote: > > ...
5 years, 6 months ago (2015-06-15 21:42:00 UTC) #38
Dirk Pranke
A revert of this CL (patchset #6 id:140001) has been created in https://codereview.chromium.org/1183223004/ by dpranke@chromium.org. ...
5 years, 6 months ago (2015-06-15 21:44:06 UTC) #39
Dirk Pranke
@vadimsh: I believe you're right; I'm on it.
5 years, 6 months ago (2015-06-15 21:45:51 UTC) #40
Dirk Pranke
5 years, 6 months ago (2015-06-15 21:48:26 UTC) #41
Message was sent while issue was closed.
On 2015/06/15 21:45:51, Dirk Pranke wrote:
> @vadimsh: I believe you're right; I'm on it.

I thought I had fixed that issue; I will take another look.

Powered by Google App Engine
This is Rietveld 408576698