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


Commits:
52363905 by Beatriz Rizental at 2025-02-12T10:55:59+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/tor-browser/-/commit/52363905b8483d96a6a95f9e2ccb0463cfb69037

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/52363905b8483d96a6a95f9e2ccb0463cfb69037
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