Bug 1804475 - Remove certain extra options for Safari. r=perftest-reviewers,sparky

This patch ensures that webrender, fission, and bytecode-cached options  are not in Safari tests.

Differential Revision: https://phabricator.services.mozilla.com/D164108
This commit is contained in:
Kash Shampur 2022-12-09 20:11:16 +00:00
Родитель 12fb695a30
Коммит f6eb1cb800
1 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -27,6 +27,9 @@ KNOWN_TEST_MODIFIERS = [
"webrender",
"bytecode-cached",
]
NON_FIREFOX_OPTS = ("webrender", "bytecode-cached", "fission")
NON_FIREFOX_BROWSERS = ("chrome", "chromium", "safari")
NON_FIREFOX_BROWSERS_MOBILE = ("chrome-m",)
@six.add_metaclass(ABCMeta)
@ -115,21 +118,18 @@ class PerftestResultsHandler(object):
% name
)
if self.app.lower() in (
"chrome",
"chrome-m",
"chromium",
):
# Bug 1770225: Make this more dynamic, this will fail us again in the future
if "webrender" in extra_options:
extra_options.remove("webrender")
if "fission" in extra_options:
extra_options.remove("fission")
if "bytecode-cached" in extra_options:
extra_options.remove("bytecode-cached")
# Bug 1770225: Make this more dynamic, this will fail us again in the future
self._clean_up_browser_options(extra_options=extra_options)
return extra_options
def _clean_up_browser_options(self, extra_options):
"""Remove certain firefox specific options from different browsers"""
if self.app.lower() in NON_FIREFOX_BROWSERS + NON_FIREFOX_BROWSERS_MOBILE:
for opts in NON_FIREFOX_OPTS:
if opts in extra_options:
extra_options.remove(opts)
def add_browser_meta(self, browser_name, browser_version):
# sets the browser metadata for the perfherder data
self.browser_name = browser_name
@ -631,7 +631,7 @@ class BrowsertimeResultsHandler(PerftestResultsHandler):
# chrome and safari we just measure fcp and loadtime; skip fnbpaint and dcf
if (
self.app
and self.app.lower() in ["chrome", "chromium", "safari"]
and self.app.lower() in NON_FIREFOX_BROWSERS
and bt
in (
"fnbpaint",