Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 1239343003: Rework how isolates are generated in MB. (Closed)

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

Description

Rework how isolates are generated in MB. This patch changes how MB will generate the .isolate files for a GN build: First, we rename 'ninja_to_gn.pyl' to 'gn_isolate_map.pyl', and change it from a straight compile_target -> gn_label map to a map of compile_target -> { "label": gn_label, "type": string, "args": optional list<string> }. Valid values for "type" are "windowed_test_launcher" : the test is a gtest-based test that uses the 'brave-new-test-launcher' from //base/test:test_support and needs to run under Xvfb if run on an X11-based platform (i.e., if use_x11=true in GN). "console_test_launcher" : the test is a gtest-based test that uses the 'brave-new-test-launcher' from //base/test:test_support but does not need Xvfb. "raw" : the test is just an executable and may take an optional list of command-line arguments (specified in the 'args' key), but does not need any extra files or other special processing. "unknown" : (the default), which indicates that we don't know what the command line needs to be (this is a fatal error). Second, we read the new file in, and build a lookup map of test types to command lines. We will probably need to keep iterating on the list of test types and command lines, and perhaps provide some escape hatches so that we can handle the full variety of tests. [email protected] BUG=503942, 504079 Committed: https://crrev.com/a55584f181b9ca9c6806f0d41eb4112e47a16e67 Cr-Commit-Position: refs/heads/master@{#339804}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+470 lines, -144 lines) Patch
A testing/buildbot/gn_isolate_map.pyl View 1 chunk +380 lines, -0 lines 0 comments Download
M testing/buildbot/manage.py View 3 chunks +4 lines, -4 lines 1 comment Download
D testing/buildbot/ninja_to_gn.pyl View 1 chunk +0 lines, -102 lines 0 comments Download
M tools/mb/mb.py View 4 chunks +86 lines, -38 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 7 (1 generated)
Dirk Pranke
TBR'ing since this patch is excerpted from https://codereview.chromium.org/1206033005/ where it was LGTM'ed. (This patch only ...
5 years, 5 months ago (2015-07-21 21:37:02 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239343003/1
5 years, 5 months ago (2015-07-21 23:41:30 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 5 months ago (2015-07-22 00:52:54 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a55584f181b9ca9c6806f0d41eb4112e47a16e67 Cr-Commit-Position: refs/heads/master@{#339804}
5 years, 5 months ago (2015-07-22 00:54:24 UTC) #5
M-A Ruel
a few nits https://codereview.chromium.org/1239343003/diff/1/testing/buildbot/manage.py File testing/buildbot/manage.py (right): https://codereview.chromium.org/1239343003/diff/1/testing/buildbot/manage.py#newcode272 testing/buildbot/manage.py:272: ninja_targets = dict((k, v['label']) for k, ...
5 years, 5 months ago (2015-07-22 18:22:42 UTC) #6
Dirk Pranke
5 years, 5 months ago (2015-07-22 18:46:02 UTC) #7
Message was sent while issue was closed.
On 2015/07/22 18:22:42, M-A Ruel wrote:
> a few nits
>

I think you gave me this feedback before somewhere and I must've 
dropped it on the floor. Sorry!

I will fix in a follow-up patch.

Powered by Google App Engine
This is Rietveld 408576698