From c689f774a4196563305a88e8faccecded3c6780c Mon Sep 17 00:00:00 2001 From: Kangyan-Zhou Date: Wed, 22 Apr 2026 17:48:38 -0700 Subject: [PATCH] [CI] /rerun-stage: fix workflow-run URL lookup for sgl-kernel PRs (#23510) Co-authored-by: Claude Opus 4.7 (1M context) --- scripts/ci/utils/slash_command_handler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ci/utils/slash_command_handler.py b/scripts/ci/utils/slash_command_handler.py index 59d597551..9b074dd35 100644 --- a/scripts/ci/utils/slash_command_handler.py +++ b/scripts/ci/utils/slash_command_handler.py @@ -406,9 +406,13 @@ def handle_rerun_stage( if kernel_changes and not is_amd_stage: inputs["include_wheel_build"] = "true" # 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: inputs["pr_head_sha"] = pr.head.sha + pr_head_sha = pr.head.sha # Record dispatch time before triggering dispatch_time = time.time()