[CI] /rerun-stage: fix workflow-run URL lookup for sgl-kernel PRs (#23510)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
0bee211335
commit
c689f774a4
@@ -406,9 +406,13 @@ def handle_rerun_stage(
|
|||||||
if kernel_changes and not is_amd_stage:
|
if kernel_changes and not is_amd_stage:
|
||||||
inputs["include_wheel_build"] = "true"
|
inputs["include_wheel_build"] = "true"
|
||||||
# include_wheel_build relies on filter-api detecting kernel changes, which
|
# include_wheel_build relies on filter-api detecting kernel changes, which
|
||||||
# requires pr_head_sha. Ensure it's set even for non-fork PRs.
|
# requires pr_head_sha. Ensure it's set even for non-fork PRs, and keep
|
||||||
|
# the local pr_head_sha in sync so find_workflow_run_url builds the
|
||||||
|
# expected display_title with the SHA suffix (the workflow's run-name
|
||||||
|
# includes the SHA whenever inputs.pr_head_sha is set).
|
||||||
if not is_fork:
|
if not is_fork:
|
||||||
inputs["pr_head_sha"] = pr.head.sha
|
inputs["pr_head_sha"] = pr.head.sha
|
||||||
|
pr_head_sha = pr.head.sha
|
||||||
|
|
||||||
# Record dispatch time before triggering
|
# Record dispatch time before triggering
|
||||||
dispatch_time = time.time()
|
dispatch_time = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user