Skip to content

ci: key E2E workflow_dispatch concurrency on head_sha - #1367

Open
jiagaoxiang wants to merge 2 commits into
mainfrom
ci/e2e-dispatch-concurrency-head-sha
Open

ci: key E2E workflow_dispatch concurrency on head_sha#1367
jiagaoxiang wants to merge 2 commits into
mainfrom
ci/e2e-dispatch-concurrency-head-sha

Conversation

@jiagaoxiang

Copy link
Copy Markdown
Collaborator

Summary

workflow_dispatch has no pull_request.number / issue.number, so CI E2E concurrency fell through to github.ref (refs/heads/main for every dispatch). cancel-in-progress: true then killed the previous GPU smoke — #1325's dispatch cancelled #1322's run 33463143636 after ~58 min on the GPU.

This keys the group on inputs.head_sha (then inputs.head_ref) before github.ref, so two fork-PR dispatches can coexist. Same idea on Forge E2E job concurrency (head_sha before head_ref).

forge-kernel-bench.yml already uses a single forge-kernel-bench group with cancel-in-progress: false, so dispatches serialize instead of killing each other. Left it alone.

Test plan

  • Dispatch CI E2E for two different head_shas from main and confirm the first run is not cancelled
  • PR / /retest / retest label path still cancels the same-PR in-flight run

Fork PRs only get secrets via workflow_dispatch. That event has no
pull_request.number, so the group fell through to refs/heads/main and
cancel-in-progress killed the previous GPU smoke (#1322 cancelled by #1325).
@jiagaoxiang
jiagaoxiang requested a review from a team as a code owner September 1, 2026 15:40
@jiagaoxiang jiagaoxiang added the skip-e2e-test It's a PR that doesn't need to be e2e tested label Sep 1, 2026
@jiagaoxiang
jiagaoxiang enabled auto-merge (squash) September 1, 2026 15:40
The Forge gate counted the old group string (0==2 after the workflow
change). CI E2E's guard only required github.ref, which is how two
dispatches shared refs/heads/main and cancelled each other.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-e2e-test It's a PR that doesn't need to be e2e tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant