Skip to content

Commit 607cc34

Browse files
committed
Hotfix upstream bug that causes incorrect build report links
1 parent 7061294 commit 607cc34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/praktika/info.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,19 @@ def get_specific_report_url(self, pr_number, branch, sha, job_name=""):
157157

158158
if pr_number:
159159
ref_param = f"PR={pr_number}"
160+
# Hotfix for bug that is fixed properly in latest upstream
161+
workflow_name = "PR"
160162
else:
161163
assert branch
162164
ref_param = f"REF={branch}"
165+
# Hotfix for bug that is fixed properly in latest upstream
166+
workflow_name = "MasterCI"
163167
path = Settings.HTML_S3_PATH
164168
for bucket, endpoint in Settings.S3_BUCKET_TO_HTTP_ENDPOINT.items():
165169
if bucket in path:
166170
path = path.replace(bucket, endpoint)
167171
break
168-
res = f"https://{path}/{Path(Settings.HTML_PAGE_FILE).name}?{ref_param}&sha={sha}&name_0={urllib.parse.quote(self.env.WORKFLOW_NAME, safe='')}"
172+
res = f"https://{path}/{Path(Settings.HTML_PAGE_FILE).name}?{ref_param}&sha={sha}&name_0={urllib.parse.quote(workflow_name, safe='')}"
169173
if job_name:
170174
res += f"&name_1={urllib.parse.quote(job_name, safe='')}"
171175
return res

0 commit comments

Comments
 (0)