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

Issue 1169923008: Add support for GN's --runtime-deps-list-file flag to MB. (Closed)

Created:
5 years, 6 months ago by Dirk Pranke
Modified:
5 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for --runtime-deps-list-file flag to MB. This allows us to compute what files are needed at runtime to run each of the specified targets while we are also generating the .ninja files to build the targets; since GN has integrated support for this, we don't need to build .isolate.gen.json or .isolate files at compile time like we do for GYP. As far as the implementation goes, while --runtime-deps-list-file takes a list of GN labels (like //base:base_unittests), we actually only have a list of ninja build targets (like 'base_unittests'). So, we need to add a mapping of ninja target -> GN label somewhere. I think the best place to do this is in //testing/buildbot , and there I've updated the manage.py presubmit checks to make sure that we have mappings for all of the targets listed in the *.json config files. We can't easily check that the mapping is right, but at least we can verify that it does exist. R=phajdan.jr@chromium.org, maruel@chromium.org BUG=480053 Committed: https://crrev.com/74559b593fa49d493b07fce25a2fbf809c041b7f Cr-Commit-Position: refs/heads/master@{#333802}

Patch Set 1 #

Patch Set 2 : rework approach to use ninja_to_gn.pyl #

Patch Set 3 : s/test_targets_list/swarming_targets #

Total comments: 13

Patch Set 4 : update w/ review feedback, fix lint errors #

Patch Set 5 : merge to HEAD, add nacl_helper_nonsfi_unittests to fix presubmit failure #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -5 lines) Patch
M testing/buildbot/manage.py View 1 2 3 4 5 chunks +35 lines, -2 lines 0 comments Download
A testing/buildbot/ninja_to_gn.pyl View 1 1 chunk +91 lines, -0 lines 1 comment Download
M tools/mb/mb.py View 1 2 3 4 chunks +34 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
Dirk Pranke
Please take a look? I think this and https://codereview.chromium.org/1177593002/ should be what's needed to enable ...
5 years, 6 months ago (2015-06-10 06:43:17 UTC) #3
Paweł Hajdan Jr.
LGTM https://codereview.chromium.org/1169923008/diff/40001/testing/buildbot/manage.py File testing/buildbot/manage.py (right): https://codereview.chromium.org/1169923008/diff/40001/testing/buildbot/manage.py#newcode134 testing/buildbot/manage.py:134: if (not d['test'] in ninja_targets and nit: Consider ...
5 years, 6 months ago (2015-06-10 09:30:08 UTC) #4
M-A Ruel
https://codereview.chromium.org/1169923008/diff/40001/testing/buildbot/manage.py File testing/buildbot/manage.py (right): https://codereview.chromium.org/1169923008/diff/40001/testing/buildbot/manage.py#newcode254 testing/buildbot/manage.py:254: extra_targets = set(ninja_targets.keys()) - ninja_targets_seen set(ninja_targets) https://codereview.chromium.org/1169923008/diff/40001/tools/mb/mb.py File tools/mb/mb.py ...
5 years, 6 months ago (2015-06-10 14:53:40 UTC) #5
Dirk Pranke
https://codereview.chromium.org/1169923008/diff/40001/testing/buildbot/manage.py File testing/buildbot/manage.py (right): https://codereview.chromium.org/1169923008/diff/40001/testing/buildbot/manage.py#newcode134 testing/buildbot/manage.py:134: if (not d['test'] in ninja_targets and On 2015/06/10 09:30:08, ...
5 years, 6 months ago (2015-06-10 16:07:59 UTC) #6
Dirk Pranke
Patch updated; please take another look? I should look and see if my coverage has ...
5 years, 6 months ago (2015-06-10 19:38:13 UTC) #7
M-A Ruel
lgtm
5 years, 6 months ago (2015-06-10 19:43:55 UTC) #8
Dirk Pranke
My coverage numbers are indeed getting pretty bad now, but I'll leave that for another ...
5 years, 6 months ago (2015-06-10 19:47:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169923008/60001
5 years, 6 months ago (2015-06-10 19:48:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/69890)
5 years, 6 months ago (2015-06-10 19:55:58 UTC) #16
Dirk Pranke
On 2015/06/10 19:55:58, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 6 months ago (2015-06-10 20:07:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1169923008/80001
5 years, 6 months ago (2015-06-10 20:09:07 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-10 21:25:51 UTC) #21
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/74559b593fa49d493b07fce25a2fbf809c041b7f Cr-Commit-Position: refs/heads/master@{#333802}
5 years, 6 months ago (2015-06-10 21:26:36 UTC) #22
Nico
5 years, 5 months ago (2015-07-15 17:09:31 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/1169923008/diff/80001/testing/buildbot/ninja_...
File testing/buildbot/ninja_to_gn.pyl (right):

https://codereview.chromium.org/1169923008/diff/80001/testing/buildbot/ninja_...
testing/buildbot/ninja_to_gn.pyl:12: # hierarchical).
I just happened to see this file. Is this really needed? The hierarchical test
names work with gn too for most (all?) of the tests in this file, no?

Powered by Google App Engine
This is Rietveld 408576698