Skip to content

Commit

Permalink
Bug 1621095 - add reftest-qr to run focused webrender reftests on and…
Browse files Browse the repository at this point in the history
…roid phones. r=bc

add reftest-qr to run focused webrender reftests on android phones.

Differential Revision: https://phabricator.services.mozilla.com/D72312
  • Loading branch information
jmaher committed Apr 24, 2020
1 parent 995835e commit 66e521f
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 20 deletions.
26 changes: 26 additions & 0 deletions layout/reftests/reftest-qr.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# tests that are more likely to be affected by WebRender changes
# as per bug 1621095 this is created to reduce load on android phones

# gfx
include ../../gfx/tests/reftest/reftest.list

include async-scrolling/reftest.list

# bugs/
include bugs/reftest.list

# css animations
include css-animations/reftest.list

# invalidation
include invalidation/reftest.list

# sticky positioning
include position-sticky/reftest.list

# svg/
include svg/reftest.list

# 3d transforms
include transform-3d/reftest.list

4 changes: 4 additions & 0 deletions moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ with Files("**/reftest.list"):
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
SCHEDULES.exclusive = ['reftest']

with Files("**/reftest-qr.list"):
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
SCHEDULES.exclusive = ['reftest']

with Files("**/crashtest*.list"):
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
SCHEDULES.exclusive = ['crashtest']
Expand Down
1 change: 1 addition & 0 deletions python/mozbuild/mozbuild/action/test_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@
'base': '',
'manifests': [
'layout/reftests/reftest.list',
'layout/reftests/reftest-qr.list',
'testing/crashtest/crashtests.list',
],
'dest': 'reftest/tests',
Expand Down
12 changes: 12 additions & 0 deletions taskcluster/ci/test/reftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ reftest:
linux1804-64-qr/debug: ['trunk']
default: []

reftest-qr:
description: "Reftest webrender run"
treeherder-symbol: R(R)
chunks: 2
e10s: true
run-on-projects: built-projects
max-run-time: 2400
mozharness:
chunked: true
tier: 2


reftest-gpu:
description: "Reftest GPU run"
treeherder-symbol: R(Rg)
Expand Down
2 changes: 1 addition & 1 deletion taskcluster/ci/test/test-sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ android-hw-aarch64-debug-unittests:

android-hw-aarch64-qr:
- crashtest
- reftest
- reftest-qr

android-hw-arm7-raptor:
- raptor-speedometer-geckoview
Expand Down
1 change: 1 addition & 0 deletions taskcluster/taskgraph/transforms/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ def split_e10s(config, tests):
'mochitest-webgl2-ext',
'raptor',
'reftest',
'reftest-qr',
'reftest-gpu',
'reftest-no-accel',
'talos',
Expand Down
8 changes: 8 additions & 0 deletions testing/mozbase/moztest/moztest/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ def WebglSuite(name):
'task_regex': ['(opt|debug)-reftest($|.*(-1|[^0-9])$)',
'test-verify-gpu($|.*(-1|[^0-9])$)'],
},
'reftest-qr': {
'aliases': ('rr',),
'build_flavor': 'reftest',
'mach_command': 'reftest',
'kwargs': {'tests': None},
'task_regex': ['(opt|debug)-reftest-qr($|.*(-1|[^0-9])$)',
'test-verify-gpu($|.*(-1|[^0-9])$)'],
},
'robocop': {
'mach_command': 'robocop',
'kwargs': {'test_paths': None},
Expand Down
25 changes: 25 additions & 0 deletions testing/mozharness/configs/android/android_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,31 @@ def WebglSuite(name):
],
"tests": ["tests/layout/reftests/reftest.list",],
},
"reftest-qr": {
"run_filename": "remotereftest.py",
"testsdir": "reftest",
"options": [
"--app=%(app)s",
"--ignore-window-size",
"--remote-webserver=%(remote_webserver)s",
"--xre-path=%(xre_path)s",
"--utility-path=%(utility_path)s",
"--http-port=%(http_port)s",
"--ssl-port=%(ssl_port)s",
"--httpd-path", "%(modules_dir)s",
"--symbols-path=%(symbols_path)s",
"--extra-profile-file=fonts",
"--extra-profile-file=hyphenation",
"--suite=reftest",
"--log-raw=%(raw_log_file)s",
"--log-raw-level=%(log_raw_level)s",
"--log-errorsummary=%(error_summary_file)s",
"--log-tbpl-level=%(log_tbpl_level)s",
"--deviceSerial=%(device_serial)s",
"--topsrcdir=tests",
],
"tests": ["tests/layout/reftests/reftest-qr.list",],
},
"crashtest": {
"run_filename": "remotereftest.py",
"testsdir": "reftest",
Expand Down
29 changes: 11 additions & 18 deletions testing/mozharness/mozharness/mozilla/testing/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
'known_fail_group': "Todo",
}

_reftest_summary = {
'regex': re.compile(r'''REFTEST INFO \| (Successful|Unexpected|Known problems): (\d+) \('''), # NOQA: E501
'pass_group': "Successful",
'fail_group': "Unexpected",
'known_fail_group': "Known problems",
}

TinderBoxPrintRe = {
"mochitest-chrome_summary": _mochitest_summary,
"mochitest-webgl1-core_summary": _mochitest_summary,
Expand All @@ -42,30 +49,16 @@
'fail_group': "failed",
'known_fail_group': "todo",
},
"reftest_summary": {
'regex': re.compile(r'''REFTEST INFO \| (Successful|Unexpected|Known problems): (\d+) \('''), # NOQA: E501
'pass_group': "Successful",
'fail_group': "Unexpected",
'known_fail_group': "Known problems",
},
"crashtest_summary": {
'regex': re.compile(r'''REFTEST INFO \| (Successful|Unexpected|Known problems): (\d+) \('''), # NOQA: E501
'pass_group': "Successful",
'fail_group': "Unexpected",
'known_fail_group': "Known problems",
},
"reftest_summary": _reftest_summary,
"reftest-qr_summary": _reftest_summary,
"crashtest_summary": _reftest_summary,
"xpcshell_summary": {
'regex': re.compile(r'''INFO \| (Passed|Failed|Todo): (\d+)'''),
'pass_group': "Passed",
'fail_group': "Failed",
'known_fail_group': "Todo",
},
"jsreftest_summary": {
'regex': re.compile(r'''REFTEST INFO \| (Successful|Unexpected|Known problems): (\d+) \('''), # NOQA: E501
'pass_group': "Successful",
'fail_group': "Unexpected",
'known_fail_group': "Known problems",
},
"jsreftest_summary": _reftest_summary,
"instrumentation_summary": _mochitest_summary,
"cppunittest_summary": {
'regex': re.compile(r'''cppunittests INFO \| (Passed|Failed): (\d+)'''),
Expand Down
1 change: 1 addition & 0 deletions testing/mozharness/mozharness/mozilla/testing/testbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def _download_test_packages(self, suite_categories, extract_dirs):
'mochitest-webgpu': 'mochitest',
'geckoview': 'mochitest',
'geckoview-junit': 'mochitest',
'reftest-qr': 'reftest',
'jsreftest': 'reftest',
'crashtest': 'reftest',
'reftest-debug': 'reftest',
Expand Down
2 changes: 1 addition & 1 deletion tools/tryselect/test/test_mozharness_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'geckoview-junit',
'jittest',
'jsreftest',
'reftest-qr',
],
},
'desktop_unittest': {
Expand All @@ -45,7 +46,6 @@
'mochitest-valgrind-plain',
'reftest-gpu',
'reftest-no-accel',
'reftest-qr',
],
},
}
Expand Down

0 comments on commit 66e521f

Please sign in to comment.