DescriptionRework 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 #
Messages
Total messages: 8 (3 generated)
|