Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions bugbot/rules/variant_expiration.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
r"^The variant `(.*)` expiration is on (\d{4}-\d{2}-\d{2})$"
)

VARIANTS_PATH = "taskcluster/kinds/test/variants.yml"
VARIANTS_PATH = "taskcluster/test_configs/variants.yml"
VARIANTS_SEARCHFOX_URL = "https://searchfox.org/mozilla-central/source/" + VARIANTS_PATH
VARIANTS_HG_URL = "https://hg.mozilla.org/mozilla-central/raw-file/tip/" + VARIANTS_PATH
VARIANTS_URL = (
"https://raw.githubusercontent.com/mozilla-firefox/firefox/refs/heads/main/"
+ VARIANTS_PATH
)

BUG_DESCRIPTION = f"""
If the variant is not used anymore, please drop it from the [variants.yml]({VARIANTS_SEARCHFOX_URL}) file. If there is a need to keep the variant, please submit a patch to modify the expiration date. Variants will not be scheduled to run after the expiration date.
Expand Down Expand Up @@ -133,7 +136,7 @@ def escalate(self, person, priority, **kwargs):
def get_variants(self) -> dict:
"""Get the variants from the variants.yml file"""

resp = requests.get(VARIANTS_HG_URL, timeout=20)
resp = requests.get(VARIANTS_URL, timeout=20)
resp.raise_for_status()

variants = yaml.safe_load(resp.text)
Expand Down