Commit c1324fa4 authored by Caleb Rouleau's avatar Caleb Rouleau Committed by Commit Bot

[Perf Waterfall] Always grab webview shell from next to primary apk.

Telemetry already has logic to grab the shell apk that is next to the
primary apk (whether it be monochrome or system webview). There is no
reason to provide an additional full-length path to the shell apk.
Adding this flag is complicated because it must be separately added
for pinpoint and for the perf waterfall, or otherwise they start
with different arguments. Removing it simplifies things and ensures
that we don't accidentally run a shell apk that is from a different
chromium output directory from the primary apk.

See this discussion for details:
https://groups.google.com/a/google.com/forum/#!topic/chrome-benchmarking/LMAJAgjftZo

Also, no longer allow --browser=exact for webview. per
https://chromium-review.googlesource.com/c/chromium/src/+/1959661/3/testing/buildbot/chromium.perf.json#1337
if you pass --browser=exact and --browser-executable=.../monochrome.apk
then Telemetry will run Clank, not webview. This has always been true
and is true regardless of whether the --webview-embedder-apk flag is passed.

Bug: 1028125
Change-Id: I9ac19cc7b2fab586ccf19c0b5eb7838152486326
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1962908Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723974}
parent 6a41fda7
......@@ -173,7 +173,6 @@
"--browser=android-webview",
"--upload-results",
"--test-shard-map-filename=android_nexus5x_webview_perf_map.json",
"--webview-embedder-apk=../../out/Release/apks/SystemWebViewShell.apk",
"--assert-gpu-compositing"
],
"isolate_name": "performance_webview_test_suite",
......@@ -220,7 +219,6 @@
"--browser=android-webview",
"--upload-results",
"--test-shard-map-filename=android_nexus6_webview_perf_map.json",
"--webview-embedder-apk=../../out/Release/apks/SystemWebViewShell.apk",
"--assert-gpu-compositing"
],
"isolate_name": "performance_webview_test_suite",
......@@ -912,8 +910,7 @@
"-v",
"--browser=android-webview-google",
"--upload-results",
"--test-shard-map-filename=android-go_webview-perf_map.json",
"--webview-embedder-apk=../../out/Release/apks/SystemWebViewShell.apk"
"--test-shard-map-filename=android-go_webview-perf_map.json"
],
"isolate_name": "performance_webview_test_suite",
"merge": {
......@@ -1333,8 +1330,7 @@
"-v",
"--browser=android-webview-google",
"--upload-results",
"--test-shard-map-filename=android-pixel2_webview-perf_map.json",
"--webview-embedder-apk=../../out/Release/apks/SystemWebViewShell.apk"
"--test-shard-map-filename=android-pixel2_webview-perf_map.json"
],
"isolate_name": "performance_webview_test_suite",
"merge": {
......
......@@ -1200,9 +1200,6 @@ def generate_telemetry_args(tester_config, platform):
if tester_config['platform'].startswith('android'):
test_args.append('--device=android')
if tester_config['platform'].startswith('android-webview'):
test_args.append(
'--webview-embedder-apk=../../out/Release/apks/SystemWebViewShell.apk')
if tester_config['platform'] == 'android-weblayer':
test_args.append(
'--webview-embedder-apk=../../out/Release/apks/WebLayerShell.apk')
......
......@@ -89,13 +89,10 @@ def _ValidateBrowserType(builder_name, test_config):
browser_options = _ParseBrowserFlags(test_config['args'])
if 'WebView' in builder_name or 'webview' in builder_name:
if browser_options.browser not in (
'android-webview', 'android-webview-google', 'exact'):
'android-webview', 'android-webview-google'):
raise ValueError(
"%s must use 'android-webview', 'android-webview-google' or 'exact' "
"%s must use 'android-webview' or 'android-webview-google' "
"browser" % builder_name)
if len(browser_options.webview_embedder_apk) != 1:
raise ValueError('%s must set --webview-embedder-apk flag exactly once' %
builder_name)
elif 'Android' in builder_name or 'android' in builder_name:
if browser_options.browser not in (
'android-chromium', 'android-chrome', 'exact'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment