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

Issue 1370373005: Add MB commands for generating isolates and running them. (Closed)

Created:
5 years, 2 months ago by Dirk Pranke
Modified:
5 years, 2 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 MB commands for generating isolates and running them. Since the logic for handling isolates in GN is split between the GN and MB tools, it's harder to build and test isolates with GN than it is with GYP (where you can just say 'ninja base_unittests_run' to build the isolate). This patch adds two new commands to the MB tool to make things easier. The first is `mb isolate`, which is the equivalent of the GYP _run targets: it creates the .isolate and .isolated.gen.json files. The second is `mb run`, which is a convenient wrapper command that runs mb isolate, runs ninja to ensure that the test is actually built and up-to-date, and then runs the swarming_client commands to actually run the test locally (in an isolated directory). Both commands will work either off of an existing build directory or in a new directory (if given the -m/-b or -c flags). R=kbr@chromium.org BUG= Committed: https://crrev.com/751516abefd8b10853c103c563345b5e04de970d Cr-Commit-Position: refs/heads/master@{#352217}

Patch Set 1 #

Patch Set 2 : more cleanup #

Patch Set 3 : merge mb_isolates forward, clean up a bit #

Total comments: 1

Patch Set 4 : add some basic unit tests for coverage of isolate and run #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -61 lines) Patch
M tools/mb/mb.py View 1 2 3 9 chunks +226 lines, -56 lines 0 comments Download
M tools/mb/mb_unittest.py View 1 2 3 6 chunks +48 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Dirk Pranke
Ken, FYI ... This isn't quite ready for review and landing yet, as I want ...
5 years, 2 months ago (2015-09-29 02:28:36 UTC) #2
Ken Russell (switch to Gerrit)
Thanks for adding these commands. They'll be very helpful. It's unfortunate that the mb fix ...
5 years, 2 months ago (2015-09-29 06:55:45 UTC) #3
nednguyen
On 2015/09/29 06:55:45, Ken Russell wrote: > Thanks for adding these commands. They'll be very ...
5 years, 2 months ago (2015-09-29 15:38:33 UTC) #4
Dirk Pranke
Okay, I think this is ready for review. I should still add some unittests for ...
5 years, 2 months ago (2015-10-02 02:02:53 UTC) #6
Ken Russell (switch to Gerrit)
LGTM to land before unit tests. The important thing is that the commands work. https://codereview.chromium.org/1370373005/diff/60001/tools/mb/mb.py ...
5 years, 2 months ago (2015-10-02 18:08:20 UTC) #7
Dirk Pranke
On 2015/10/02 18:08:20, Ken Russell wrote: > LGTM to land before unit tests. The important ...
5 years, 2 months ago (2015-10-02 18:29:37 UTC) #8
Dirk Pranke
added some basic unit tests and fixed some bugs.
5 years, 2 months ago (2015-10-02 23:18:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370373005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370373005/80001
5 years, 2 months ago (2015-10-02 23:20:15 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 2 months ago (2015-10-03 01:11:47 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-03 01:12:36 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/751516abefd8b10853c103c563345b5e04de970d
Cr-Commit-Position: refs/heads/master@{#352217}

Powered by Google App Engine
This is Rietveld 408576698