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

Issue 2903533003: One BackgroundServerManager per MojoTestState (Closed)

Created:
3 years, 7 months ago by jonross
Modified:
3 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, Ian Vollick, jam, yzshen+watch_chromium.org, abarth-chromium, jbauman+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, dcheng, piman+watch_chromium.org, kalyank, darin (slow to review), danakj+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

One BackgroundServerManager per MojoTestState We cannot have a shared BackgroundServerManager across all MojoTestStates. Currently the shared BackgroundServerManager is restarted when each child test process connects to the parent. However when batching tests they all connect at the start, before running the tests in sequence. This change makes it so that MojoTestState owns a BackgroundServerManager and creates it when the child connects. Thus allowing each test case to have its own set of the mash services running. Without other test runs deleting them. When a child process ends the TestState is destroyed, which will cleanup the services. BUG=678687 Review-Url: https://codereview.chromium.org/2903533003 Cr-Commit-Position: refs/heads/master@{#474992} Committed: https://chromium.googlesource.com/chromium/src/+/f45dbb0e42abd0c94f144ecb6966893a17759c07

Patch Set 1 #

Patch Set 2 : expand filter #

Patch Set 3 : disable timeouts #

Patch Set 4 : more timeouts #

Patch Set 5 : disable browsertest #

Patch Set 6 : Prep for review #

Patch Set 7 : new failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -45 lines) Patch
M chrome/test/base/mash_browser_tests_main.cc View 1 2 3 4 5 1 chunk +2 lines, -11 lines 0 comments Download
M chrome/test/base/mojo_test_connector.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/test/base/mojo_test_connector.cc View 1 2 3 4 5 5 chunks +33 lines, -19 lines 0 comments Download
M testing/buildbot/filters/mash.browser_tests.filter View 1 2 3 4 5 6 3 chunks +2 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
jonross
Hey, This change moves ownership of BackgroundServiceManager to MojoTestState, for tests not running with --single-process. ...
3 years, 7 months ago (2017-05-25 21:18:57 UTC) #3
jonross
Hey, This change moves ownership of BackgroundServiceManager to MojoTestState, for tests not running with --single-process. ...
3 years, 7 months ago (2017-05-25 21:18:58 UTC) #4
sky
LGTM
3 years, 7 months ago (2017-05-25 23:07:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2903533003/120001
3 years, 7 months ago (2017-05-26 02:25:39 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/303905)
3 years, 7 months ago (2017-05-26 06:11:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2903533003/120001
3 years, 7 months ago (2017-05-26 12:40:06 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 13:22:58 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/f45dbb0e42abd0c94f144ecb6966...

Powered by Google App Engine
This is Rietveld 408576698