Skip to content

Commit ebe86ba

Browse files
committed
Skip if a category does not exist
1 parent 3fe7b12 commit ebe86ba

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

collect_executables.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def get_gd_platform():
136136
else:
137137
# Anything but devedition
138138

139-
candidate_exists = True
140-
this_beta = BACKSTOP
139+
# candidate_exists = True
140+
# this_beta = BACKSTOP
141141
# while candidate_exists:
142142
# (major, minor_beta) = this_beta.split(".")
143143
# (minor, beta) = minor_beta.split("b")
@@ -146,23 +146,23 @@ def get_gd_platform():
146146
# beta = int(beta)
147147

148148
# next_major = f"{major + 1}.0b1"
149-
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/build1/"
149+
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/"
150150
# rs = requests.get(fx_download_dir_url)
151151
# if rs.status_code < 300:
152152
# latest_beta_ver = next_major
153153
# this_beta = next_major
154154
# continue
155155

156156
# next_minor = f"{major}.{minor + 1}b1"
157-
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/build1/"
157+
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/"
158158
# rs = requests.get(fx_download_dir_url)
159159
# if rs.status_code < 300:
160160
# latest_beta_ver = next_minor
161161
# this_beta = next_minor
162162
# continue
163163

164164
# 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/"
165+
# fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_beta}-candidates/"
166166
# rs = requests.get(fx_download_dir_url)
167167
# if rs.status_code < 300:
168168
# latest_beta_ver = next_beta
@@ -171,6 +171,7 @@ def get_gd_platform():
171171

172172
# candidate_exists = False
173173

174+
# Look for the latest build
174175
status = 200
175176
build = 2
176177
latest_beta_ver = BACKSTOP

modules/testrail_integration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,14 @@ def merge_results(*result_sets) -> dict:
229229

230230
def mark_results(testrail_session: TestRail, test_results):
231231
"""For each type of result, and per run, mark tests to status in batches"""
232-
logging.info(f"mark results: object\n{test_results}")
232+
logging.warning(f"mark results: object\n{test_results}")
233233
existing_results = {}
234234
# don't send update requests for skipped test cases
235235
for category in ["passed", "blocked", "xfailed", "failed"]:
236+
# Skip the category if it doesn't exist
237+
if test_results.get(category) is None:
238+
logging.warning(category, "does not exist for this test run")
239+
continue
236240
for run_id in test_results[category]:
237241
if not existing_results.get(run_id):
238242
existing_results[run_id] = testrail_session.get_test_results(run_id)

0 commit comments

Comments
 (0)