From c7ec80d82751f4e672564075e668659e89f6154c Mon Sep 17 00:00:00 2001 From: Connor Sheehan Date: Thu, 15 May 2025 14:20:11 -0400 Subject: [PATCH] create_environment_repos: add more `infra-testing` Repos for uplift branches (Bug 1966728) Add `infra-testing-` repos for other branches to more closely match the setup of `firefox-*` repos in Lando. --- .../commands/create_environment_repos.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lando/utils/management/commands/create_environment_repos.py b/src/lando/utils/management/commands/create_environment_repos.py index cc5ccc70d..59ea2dce7 100644 --- a/src/lando/utils/management/commands/create_environment_repos.py +++ b/src/lando/utils/management/commands/create_environment_repos.py @@ -168,6 +168,22 @@ } ) +# Set up `infra-testing-*` repos in prod. +# See bug 1966728. +for branch in ["release", "beta", "esr128", "esr115"]: + REPOS[Environment.production].append( + { + "name": f"infra-testing-{branch}", + "default_branch": branch, + "url": "https://github.com/mozilla-firefox/infra-testing.git", + "push_path": "https://github.com/mozilla-firefox/infra-testing.git", + "short_name": f"infra-testing-{branch}", + "required_permission": SCM_LEVEL_1, + "automation_enabled": True, + "approval_required": True, + } + ) + class Command(BaseCommand): help = "Create repos based on specified environment."