summaryrefslogtreecommitdiffstats
path: root/tools/tryselect/task_config.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /tools/tryselect/task_config.py
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/tryselect/task_config.py')
-rw-r--r--tools/tryselect/task_config.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/tools/tryselect/task_config.py b/tools/tryselect/task_config.py
index f7a78cbfbf..58e8beeda4 100644
--- a/tools/tryselect/task_config.py
+++ b/tools/tryselect/task_config.py
@@ -80,7 +80,7 @@ class TryConfig(ParameterConfig):
def get_parameters(self, **kwargs):
result = self.try_config(**kwargs)
- if result is None:
+ if not result:
return None
return {"try_task_config": result}
@@ -579,9 +579,18 @@ class WorkerOverrides(TryConfig):
),
},
],
+ [
+ ["--worker-type"],
+ {
+ "action": "append",
+ "dest": "worker_types",
+ "default": [],
+ "help": "Select tasks that only run on the specified worker.",
+ },
+ ],
]
- def try_config(self, worker_overrides, worker_suffixes, **kwargs):
+ def try_config(self, worker_overrides, worker_suffixes, worker_types, **kwargs):
from gecko_taskgraph.util.workertypes import get_worker_type
from taskgraph.config import load_graph_config
@@ -621,8 +630,13 @@ class WorkerOverrides(TryConfig):
provisioner=provisioner, worker_type=worker_type, suffix=suffix
)
+ retVal = {}
+ if worker_types:
+ retVal["worker-types"] = list(overrides.keys()) + worker_types
+
if overrides:
- return {"worker-overrides": overrides}
+ retVal["worker-overrides"] = overrides
+ return retVal
all_task_configs = {