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

Issue 1152093002: Adjust master_gen.PopulateBuildmasterConfig() to look at master_site_config (Closed)

Created:
5 years, 7 months ago by Dirk Pranke
Modified:
5 years, 7 months ago
Reviewers:
sullivan, nodir, luqui
CC:
chromium-reviews, kjellander-cc_chromium.org, stip+watch_chromium.org, sullivan
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

Adjust master_gen.PopulateBuildmasterConfig() to look at master_site_config. When master_gen was initially written, we had hoped to be able to delete master_site_config, and so master.cfg would call master_gen.PopulateBuildmasterConfig() to define the active_master class on the fly. However, we realized that we still needed master_site_config.py to exist for various other scripts and tests, even though the buildbot startup itself didn't need it. So, we added a template to create the site_config as well. Unfortunately, the code was now duplicated in two places and potentially not in sync. In particular, the bug below was caused by master_site_config being updated, but master_gen not being updated. This CL changes the master.cfg template to actually use the master_site_config class definition, and simplifies master_gen as a result, so that the class definitions aren't duplicated. Generally, we don't want master.cfg to import any other modules, because every module that is imported will *not* be reload on 'make config', and if that module changes we will actually need to restart the master. However, the fields that are defined in master_site_config.py, while pulled from builders.pyl, are generally write-once, defined when the master is initially created, and shouldn't change over the lifetime of the master. I guess we'll see if that ends up being true in practice. R=nodir@chromium.org, luqui@chromium.org BUG=490830 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=295381

Patch Set 1 #

Total comments: 9

Patch Set 2 : add active_master_cls param to AnnotatorFactory() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -38 lines) Patch
M masters/master.chromium.mojo/master.cfg View 2 chunks +4 lines, -1 line 0 comments Download
M masters/master.client.catapult/master.cfg View 2 chunks +4 lines, -1 line 0 comments Download
M masters/master.client.crashpad/master.cfg View 2 chunks +4 lines, -1 line 0 comments Download
M masters/master.client.gyp/master.cfg View 2 chunks +4 lines, -1 line 0 comments Download
M masters/master.tryserver.client.catapult/master.cfg View 2 chunks +4 lines, -1 line 0 comments Download
M scripts/master/master_gen.py View 1 2 chunks +6 lines, -22 lines 0 comments Download
M scripts/master/unittests/master_gen_test.py View 4 chunks +12 lines, -9 lines 0 comments Download
M scripts/tools/buildbot_tool_templates/tryserver/master.cfg View 2 chunks +4 lines, -1 line 0 comments Download
M scripts/tools/buildbot_tool_templates/waterfall/master.cfg View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 16 (4 generated)
Dirk Pranke
https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py File scripts/master/master_gen.py (left): https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py#oldcode44 scripts/master/master_gen.py:44: # without needing the master to re-read things. luqui@ ...
5 years, 7 months ago (2015-05-21 23:31:29 UTC) #2
nodir
https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py File scripts/master/master_gen.py (right): https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py#newcode29 scripts/master/master_gen.py:29: m_annotator = annotator_factory.AnnotatorFactory() pass active_master_cls as a parameter, https://code.google.com/p/chromium/codesearch#chromium/build/scripts/master/factory/annotator_factory.py&q=annotator_fa&sq=package:chromium&l=20 ...
5 years, 7 months ago (2015-05-21 23:44:35 UTC) #3
Dirk Pranke
https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py File scripts/master/master_gen.py (right): https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py#newcode29 scripts/master/master_gen.py:29: m_annotator = annotator_factory.AnnotatorFactory() On 2015/05/21 23:44:35, nodir wrote: > ...
5 years, 7 months ago (2015-05-21 23:57:31 UTC) #4
nodir
https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py File scripts/master/master_gen.py (right): https://codereview.chromium.org/1152093002/diff/1/scripts/master/master_gen.py#newcode29 scripts/master/master_gen.py:29: m_annotator = annotator_factory.AnnotatorFactory() On 2015/05/21 23:57:31, Dirk Pranke wrote: ...
5 years, 7 months ago (2015-05-22 00:09:28 UTC) #5
Dirk Pranke
parameter added. please take another look?
5 years, 7 months ago (2015-05-22 00:41:56 UTC) #6
nodir
lgtm
5 years, 7 months ago (2015-05-22 00:54:54 UTC) #7
Dirk Pranke
Thanks, Nodir! Luqui@, feel like looking as well?
5 years, 7 months ago (2015-05-22 00:59:47 UTC) #8
luqui
lgtm also.
5 years, 7 months ago (2015-05-22 04:38:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152093002/20001
5 years, 7 months ago (2015-05-22 16:30:32 UTC) #11
commit-bot: I haz the power
Presubmit check for 1152093002-20001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 7 months ago (2015-05-22 16:34:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152093002/20001
5 years, 7 months ago (2015-05-22 17:01:57 UTC) #15
commit-bot: I haz the power
5 years, 7 months ago (2015-05-22 17:06:17 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=295381

Powered by Google App Engine
This is Rietveld 408576698