Bug 1790463 - part1 : add the variant 'wmf-media-engine' and use it in mochitest-media. r=jmaher

Differential Revision: https://phabricator.services.mozilla.com/D157145
This commit is contained in:
alwu 2022-10-11 18:22:20 +00:00
parent 4c4f2f6984
commit 0072ee0507
4 changed files with 37 additions and 10 deletions

View File

@ -77,6 +77,7 @@ treeherder:
'M-swr-wayland': 'Mochitests with software webrender and Wayland backend enabled'
'M-wayland': 'Mochitests with Wayland backend enabled'
'M-wayland-1proc': 'Mochitests with Wayland backend enabled without e10s'
'M-wmfme': 'Mochitests with Windows Media Foundation media engine enabled'
'M-f': 'Mochitest failures'
'M-dt-no-eft-nofis': 'DevTools Mochitests with EFT without fission enabled'
'MSI': 'Repack installers into MSIs'

View File

@ -523,6 +523,7 @@ mochitest-media:
- webgl-ipc
- webrender-sw+no-fission
- webrender-sw
- wmf-media-engine
run-on-projects:
by-variant:
webgl-ipc:
@ -573,6 +574,10 @@ mochitest-media:
linux1804-64-qr/debug: ['trunk']
linux1804-64(-shippable|-asan)?-qr/opt: ['trunk']
default: []
wmf-media-engine:
by-test-platform:
(windows10-64-2004)(?!.*-qr).*: ['autoland', 'mozilla-central']
default: []
default:
by-test-platform:
android.*: []
@ -584,15 +589,18 @@ mochitest-media:
default: built-projects
loopback-video: true
chunks:
by-test-platform:
android-em-7.*: 1
windows10-64-2004.*: 1
macosx.*64.*/.*: 2
windows10-aarch64-qr/.*: 1
windows.*32-shippable/.*: 2
linux1804-64(-shippable|-devedition|-.*qr)/opt: 2
linux.*64-tsan-qr/opt: 4
default: 3
by-variant:
wmf-media-engine: 1
default:
by-test-platform:
android-em-7.*: 1
windows10-64-2004.*: 1
macosx.*64.*/.*: 2
windows10-aarch64-qr/.*: 1
windows.*32-shippable/.*: 2
linux1804-64(-shippable|-devedition|-.*qr)/opt: 2
linux.*64-tsan-qr/opt: 4
default: 3
mozharness:
mochitest-flavor: plain
chunked:

View File

@ -277,3 +277,19 @@ devtools-no-eft:
mozharness:
extra-options:
- "--setpref=devtools.every-frame-target.enabled=false"
wmf-media-engine:
description: "{description} with Windows Media Foundation media engine enabled"
component: "Core::Audio/Video:Playback"
expiration: "2023-04-10"
when:
$eval: '"windows10" in task["test-platform"]'
suffix: "wmfme"
replace:
tier: 2
merge:
mozharness:
extra-options:
- "--tag=media-engine-compatible"
- "--setpref=media.wmf.media-engine.enabled=true"
- "--setpref=media.wmf.media-engine.channel-decoder.enabled=true"

View File

@ -104,7 +104,9 @@ test_description_schema = Schema(
# number of chunks to create for this task. This can be keyed by test
# platform by passing a dictionary in the `by-test-platform` key. If the
# test platform is not found, the key 'default' will be tried.
Required("chunks"): optionally_keyed_by("test-platform", Any(int, "dynamic")),
Required("chunks"): optionally_keyed_by(
"test-platform", "variant", Any(int, "dynamic")
),
# Custom 'test_manifest_loader' to use, overriding the one configured in the
# parameters. When 'null', no test chunking will be performed. Can also
# be used to disable "manifest scheduling".