Skip to content

Commit 3f02cb1

Browse files
authored
Merge pull request #626 from mozilla/pat/beta_fix_l10n
Pat/temporary fix for beta
2 parents 3aaf68e + 3fe7b12 commit 3f02cb1

File tree

2 files changed

+36
-35
lines changed

2 files changed

+36
-35
lines changed

.github/workflows/check-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check new beta version
22

33
on:
44
schedule:
5-
- cron: "24 */1 * * *"
5+
- cron: "40 */1 * * *"
66
env:
77
LATEST: ""
88
permissions:

collect_executables.py

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from bs4 import BeautifulSoup
1515

1616
GECKO_API_URL = "https://api.github.com/repos/mozilla/geckodriver/releases/latest"
17-
BACKSTOP = "135.0b9"
17+
BACKSTOP = "141.0b1"
1818
NUMBER_ONLY = False
1919

2020

@@ -138,41 +138,42 @@ def get_gd_platform():
138138

139139
candidate_exists = True
140140
this_beta = BACKSTOP
141-
while candidate_exists:
142-
(major, minor_beta) = this_beta.split(".")
143-
(minor, beta) = minor_beta.split("b")
144-
major = int(major)
145-
minor = int(minor)
146-
beta = int(beta)
147-
148-
next_major = f"{major + 1}.0b1"
149-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/build1/"
150-
rs = requests.get(fx_download_dir_url)
151-
if rs.status_code < 300:
152-
latest_beta_ver = next_major
153-
this_beta = next_major
154-
continue
155-
156-
next_minor = f"{major}.{minor + 1}b1"
157-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/build1/"
158-
rs = requests.get(fx_download_dir_url)
159-
if rs.status_code < 300:
160-
latest_beta_ver = next_minor
161-
this_beta = next_minor
162-
continue
163-
164-
next_beta = f"{major}.{minor}b{beta + 1}"
165-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_beta}-candidates/build1/"
166-
rs = requests.get(fx_download_dir_url)
167-
if rs.status_code < 300:
168-
latest_beta_ver = next_beta
169-
this_beta = next_beta
170-
continue
171-
172-
candidate_exists = False
141+
# while candidate_exists:
142+
# (major, minor_beta) = this_beta.split(".")
143+
# (minor, beta) = minor_beta.split("b")
144+
# major = int(major)
145+
# minor = int(minor)
146+
# beta = int(beta)
147+
148+
# next_major = f"{major + 1}.0b1"
149+
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/build1/"
150+
# rs = requests.get(fx_download_dir_url)
151+
# if rs.status_code < 300:
152+
# latest_beta_ver = next_major
153+
# this_beta = next_major
154+
# continue
155+
156+
# next_minor = f"{major}.{minor + 1}b1"
157+
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/build1/"
158+
# rs = requests.get(fx_download_dir_url)
159+
# if rs.status_code < 300:
160+
# latest_beta_ver = next_minor
161+
# this_beta = next_minor
162+
# continue
163+
164+
# next_beta = f"{major}.{minor}b{beta + 1}"
165+
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_beta}-candidates/build1/"
166+
# rs = requests.get(fx_download_dir_url)
167+
# if rs.status_code < 300:
168+
# latest_beta_ver = next_beta
169+
# this_beta = next_beta
170+
# continue
171+
172+
# candidate_exists = False
173173

174174
status = 200
175-
build = 0
175+
build = 2
176+
latest_beta_ver = BACKSTOP
176177
while status < 400 and build < 20:
177178
build += 1
178179
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{latest_beta_ver}-candidates/build{build}/"

0 commit comments

Comments
 (0)