Pier Angelo Vendrame pushed to branch mullvad-browser-128.7.0esr-14.5-1 at The 
Tor Project / Applications / Mullvad Browser


Commits:
5ba50ab2 by Beatriz Rizental at 2025-02-12T10:57:08+01:00
fixup! Add CI for Base Browser

Extend CI to support listing changes from rapid-release branches

- - - - -


1 changed file:

- .gitlab/ci/jobs/lint/helpers.py


Changes:

=====================================
.gitlab/ci/jobs/lint/helpers.py
=====================================
@@ -42,18 +42,27 @@ def get_firefox_tag(reference):
     else:
         raise ValueError(f"Failed to extract version from reference 
'{reference}'.")
 
-    tag = f"FIREFOX_{firefox_version.replace('.', '_')}_"
+    major_version = firefox_version.split(".")[0]
+    minor_patch_version = "_".join(firefox_version.split(".")[1:])
+
     remote_tags = git("ls-remote --tags origin")
 
     # Each line looks like:
     # 9edd658bfd03a6b4743ecb75fd4a9ad968603715  
refs/tags/FIREFOX_91_9_0esr_BUILD1
-    pattern = rf"(.*){re.escape(tag)}(.*)$"
+    pattern = (
+        
rf"(.*)FIREFOX_{re.escape(major_version)}_{re.escape(minor_patch_version)}(.*)$"
+    )
     match = re.search(pattern, remote_tags, flags=re.MULTILINE)
+    if not match:
+        # Attempt to match with a nightly tag, in case the ESR tag is not found
+        pattern = rf"(.*)FIREFOX_NIGHTLY_{re.escape(major_version)}(.*)$"
+        match = re.search(pattern, remote_tags, flags=re.MULTILINE)
+
     if match:
         return match.group(0).split()[0]
     else:
         raise ValueError(
-            f"Failed to find reference specifier for Firefox tag '{tag}' from 
'{reference}'."
+            f"Failed to find reference specifier for Firefox tag of version 
'{firefox_version}' from '{reference}'."
         )
 
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/5ba50ab21117dcce1ac6a73d43afa5be9b466d42

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/5ba50ab21117dcce1ac6a73d43afa5be9b466d42
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]
  • [tbb-commits] [Git][tpo/app... Pier Angelo Vendrame (@pierov) via tbb-commits
    • [tbb-commits] [Git][tp... Pier Angelo Vendrame (@pierov) via tbb-commits

Reply via email to