Bug 1874898 - Skip push-langpack for staged releases. r=dandarnell

Until there's a proper staging environment for ATN, do not run these for staged
releases.

Differential Revision: https://phabricator.services.mozilla.com/D198708

--HG--
extra : amend_source : ca37f9ae910b9181b44a4c04a965353cc2fff68a
This commit is contained in:
Rob Lemley 2024-01-16 16:36:18 +00:00
Родитель 7b850f5cde
Коммит 813bb402e5
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -16,9 +16,7 @@ from taskgraph.util.treeherder import inherit_treeherder_from_dep
from voluptuous import Any, Optional, Required
from gecko_taskgraph.transforms.task import task_description_schema
from gecko_taskgraph.util.attributes import (
copy_attributes_from_dependent_job,
)
from gecko_taskgraph.util.attributes import copy_attributes_from_dependent_job, release_level
from mozbuild.action.langpack_manifest import get_version_maybe_buildid
transforms = TransformSequence()
@ -57,6 +55,10 @@ def remove_name(config, jobs):
@transforms.add
def make_task_description(config, jobs):
for job in jobs:
# Do not attempt to run when staging releases on try-comm-central
if release_level(config.params["project"]) != "production":
continue
dep_job = get_primary_dependency(config, job)
assert dep_job