Repository navigation
ci: move integration-trigger concurrency to job level - #424
vuanhphung wants to merge 3 commits into
Conversation
A workflow-level concurrency group is joined by every run, including a labeled run whose jobs are all skipped. A bot label added right after a PR opens therefore cancelled the opened run's auto-pass job, and the required Kernel Integration Tests check was never posted. Use per-job groups so only jobs that actually run can supersede each other. Signed-off-by: Vu Anh Phung <vu.phung@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Low
Looks good: the change fixes the cancellation of the auto-pass job by a no-op labeled run, and per-job groups are the right way to do it. One low concern: pushes no longer cancel an in-flight label dispatch, and the concurrency comment still says they do.
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Low
The fix looks correct, with one low-severity concern: the concurrency comment no longer matches the new behaviour. Moving to job-level groups does stop skipped labeled runs from cancelling the opened auto-pass. As a side effect, a new push no longer cancels an in-flight labeled dispatch.
There was a problem hiding this comment.
Verdict: 1 Low
Looks good. The fix is correct: skipped jobs don't join job-level concurrency groups, so no-op labeled runs can no longer cancel the auto-pass. One low concern: moving auto-pass and dispatch into separate groups means a delayed auto-pass can now post success after a label-triggered real run has started on the same SHA.
| github.event.action != 'labeled' && | ||
| github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name | ||
| concurrency: | ||
| group: ${{ github.workflow }}-autopass-${{ github.event.pull_request.number }} |
There was a problem hiding this comment.
🔵 Low — Splitting auto-pass and dispatch into separate groups (-autopass-<PR> and -dispatch-<PR>) drops a guarantee the old shared group gave you. Before, if a maintainer added integration-test while a synchronize/opened run's auto-pass was still queued, the labeled run cancelled it. That meant the auto-pass could never post after the real dispatch had started.
Now the two can run concurrently. Here's the failure case: the auto-pass job sits waiting for a protected runner after a push, a maintainer labels the PR, and the receiver posts its Kernel Integration Tests run (in_progress → failure). The delayed auto-pass then calls checks.create(conclusion: 'success') on the same head SHA as the same app. Because that run is newer, it can hide the real failure on the PR.
The merge queue still gates, so the impact is limited to the advisory PR-time signal. Still, the old behaviour was strictly safer. Two options:
- Put both jobs in one PR-keyed group, e.g.
${{ github.workflow }}-pr-${{ github.event.pull_request.number }}. This still fixes the reported bug, because a skipped job never joins a job-level group and so can't cancel anything. - Or have the auto-pass step skip posting when a
Kernel Integration Testsrun from the receiver already exists for that SHA.
If the split is intentional, a sentence in the concurrency comment explaining why would help.
trigger-integration-tests.ymlhad a workflow-level concurrency group keyed on the PR number withcancel-in-progress: true. Every run joins that group as soon as it's queued, including alabeledrun whose jobs are all skipped. When a bot adds a label right after a PR opens (the GitHub tooling addsai-assistedat creation), the no-oplabeledrun cancels theopenedrun'sIntegration tests (auto-pass on PR)job, so the app-pinnedKernel Integration Testscheck is never posted and the PR sits blocked until someone reruns the cancelled run. This happened on #423.The workflow-level group is replaced with per-job groups on the three dispatch-side jobs. Skipped jobs never join a job-level group, so label events can no longer cancel the auto-pass, while push and label cycles still coalesce per PR (and per merge-group head in the queue). The label-cleanup job keeps its existing non-cancelling group.
trigger-coverage-fanout.ymlwas split out for the same cancellation problem; its comment is updated to match.This PR is itself a test: it gets the
ai-assistedlabel on creation, soKernel Integration Testsshould post without a manual rerun.This pull request and its description were written by Isaac.
This PR was created with GitHub MCP.