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

Issue 132853003: Added support for properly building and running isolates in recipes. (Closed)

Created:
6 years, 11 months ago by Ken Russell (switch to Gerrit)
Modified:
6 years, 11 months ago
Reviewers:
iannucci
CC:
chromium-reviews, cmp-cc_chromium.org, ilevy-cc_chromium.org, xusydoc+watch_chromium.org, kjellander+cc_chromium.org, ghost stip (do not use), M-A Ruel, Vadim Sh., bajones, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Visibility:
Public.

Description

Added support for properly building and running isolates in recipes. Switched the GPU recipe to run gl_tests via an isolate. Will convert remaining tests to run via isolates once this is working well on the bots. In addition to recipes_test, tested by running gpu/build_and_test recipe locally on Linux. Isolate is properly uploaded to the server during the build steps and executed via run_isolated.py during the test steps. BUG=321878 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=244596

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed iannucci's review feedback. #

Patch Set 3 : Only use isolates on Release bots for now; the Debug bots use the component build. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1739 lines, -307 lines) Patch
M scripts/slave/recipe_modules/gpu/api.py View 1 2 4 chunks +16 lines, -2 lines 3 comments Download
M scripts/slave/recipe_modules/isolate/__init__.py View 1 chunk +1 line, -0 lines 0 comments Download
M scripts/slave/recipe_modules/isolate/api.py View 1 2 2 chunks +57 lines, -1 line 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.py View 1 chunk +6 lines, -1 line 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/linux_debug.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/linux_debug_blink.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/linux_debug_tryserver.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/linux_release.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/linux_release_blink.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/linux_release_tryserver.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_debug.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_debug_blink.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_debug_tryserver.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_release.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_release_blink.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_release_git.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_release_skip_checkout.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_release_skip_compile.json View 12 chunks +33 lines, -28 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_release_tryserver.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/mac_release_tryserver_blink.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/win_debug.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/win_debug_blink.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/win_debug_tryserver.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/win_release.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/win_release_blink.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_test.expected/win_release_tryserver.json View 3 chunks +10 lines, -5 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_upload.py View 1 2 1 chunk +11 lines, -9 lines 0 comments Download
A + scripts/slave/recipes/gpu/build_and_upload.expected/linux_debug.json View 1 2 5 chunks +8 lines, -8 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_upload.expected/linux_release.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A + scripts/slave/recipes/gpu/build_and_upload.expected/mac_debug.json View 1 2 5 chunks +8 lines, -8 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_upload.expected/mac_release.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A + scripts/slave/recipes/gpu/build_and_upload.expected/win_debug.json View 1 2 5 chunks +8 lines, -8 lines 0 comments Download
M scripts/slave/recipes/gpu/build_and_upload.expected/win_release.json View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M scripts/slave/recipes/gpu/download_and_test.py View 1 2 1 chunk +19 lines, -14 lines 0 comments Download
A scripts/slave/recipes/gpu/download_and_test.expected/linux_debug.json View 1 2 1 chunk +429 lines, -0 lines 0 comments Download
M scripts/slave/recipes/gpu/download_and_test.expected/linux_release.json View 1 2 15 chunks +45 lines, -40 lines 0 comments Download
A scripts/slave/recipes/gpu/download_and_test.expected/mac_debug.json View 1 2 1 chunk +408 lines, -0 lines 0 comments Download
M scripts/slave/recipes/gpu/download_and_test.expected/mac_release.json View 1 2 15 chunks +45 lines, -40 lines 0 comments Download
A scripts/slave/recipes/gpu/download_and_test.expected/win_debug.json View 1 2 1 chunk +432 lines, -0 lines 0 comments Download
M scripts/slave/recipes/gpu/download_and_test.expected/win_release.json View 1 2 15 chunks +45 lines, -40 lines 3 comments Download

Messages

Total messages: 11 (0 generated)
Ken Russell (switch to Gerrit)
Robbie: please review. Thanks. https://codereview.chromium.org/132853003/diff/1/scripts/slave/recipe_modules/gpu/api.py File scripts/slave/recipe_modules/gpu/api.py (left): https://codereview.chromium.org/132853003/diff/1/scripts/slave/recipe_modules/gpu/api.py#oldcode125 scripts/slave/recipe_modules/gpu/api.py:125: yield self.m.chromium.runtests(test, spawn_dbus=True) Note that ...
6 years, 11 months ago (2014-01-10 23:29:33 UTC) #1
iannucci
looks pretty good, just a few comments. https://codereview.chromium.org/132853003/diff/1/scripts/slave/recipe_modules/isolate/api.py File scripts/slave/recipe_modules/isolate/api.py (right): https://codereview.chromium.org/132853003/diff/1/scripts/slave/recipe_modules/isolate/api.py#newcode7 scripts/slave/recipe_modules/isolate/api.py:7: ISOLATE_SERVER = ...
6 years, 11 months ago (2014-01-10 23:50:25 UTC) #2
Ken Russell (switch to Gerrit)
Thanks for your review and feedback. Addressed it. Unfortunately, as we've just discussed offline, this ...
6 years, 11 months ago (2014-01-11 00:35:38 UTC) #3
Ken Russell (switch to Gerrit)
Please re-review. It turns out all of the Debug bots use the component build, so ...
6 years, 11 months ago (2014-01-11 03:07:11 UTC) #4
Ken Russell (switch to Gerrit)
On 2014/01/11 03:07:11, Ken Russell wrote: > Please re-review. It turns out all of the ...
6 years, 11 months ago (2014-01-13 19:46:39 UTC) #5
iannucci
lgtm https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_modules/gpu/api.py File scripts/slave/recipe_modules/gpu/api.py (right): https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_modules/gpu/api.py#newcode65 scripts/slave/recipe_modules/gpu/api.py:65: self._use_isolates = self.m.chromium.is_release_build I would actually make _use_isolates ...
6 years, 11 months ago (2014-01-13 21:24:29 UTC) #6
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_modules/gpu/api.py File scripts/slave/recipe_modules/gpu/api.py (right): https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_modules/gpu/api.py#newcode65 scripts/slave/recipe_modules/gpu/api.py:65: self._use_isolates = self.m.chromium.is_release_build On 2014/01/13 21:24:30, iannucci wrote: > ...
6 years, 11 months ago (2014-01-13 22:08:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kbr@chromium.org/132853003/70001
6 years, 11 months ago (2014-01-13 22:16:06 UTC) #8
commit-bot: I haz the power
Change committed as 244596
6 years, 11 months ago (2014-01-13 22:17:21 UTC) #9
iannucci
https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_modules/gpu/api.py File scripts/slave/recipe_modules/gpu/api.py (right): https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_modules/gpu/api.py#newcode65 scripts/slave/recipe_modules/gpu/api.py:65: self._use_isolates = self.m.chromium.is_release_build On 2014/01/13 22:08:20, Ken Russell wrote: ...
6 years, 11 months ago (2014-01-14 01:24:51 UTC) #10
Ken Russell (switch to Gerrit)
6 years, 11 months ago (2014-01-15 07:18:28 UTC) #11
Message was sent while issue was closed.
On 2014/01/14 01:24:51, iannucci wrote:
>
https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_mod...
> File scripts/slave/recipe_modules/gpu/api.py (right):
> 
>
https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipe_mod...
> scripts/slave/recipe_modules/gpu/api.py:65: self._use_isolates =
> self.m.chromium.is_release_build
> On 2014/01/13 22:08:20, Ken Russell wrote:
> > On 2014/01/13 21:24:30, iannucci wrote:
> > > I would actually make _use_isolates be an @property, so it always has the
> > > correct value, even if you don't call setup().
> > 
> > After thinking more about this I'm going to leave it as is. There are other
> > required side effects of calling GpuApi.setup(). We can revisit this in the
> > future.
> 
> Right, but if the chromium config changes, this value will also change... it's
> complicated :p.
> 
> No big deal.
> 
>
https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipes/gp...
> File scripts/slave/recipes/gpu/download_and_test.expected/win_release.json
> (right):
> 
>
https://codereview.chromium.org/132853003/diff/70001/scripts/slave/recipes/gp...
> scripts/slave/recipes/gpu/download_and_test.expected/win_release.json:318:
> "--builder-name=win release tester",
> On 2014/01/13 22:08:20, Ken Russell wrote:
> > On 2014/01/13 21:24:30, iannucci wrote:
> > > Hm. This seems to be quoted wrong. Probably a bug in the test output.
> > 
> > Should I file a bug about this? It's been the case for a while. I think the
> real
> > runs on the bots are working.
> 
> Yes, please.

Filed http://crbug.com/334552 .

Powered by Google App Engine
This is Rietveld 408576698