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

Issue 2298403002: Update MB to use `gn analyze`. (Closed)

Created:
4 years, 3 months ago by Dirk Pranke
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update MB to use `gn analyze`. Now that GN supports a form of `analyze` directly, this patch updates //tools/mb to use it rather than working awkwardly through `gn refs`. The MB implementation now is mostly responsible for mapping ninja targets to labels, calling GN, and then mapping returned labels back to ninja targets. Eventually we should update the recipes to just pass labels around instead. One significant change is that now we need entries in gn_isolate_map.pyl for every target listed in 'additional_compile_targets' and 'isolated_scripts' as well as in 'gtest_tests', because we have to remap everything to the GN labels, not just tests for swarming. We should switch everything to using GN labels directly, but that'll require follow-on CLs. R=brettw@chromium.org BUG=555273 Committed: https://crrev.com/9aba8b21177df3ed3e897d5c500d845fbf5523e6 Cr-Commit-Position: refs/heads/master@{#419315}

Patch Set 1 #

Patch Set 2 : remove analyze exclusions for testing purposes #

Patch Set 3 : allow additional_compile_targets that aren't in gn_isolate_map.pyl #

Patch Set 4 : add default logic for handling _run targets, handle //chrome #

Patch Set 5 : add better debugging #

Patch Set 6 : more debugging #

Patch Set 7 : add mapping for remaining targets #

Total comments: 3

Patch Set 8 : change a couple of source files for testing purposes #

Patch Set 9 : back out test-related changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -222 lines) Patch
M testing/buildbot/gn_isolate_map.pyl View 1 2 3 4 5 6 7 10 chunks +71 lines, -8 lines 0 comments Download
M testing/buildbot/manage.py View 1 2 3 4 5 6 3 chunks +39 lines, -30 lines 0 comments Download
M tools/mb/mb.py View 1 2 3 4 5 6 20 chunks +121 lines, -124 lines 0 comments Download
M tools/mb/mb_unittest.py View 2 chunks +20 lines, -60 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
Dirk Pranke
4 years, 3 months ago (2016-08-31 21:18:20 UTC) #1
Dirk Pranke
This depends on rolling `gn analyze` in first, obviously. https://codereview.chromium.org/2298943002/
4 years, 3 months ago (2016-08-31 21:20:00 UTC) #2
brettw
lgtm
4 years, 3 months ago (2016-09-06 22:35:58 UTC) #3
Dirk Pranke
@kbr, @phajdan.jr - You might be interested to the changes to `mb analyze` and the ...
4 years, 3 months ago (2016-09-16 01:36:44 UTC) #10
Paweł Hajdan Jr.
LGTM
4 years, 3 months ago (2016-09-16 17:51:30 UTC) #11
Ken Russell (switch to Gerrit)
Generally LGTM. One question and comment. https://codereview.chromium.org/2298403002/diff/120001/testing/buildbot/manage.py File testing/buildbot/manage.py (right): https://codereview.chromium.org/2298403002/diff/120001/testing/buildbot/manage.py#newcode266 testing/buildbot/manage.py:266: name = d['isolate_name'] ...
4 years, 3 months ago (2016-09-16 18:13:32 UTC) #12
Dirk Pranke
On 2016/09/16 18:13:32, Ken Russell wrote: > Generally LGTM. One question and comment. > > ...
4 years, 3 months ago (2016-09-16 18:55:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2298403002/160001
4 years, 3 months ago (2016-09-16 22:25:41 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-16 22:53:13 UTC) #21
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/9aba8b21177df3ed3e897d5c500d845fbf5523e6 Cr-Commit-Position: refs/heads/master@{#419315}
4 years, 3 months ago (2016-09-16 22:56:30 UTC) #23
mmenke
On 2016/09/16 22:56:30, commit-bot: I haz the power wrote: > Patchset 9 (id:??) landed as ...
4 years, 3 months ago (2016-09-16 23:10:15 UTC) #24
Dirk Pranke
On 2016/09/16 23:10:15, mmenke wrote: > On 2016/09/16 22:56:30, commit-bot: I haz the power wrote: ...
4 years, 3 months ago (2016-09-16 23:15:01 UTC) #25
Dirk Pranke
4 years, 3 months ago (2016-09-16 23:15:25 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:160001) has been created in
https://codereview.chromium.org/2341403004/ by dpranke@chromium.org.

The reason for reverting is: Need to add "aura_builder", probably others ....

Powered by Google App Engine
This is Rietveld 408576698