mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1859548 - filter wpt tests on tag to support webgpu and canvas tests. r=ahal,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D191706
This commit is contained in:
parent
611f5a1996
commit
160f383369
@ -158,6 +158,8 @@ def mock_mozinfo():
|
||||
"tsan": tsan,
|
||||
"appname": "firefox",
|
||||
"condprof": False,
|
||||
"canvas": False,
|
||||
"webgpu": False,
|
||||
}
|
||||
|
||||
return inner
|
||||
|
@ -122,6 +122,13 @@ def guess_mozinfo_from_task(task, repo=""):
|
||||
value = any("xorigin" in key for key in runtime_keys)
|
||||
|
||||
info[tag] = value
|
||||
|
||||
# wpt has canvas and webgpu as tags, lets find those
|
||||
for tag in ["canvas", "webgpu"]:
|
||||
if tag in task["test-name"]:
|
||||
info[tag] = True
|
||||
else:
|
||||
info[tag] = False
|
||||
return info
|
||||
|
||||
|
||||
@ -237,7 +244,14 @@ class DefaultLoader(BaseManifestLoader):
|
||||
if "web-platform-tests" in suite:
|
||||
manifests = set()
|
||||
for t in tests:
|
||||
manifests.add(t["manifest"])
|
||||
if mozinfo["canvas"]:
|
||||
if "html/canvas" in t["manifest"]:
|
||||
manifests.add(t["manifest"])
|
||||
elif mozinfo["webgpu"]:
|
||||
if "_mozilla/webgpu" in t["manifest"]:
|
||||
manifests.add(t["manifest"])
|
||||
else:
|
||||
manifests.add(t["manifest"])
|
||||
return {
|
||||
"active": list(manifests),
|
||||
"skipped": [],
|
||||
|
Loading…
Reference in New Issue
Block a user