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

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

Created:
5 years, 6 months ago by Dirk Pranke
Modified:
5 years, 5 months ago
Reviewers:
brettw, M-A Ruel, sky
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}. 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, 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. For now, we only know how to handle base_unittests, ui_base_unittests, and cacheinvalidation_unittests. R=maruel@chromium.org, brettw@chromium.org, sky@chromium.org BUG=503942, 504079 CQ_EXTRA_TRYBOTS=tryserver.chromium.mac:mac_chromium_gn_rel

Patch Set 1 #

Patch Set 2 : blacklist more gn bots from the conversion #

Patch Set 3 : make tests more consistent #

Patch Set 4 : fix typo #

Patch Set 5 : add ui_base_unittests_run #

Total comments: 2

Patch Set 6 : add missing test_env.py #

Patch Set 7 : merge to HEAD #

Patch Set 8 : add cacheinvalidation_unittests as an exercise #

Patch Set 9 : clean up for landing #

Patch Set 10 : fix missing data dependencies for ui_base_unittests #

Patch Set 11 : formatting #

Patch Set 12 : clean up osmesa, add comments about ui_test_pak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -147 lines) Patch
M testing/buildbot/chromium.linux.json View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
A testing/buildbot/gn_isolate_map.pyl View 1 2 3 4 5 6 7 8 1 chunk +380 lines, -0 lines 0 comments Download
M testing/buildbot/manage.py View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
D testing/buildbot/ninja_to_gn.pyl View 1 2 3 4 5 6 1 chunk +0 lines, -102 lines 0 comments Download
M third_party/cacheinvalidation/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M tools/mb/mb.py View 1 2 3 4 5 6 7 4 chunks +86 lines, -38 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +42 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Dirk Pranke
5 years, 6 months ago (2015-06-25 01:26:08 UTC) #1
M-A Ruel
Interesting, lgtm https://codereview.chromium.org/1206033005/diff/80001/testing/buildbot/manage.py File testing/buildbot/manage.py (right): https://codereview.chromium.org/1206033005/diff/80001/testing/buildbot/manage.py#newcode272 testing/buildbot/manage.py:272: ninja_targets = dict((k, v['label']) for k, v ...
5 years, 6 months ago (2015-06-25 14:49:22 UTC) #2
Dirk Pranke
Minor changes after the lgtm: - added a new 'raw' type to handle cases where ...
5 years, 5 months ago (2015-07-21 21:04:42 UTC) #6
Dirk Pranke
Brett, can you look at third_party/cacheinvalidation and ui/base ; Scott, can you look at just ...
5 years, 5 months ago (2015-07-21 21:05:33 UTC) #7
Dirk Pranke
5 years, 5 months ago (2015-07-21 21:40:37 UTC) #8
Message was sent while issue was closed.
On 2015/07/21 21:05:33, Dirk Pranke wrote:
> Brett, can you look at third_party/cacheinvalidation and ui/base ; Scott, can
> you look at just ui/base?
> 
> Maruel already covered the other stuff.

Closing ... Brett, Scott, please take a look at
https://codereview.chromium.org/1246103005 instead.

Powered by Google App Engine
This is Rietveld 408576698