summaryrefslogtreecommitdiffstats
path: root/taskcluster/gecko_taskgraph/transforms/task.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /taskcluster/gecko_taskgraph/transforms/task.py
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/gecko_taskgraph/transforms/task.py')
-rw-r--r--taskcluster/gecko_taskgraph/transforms/task.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/taskcluster/gecko_taskgraph/transforms/task.py b/taskcluster/gecko_taskgraph/transforms/task.py
index 3129742ea9..4bfe0e9f6d 100644
--- a/taskcluster/gecko_taskgraph/transforms/task.py
+++ b/taskcluster/gecko_taskgraph/transforms/task.py
@@ -1349,6 +1349,23 @@ def build_push_addons_payload(config, task, task_def):
],
},
Optional("merge-info"): object,
+ Optional("android-l10n-import-info"): {
+ Required("from-repo-url"): str,
+ Required("toml-info"): [
+ {
+ Required("toml-path"): str,
+ Required("dest-path"): str,
+ }
+ ],
+ },
+ Optional("android-l10n-sync-info"): {
+ Required("from-repo-url"): str,
+ Required("toml-info"): [
+ {
+ Required("toml-path"): str,
+ }
+ ],
+ },
},
)
def build_treescript_payload(config, task, task_def):
@@ -1412,6 +1429,38 @@ def build_treescript_payload(config, task, task_def):
task_def["payload"]["merge_info"] = merge_info
actions.append("merge_day")
+ if worker.get("android-l10n-import-info"):
+ android_l10n_import_info = {}
+ for k, v in worker["android-l10n-import-info"].items():
+ android_l10n_import_info[k.replace("-", "_")] = worker[
+ "android-l10n-import-info"
+ ][k]
+ android_l10n_import_info["toml_info"] = [
+ {
+ param_name.replace("-", "_"): param_value
+ for param_name, param_value in entry.items()
+ }
+ for entry in worker["android-l10n-import-info"]["toml-info"]
+ ]
+ task_def["payload"]["android_l10n_import_info"] = android_l10n_import_info
+ actions.append("android_l10n_import")
+
+ if worker.get("android-l10n-sync-info"):
+ android_l10n_sync_info = {}
+ for k, v in worker["android-l10n-sync-info"].items():
+ android_l10n_sync_info[k.replace("-", "_")] = worker[
+ "android-l10n-sync-info"
+ ][k]
+ android_l10n_sync_info["toml_info"] = [
+ {
+ param_name.replace("-", "_"): param_value
+ for param_name, param_value in entry.items()
+ }
+ for entry in worker["android-l10n-sync-info"]["toml-info"]
+ ]
+ task_def["payload"]["android_l10n_sync_info"] = android_l10n_sync_info
+ actions.append("android_l10n_sync")
+
if worker["push"]:
actions.append("push")