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

Issue 2858103002: Have mash_browser_tests recreate BackgroundServiceManager per test (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, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Have mash_browser_tests recreate BackgroundServiceManager per test Currently one BackgroundServiceManager is created per batch of browser_tests. This ends up leaving the UI and Ash process running between tests. This is especially problematic for tests with PRE_test where state is expected to not be preserved into the following test. This change delays the initialization of a BackgroundServiceManager until the child test process has connected to the MojoTestState. Subsequent tests will tear down the previous BackgroundServiceManager before creating the new one. This also tears down the UI and Ash processes as desired. TEST=mash_browser_tests BUG=678687 Review-Url: https://codereview.chromium.org/2858103002 Cr-Commit-Position: refs/heads/master@{#473897} Committed: https://chromium.googlesource.com/chromium/src/+/d86012b80944319678d07adcc26b07b873deb5fa

Patch Set 1 #

Patch Set 2 : Merge delayed init #

Patch Set 3 : remove local testing of file manager slow tests #

Total comments: 2

Patch Set 4 : Do not set Aura Local when theres a pipe #

Patch Set 5 : Update Service to handle no resources #

Patch Set 6 : REbase #

Patch Set 7 : cleanly dont load aura resoursces #

Patch Set 8 : Disable broken tests #

Total comments: 6

Patch Set 9 : Stop startup when resources are unavailable #

Patch Set 10 : re-add my test suite #

Patch Set 11 : some tests have started timing out #

Patch Set 12 : Update Filters #

Patch Set 13 : disable failing nacl tests #

Total comments: 3

Patch Set 14 : Quit context when no resources avialable #

Patch Set 15 : Revert AuraInit Quitting #

Total comments: 4

Patch Set 16 : Revert AuraInit Changes #

Patch Set 17 : fix mac compile #

Patch Set 18 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -109 lines) Patch
M chrome/test/base/chrome_test_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/base/mash_browser_tests_main.cc View 1 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/base/mojo_test_connector.h View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M chrome/test/base/mojo_test_connector.cc View 1 2 3 4 5 6 7 8 8 chunks +18 lines, -12 lines 0 comments Download
M services/ui/service.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +12 lines, -4 lines 0 comments Download
M testing/buildbot/chromium.chromiumos.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +12 lines, -0 lines 0 comments Download
M testing/buildbot/filters/mash.browser_tests.filter View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +0 lines, -90 lines 0 comments Download

Messages

Total messages: 50 (17 generated)
jonross
Hey sky@ I realize that you are out for training, so feel free to get ...
3 years, 7 months ago (2017-05-03 22:06:40 UTC) #2
sky
https://codereview.chromium.org/2858103002/diff/40001/chrome/test/base/mojo_test_connector.cc File chrome/test/base/mojo_test_connector.cc (right): https://codereview.chromium.org/2858103002/diff/40001/chrome/test/base/mojo_test_connector.cc#newcode206 chrome/test/base/mojo_test_connector.cc:206: void MojoTestConnector::Init() { When multiple tests are run at ...
3 years, 7 months ago (2017-05-04 02:49:50 UTC) #3
jonross
https://codereview.chromium.org/2858103002/diff/40001/chrome/test/base/mojo_test_connector.cc File chrome/test/base/mojo_test_connector.cc (right): https://codereview.chromium.org/2858103002/diff/40001/chrome/test/base/mojo_test_connector.cc#newcode206 chrome/test/base/mojo_test_connector.cc:206: void MojoTestConnector::Init() { On 2017/05/04 02:49:49, sky wrote: > ...
3 years, 7 months ago (2017-05-04 13:41:41 UTC) #4
sky
Excellent. LGTM
3 years, 7 months ago (2017-05-04 15:23:03 UTC) #5
jonross
On 2017/05/04 15:23:03, sky wrote: > Excellent. LGTM I'm going to hold off on landing ...
3 years, 7 months ago (2017-05-04 20:46:07 UTC) #6
sky
+rockot Ken recently fixed a bug in mash_browser_tests that manifested as Aura being initted as ...
3 years, 7 months ago (2017-05-04 23:50:33 UTC) #7
jonross
Yeah, I had already pulled that patch. What appears to be happening is that we ...
3 years, 7 months ago (2017-05-05 14:11:00 UTC) #8
sky
That code should be called here: https://chromium.googlesource.com/chromium/src/+/master/content/public/test/test_launcher.cc#520 . Maybe the switches are some how wrong? ...
3 years, 7 months ago (2017-05-05 14:18:30 UTC) #9
jonross
On 2017/05/05 14:18:30, sky wrote: > That code should be called here: > https://chromium.googlesource.com/chromium/src/+/master/content/public/test/test_launcher.cc#520 > ...
3 years, 7 months ago (2017-05-12 13:56:57 UTC) #10
sky
https://codereview.chromium.org/2858103002/diff/140001/chrome/test/base/mash_browser_tests_main.cc File chrome/test/base/mash_browser_tests_main.cc (right): https://codereview.chromium.org/2858103002/diff/140001/chrome/test/base/mash_browser_tests_main.cc#newcode121 chrome/test/base/mash_browser_tests_main.cc:121: bool result = ChromeTestLauncherDelegate::AdjustChildProcessCommandLine( It doesn't seem that this ...
3 years, 7 months ago (2017-05-12 17:16:47 UTC) #11
jonross
https://codereview.chromium.org/2858103002/diff/140001/chrome/test/base/mash_browser_tests_main.cc File chrome/test/base/mash_browser_tests_main.cc (right): https://codereview.chromium.org/2858103002/diff/140001/chrome/test/base/mash_browser_tests_main.cc#newcode121 chrome/test/base/mash_browser_tests_main.cc:121: bool result = ChromeTestLauncherDelegate::AdjustChildProcessCommandLine( On 2017/05/12 17:16:47, sky wrote: ...
3 years, 7 months ago (2017-05-12 18:08:02 UTC) #12
jonross
https://codereview.chromium.org/2858103002/diff/140001/chrome/test/base/mash_browser_tests_main.cc File chrome/test/base/mash_browser_tests_main.cc (right): https://codereview.chromium.org/2858103002/diff/140001/chrome/test/base/mash_browser_tests_main.cc#newcode121 chrome/test/base/mash_browser_tests_main.cc:121: bool result = ChromeTestLauncherDelegate::AdjustChildProcessCommandLine( On 2017/05/12 18:08:02, jonross wrote: ...
3 years, 7 months ago (2017-05-16 21:54:45 UTC) #14
sky
https://codereview.chromium.org/2858103002/diff/260001/services/ui/service.cc File services/ui/service.cc (right): https://codereview.chromium.org/2858103002/diff/260001/services/ui/service.cc#newcode164 services/ui/service.cc:164: if (!InitializeResources(context()->connector())) On 2017/05/16 21:54:45, jonross wrote: > We ...
3 years, 7 months ago (2017-05-17 16:58:59 UTC) #15
jonross
Both ui/service and aura_init have been updated to quit the ServiceContext in the event of ...
3 years, 7 months ago (2017-05-18 19:23:28 UTC) #16
jonross
Both ui/service and aura_init have been updated to quit the ServiceContext in the event of ...
3 years, 7 months ago (2017-05-18 19:23:30 UTC) #17
sky
I'm ok with making the ui service quit, but I don't think AuraInit should do ...
3 years, 7 months ago (2017-05-18 19:47:35 UTC) #18
sky
The reason for not making AuraInit do the quit is that I suspect it isn't ...
3 years, 7 months ago (2017-05-18 19:52:58 UTC) #19
jonross
On 2017/05/18 19:52:58, sky wrote: > The reason for not making AuraInit do the quit ...
3 years, 7 months ago (2017-05-18 19:59:22 UTC) #20
sky
https://codereview.chromium.org/2858103002/diff/300001/services/ui/service.cc File services/ui/service.cc (right): https://codereview.chromium.org/2858103002/diff/300001/services/ui/service.cc#newcode116 services/ui/service.cc:116: LOG(ERROR) << "Service failed to open resource files.\n"; no ...
3 years, 7 months ago (2017-05-18 20:30:28 UTC) #21
jonross
As discussed offline all AuraInit changes are being pushed to a later patch. https://codereview.chromium.org/2858103002/diff/300001/services/ui/service.cc File ...
3 years, 7 months ago (2017-05-18 20:40:25 UTC) #22
sky
LGTM
3 years, 7 months ago (2017-05-18 21:07:14 UTC) #23
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/2858103002/320001
3 years, 7 months ago (2017-05-18 21:08:49 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/457642)
3 years, 7 months ago (2017-05-18 21:27:30 UTC) #27
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/2858103002/320001
3 years, 7 months ago (2017-05-19 13:22:57 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/423205)
3 years, 7 months ago (2017-05-19 13:46:13 UTC) #31
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/2858103002/340001
3 years, 7 months ago (2017-05-19 13:52:43 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/449827)
3 years, 7 months ago (2017-05-19 15:43:02 UTC) #36
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/2858103002/340001
3 years, 7 months ago (2017-05-19 17:36:30 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/450169)
3 years, 7 months ago (2017-05-19 20:07:53 UTC) #40
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/2858103002/340001
3 years, 7 months ago (2017-05-23 13:41:42 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/216823) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-23 13:43:53 UTC) #44
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/2858103002/360001
3 years, 7 months ago (2017-05-23 13:57:27 UTC) #47
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 15:06:15 UTC) #50
Message was sent while issue was closed.
Committed patchset #18 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/d86012b80944319678d07adcc26b...

Powered by Google App Engine
This is Rietveld 408576698