Bug 1457243 - Part 6: Hook in the about:blank awsy test to automation. r=bc

--HG--
extra : rebase_source : 9eb7f7bb6609c1aa20fdf1ef3395ce91e5b8afeb
This commit is contained in:
Eric Rahm 2018-05-08 16:05:33 -07:00
Родитель 72e5391ee5
Коммит 9b852df17e
4 изменённых файлов: 40 добавлений и 2 удалений

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

@ -22,6 +22,17 @@ awsy:
.*-devedition/.*: [] # don't run on devedition
default: built-projects
awsy-base:
description: "Are we slim yet - about:blank base case"
treeherder-symbol: SY(ab)
run-on-projects:
by-test-platform:
.*-devedition/.*: [] # don't run on devedition
default: built-projects
mozharness:
extra-options:
- --base
awsy-stylo-sequential:
description: "Are we slim yet for Stylo sequential"
treeherder-symbol: SYss(sy)

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

@ -82,6 +82,7 @@ talos:
awsy:
- awsy
- awsy-base
awsy-stylo-sequential:
- awsy-stylo-sequential

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

@ -0,0 +1,14 @@
{
"browser.urlbar.userMadeSearchSuggestionsChoice": true,
"javascript.options.asyncstack": false,
"image.mem.surfacecache.min_expiration_ms": 10000,
"network.proxy.socks": "localhost",
"network.proxy.socks_port": 90000,
"network.proxy.socks_remote_dns": true,
"network.proxy.type": 1,
"plugin.disable": true,
"startup.homepage_override_url": "",
"startup.homepage_welcome_url": "",
"browser.startup.homepage": "about:blank",
"browser.newtabpage.enabled": false
}

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

@ -49,6 +49,12 @@ class AWSY(TestingMixin, MercurialScript, BlobUploadMixin, TooltoolMixin, CodeCo
"dest": "enable_webrender",
"default": False,
"help": "Tries to enable the WebRender compositor.",
}],
[["--base"],
{"action": "store_true",
"dest": "test_about_blank",
"default": False,
"help": "Runs the about:blank base case memory test.",
}]
] + testing_config_options + copy.deepcopy(blobupload_config_options) \
+ copy.deepcopy(code_coverage_config_options)
@ -151,7 +157,6 @@ class AWSY(TestingMixin, MercurialScript, BlobUploadMixin, TooltoolMixin, CodeCo
runtime_testvars_file.close()
cmd = ['marionette']
cmd.append("--preferences=%s" % os.path.join(self.awsy_path, "conf", "prefs.json"))
cmd.append("--testvars=%s" % os.path.join(self.awsy_path, "conf", "testvars.json"))
cmd.append("--testvars=%s" % runtime_testvars_path)
cmd.append("--log-raw=-")
@ -166,7 +171,14 @@ class AWSY(TestingMixin, MercurialScript, BlobUploadMixin, TooltoolMixin, CodeCo
# self.symbols_path
cmd.append('--symbols-path=%s' % self.symbols_path)
test_file = os.path.join(self.awsy_libdir, 'test_memory_usage.py')
if self.config['test_about_blank']:
test_file = os.path.join(self.awsy_libdir, 'test_base_memory_usage.py')
prefs_file = "base-prefs.json"
else:
test_file = os.path.join(self.awsy_libdir, 'test_memory_usage.py')
prefs_file = "prefs.json"
cmd.append("--preferences=%s" % os.path.join(self.awsy_path, "conf", prefs_file))
cmd.append(test_file)
if self.config['single_stylo_traversal']: