Skip to content

Commit 9704a63

Browse files
Update variants.yml path to mozilla-firefox/firefox repository (#2748)
* Initial plan * Update variants.yml path to mozilla-firefox/firefox repository Co-authored-by: suhaibmujahid <[email protected]> * Address PR feedback: keep searchfox URL and rename VARIANTS_HG_URL to VARIANTS_URL Co-authored-by: suhaibmujahid <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: suhaibmujahid <[email protected]>
1 parent 8619fbb commit 9704a63

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bugbot/rules/variant_expiration.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
r"^The variant `(.*)` expiration is on (\d{4}-\d{2}-\d{2})$"
2525
)
2626

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

3134
BUG_DESCRIPTION = f"""
3235
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.
@@ -133,7 +136,7 @@ def escalate(self, person, priority, **kwargs):
133136
def get_variants(self) -> dict:
134137
"""Get the variants from the variants.yml file"""
135138

136-
resp = requests.get(VARIANTS_HG_URL, timeout=20)
139+
resp = requests.get(VARIANTS_URL, timeout=20)
137140
resp.raise_for_status()
138141

139142
variants = yaml.safe_load(resp.text)

0 commit comments

Comments
 (0)