summaryrefslogtreecommitdiffstats
path: root/taskcluster/gecko_taskgraph/transforms/build_attrs.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /taskcluster/gecko_taskgraph/transforms/build_attrs.py
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/gecko_taskgraph/transforms/build_attrs.py')
-rw-r--r--taskcluster/gecko_taskgraph/transforms/build_attrs.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/taskcluster/gecko_taskgraph/transforms/build_attrs.py b/taskcluster/gecko_taskgraph/transforms/build_attrs.py
index 9cda71718a..fda9888fe1 100644
--- a/taskcluster/gecko_taskgraph/transforms/build_attrs.py
+++ b/taskcluster/gecko_taskgraph/transforms/build_attrs.py
@@ -4,8 +4,6 @@
from taskgraph.transforms.base import TransformSequence
-from gecko_taskgraph.util.platforms import platform_family
-
transforms = TransformSequence()
@@ -34,17 +32,3 @@ def set_build_attributes(config, jobs):
)
yield job
-
-
-@transforms.add
-def set_schedules_optimization(config, jobs):
- """Set the `skip-unless-affected` optimization based on the build platform."""
- for job in jobs:
- # don't add skip-unless-schedules if there's already a when defined
- if "when" in job:
- yield job
- continue
-
- build_platform = job["attributes"]["build_platform"]
- job.setdefault("optimization", {"build": [platform_family(build_platform)]})
- yield job