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

Issue 761253003: Add a new buildbot-tool generator for master configs (Closed)

Created:
6 years ago by Dirk Pranke
Modified:
6 years ago
Reviewers:
agable, luqui, iannucci
CC:
agable, chromium-reviews, cmp-cc_chromium.org, pgervais, Paweł Hajdan Jr., smut, scottmg
Project:
tools
Visibility:
Public.

Description

Add a new buildbot-tool generator for master configs. We eventually want to get to a point where we have a single stock config for buildbot masters (and slaves, and recipes) where as much as possible is configured from a single data file plus client-side recipes. This would allow us to change master configs by simply updating scripts and either noting that the data file changed (and having buildbot reconfigure itself automatically), or by typing 'make reconfig' to force it to do so without aborting any existing state. This tool is perhaps the first step on that path: it uses a single (json) data file and a set of templates, and adds a generator utility called 'buildbot-tool' that can generate a static, checked-in master config. None of the 'make reconfig' stuff works yet, and we only support one very simple kind of waterfall that uses a single Gitiles poller. R=iannucci@chromium.org, luqui@chromium.org BUG=356974 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=293339

Patch Set 1 : start by cloning client.mojo into buildbot_tool_templates #

Patch Set 2 : add buildbot-tool, turn files into actual templates #

Total comments: 6

Patch Set 3 : update w/ review feedback, still needs tests #

Patch Set 4 : add unit tests for buildbot_tool #

Patch Set 5 : switch from builders.json to builders.py #

Patch Set 6 : fix sys.path adjustment #

Patch Set 7 : skip builders.py in the PRESUBMIT #

Patch Set 8 : merge to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+601 lines, -27 lines) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A scripts/common/fake_filesystem.py View 1 2 3 1 chunk +76 lines, -0 lines 0 comments Download
A scripts/common/filesystem.py View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A scripts/tools/buildbot-tool View 1 1 chunk +7 lines, -0 lines 0 comments Download
A scripts/tools/buildbot_tool.py View 1 2 3 4 5 1 chunk +169 lines, -0 lines 0 comments Download
A scripts/tools/buildbot_tool_templates/Makefile View 1 1 chunk +8 lines, -0 lines 0 comments Download
A scripts/tools/buildbot_tool_templates/buildbot.tac View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + scripts/tools/buildbot_tool_templates/master.cfg View 1 2 3 4 5 6 7 4 chunks +9 lines, -22 lines 0 comments Download
A scripts/tools/buildbot_tool_templates/master_site_config.py View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + scripts/tools/buildbot_tool_templates/slaves.cfg View 1 1 chunk +3 lines, -5 lines 0 comments Download
A scripts/tools/unittests/buildbot_tool_test.py View 1 2 3 4 1 chunk +248 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
Dirk Pranke
Okay, here's a first pass at the 'buildbot-tool' generator and a set of templates that, ...
6 years ago (2014-12-06 02:30:31 UTC) #6
iannucci
On 2014/12/06 02:30:31, Dirk Pranke wrote: > Okay, here's a first pass at the 'buildbot-tool' ...
6 years ago (2014-12-08 10:20:52 UTC) #7
iannucci
On 2014/12/08 10:20:52, iannucci wrote: > On 2014/12/06 02:30:31, Dirk Pranke wrote: > > Okay, ...
6 years ago (2014-12-08 10:23:46 UTC) #8
Dirk Pranke
On 2014/12/08 10:23:46, iannucci wrote: > On 2014/12/08 10:20:52, iannucci wrote: > > On 2014/12/06 ...
6 years ago (2014-12-08 18:49:38 UTC) #9
iannucci
On 2014/12/08 18:49:38, Dirk Pranke wrote: > On 2014/12/08 10:23:46, iannucci wrote: > > On ...
6 years ago (2014-12-08 19:11:15 UTC) #10
agable
https://chromiumcodereview.appspot.com/761253003/diff/100001/scripts/common/filesystem.py File scripts/common/filesystem.py (right): https://chromiumcodereview.appspot.com/761253003/diff/100001/scripts/common/filesystem.py#newcode8 scripts/common/filesystem.py:8: class Filesystem(object): Seems like this should be in a ...
6 years ago (2014-12-09 21:13:24 UTC) #12
Dirk Pranke
https://chromiumcodereview.appspot.com/761253003/diff/100001/scripts/common/filesystem.py File scripts/common/filesystem.py (right): https://chromiumcodereview.appspot.com/761253003/diff/100001/scripts/common/filesystem.py#newcode8 scripts/common/filesystem.py:8: class Filesystem(object): On 2014/12/09 21:13:24, agable wrote: > Seems ...
6 years ago (2014-12-09 21:32:01 UTC) #13
Dirk Pranke
Okay, I believe I've addressed all of the review feedback, and I've added unit tests. ...
6 years ago (2014-12-10 01:21:20 UTC) #14
luqui
People seem to be fairly heavily in favor of painting the bikeshed python ast instead ...
6 years ago (2014-12-10 07:46:58 UTC) #15
Dirk Pranke
On 2014/12/10 07:46:58, luqui wrote: > People seem to be fairly heavily in favor of ...
6 years ago (2014-12-10 17:55:00 UTC) #16
Dirk Pranke
I think this patch is good to land. Please take a look? I've updated the ...
6 years ago (2014-12-10 21:31:43 UTC) #17
chromium-reviews
Having a dedicated lint check for builders.py sounds right. This patch lgtm. On Wed Dec ...
6 years ago (2014-12-10 21:54:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/761253003/200001
6 years ago (2014-12-10 22:00:48 UTC) #20
commit-bot: I haz the power
Failed to apply patch for build/scripts/tools/buildbot_tool_templates/master.cfg: While running patch -p1 --forward --force --no-backup-if-mismatch; A build/scripts/tools/buildbot_tool_templates ...
6 years ago (2014-12-10 22:00:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/761253003/220001
6 years ago (2014-12-10 22:32:04 UTC) #24
commit-bot: I haz the power
6 years ago (2014-12-10 22:34:19 UTC) #25
Message was sent while issue was closed.
Committed patchset #8 (id:220001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=293339

Powered by Google App Engine
This is Rietveld 408576698