From 0904f828279bb7d27e26ed3ac09accfcfd4ee285 Mon Sep 17 00:00:00 2001 From: Ben Hearsum Date: Fri, 13 Jun 2025 10:55:45 -0400 Subject: [PATCH] fix: require `fetch-version-from` for `early-to-late-beta` Technically not needed, but landoscript requires it, and removing this requirement without introducing major hacks is more work than I'm willing to put in at the moment. --- src/mozilla_taskgraph/worker_types.py | 4 ++++ test/test_worker_types.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/mozilla_taskgraph/worker_types.py b/src/mozilla_taskgraph/worker_types.py index 3bac674..93e9a10 100644 --- a/src/mozilla_taskgraph/worker_types.py +++ b/src/mozilla_taskgraph/worker_types.py @@ -297,6 +297,10 @@ def process_l10n_bump_info(info): { Required("early-to-late-beta"): { Required("to-branch"): str, + # technically not used, but passing it keeps landoscript + # code cleaner, so we may as well require a real value + # for it. + Required("fetch-version-from"): str, Optional("replacements"): [[str]], }, }, diff --git a/test/test_worker_types.py b/test/test_worker_types.py index f375dd9..c8a381b 100644 --- a/test/test_worker_types.py +++ b/test/test_worker_types.py @@ -907,6 +907,7 @@ def test_lando_merge_early_to_late_beta(build_payload): ] ], "to-branch": "to-b", + "fetch-version-from": "foo/bar.txt", } } ], @@ -925,6 +926,7 @@ def test_lando_merge_early_to_late_beta(build_payload): ] ], "to_branch": "to-b", + "fetch_version_from": "foo/bar.txt", }, }, "scopes": [