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

Issue 2901113003: Fix breakages while performance_browser_tests was not running on Mac. (Closed)

Created:
3 years, 7 months ago by miu
Modified:
3 years, 6 months ago
CC:
chromium-reviews, imcheng+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, feature-media-reviews_chromium.org, xjz+watch_chromium.org, mfoltz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix breakages while performance_browser_tests was not running on Mac. In our vain attempt to re-enable performance_browser_tests on the Mac bots, a number of breakages seem to have happened over the months where we were not even aware the tests weren't running. This change fixes all of the following: 1. Adds a BUILD dependency on //chrome:chrome_app. Without this, the test binary would be missing many runtime dependencies (e.g., the whole "Chrome Framework" bundle). 2. Migrate MachPortsTest to use BrowserTestBase::embedded_test_server() instead of its own server of "fake content" for its browser tests. 3. Add base::ScopedAllowIO for a test utility class that creates and tears down its own set of threads. It's not clear why the thread restriction is only checked on Mac (perhaps it's in the way the browser test's main thread is set up?). Nevertheless, it's perfectly reasonable for the main thread to block on stopping these other threads: After the test has run, the threads are shut down before the data analysis begins, since we want to be sure the data sets are no longer mutating. Also, added PRESUBMIT.py exception for this use case. BUG=697444, 722367 TBR=nduca Review-Url: https://codereview.chromium.org/2901113003 Cr-Commit-Position: refs/heads/master@{#475773} Committed: https://chromium.googlesource.com/chromium/src/+/8e0e80c3608ac2a08e87ead7d103578f6751f2f6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -8 lines) Patch
M PRESUBMIT.py View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/perf/mach_ports_performancetest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M media/cast/test/utility/standalone_cast_environment.cc View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
miu
cmp: PTAL at chrome/test/perf/mach_ports_performancetest.cc. Yes, your test has not been running for a long time ...
3 years, 7 months ago (2017-05-24 02:45:44 UTC) #2
xjz
media/cast LGTM.
3 years, 7 months ago (2017-05-24 17:35:15 UTC) #7
Paweł Hajdan Jr.
LGTM Note cmp@ is likely inactive at this point.
3 years, 7 months ago (2017-05-26 15:21:52 UTC) #8
miu
Replaced cmp with nduca (for chrome/test/perf/...). Also, due to the fact that this has been ...
3 years, 6 months ago (2017-05-30 20:15:41 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/2901113003/1
3 years, 6 months ago (2017-05-30 20:16:31 UTC) #13
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/306409)
3 years, 6 months ago (2017-05-30 23:38:45 UTC) #15
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/2901113003/1
3 years, 6 months ago (2017-05-31 01:39:36 UTC) #17
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 03:36:11 UTC) #20
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/8e0e80c3608ac2a08e87ead7d103...

Powered by Google App Engine
This is Rietveld 408576698