Bug 1900155 - do not add requires-gpu for hardware tasks. r=aryx,taskgraph-reviewers,ahal

Differential Revision: https://phabricator.services.mozilla.com/D212357
This commit is contained in:
Joel Maher 2024-06-03 20:09:46 +00:00
Родитель 8d803dbf44
Коммит 25fc59ce1a
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -142,8 +142,10 @@ def set_worker_type(config, tasks):
if task[
"virtualization"
] == "virtual-with-gpu" and test_platform.startswith("windows1"):
# add in `--requires-gpu` to the mozharness options
task["mozharness"]["extra-options"].append("--requires-gpu")
# some unittests can run on hardware, no need for --requires-gpu
if not test_platform.startswith("windows11-64-2009-hw-ref"):
# add in `--requires-gpu` to the mozharness options
task["mozharness"]["extra-options"].append("--requires-gpu")
# now we have the right platform set the worker type accordingly
task["worker-type"] = win_worker_type_platform[task["virtualization"]]