Repository navigation
ci: move integration-trigger concurrency to job level #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,19 +82,21 @@ on: | |
| types: [opened, synchronize, reopened, labeled] | ||
| merge_group: | ||
|
|
||
| # Concurrency model: | ||
| # Concurrency model (job-level only): | ||
| # - No workflow-level group. Every run joins a workflow-level group, even | ||
| # one whose jobs are all skipped, so a no-op `labeled` run (e.g. a bot | ||
| # adding `ai-assisted` right after the PR opens) cancelled the `opened` | ||
| # run's auto-pass and left the required check unposted. Skipped jobs | ||
| # never join a job-level group. | ||
| # - Dispatch-side jobs (`skip-integration-tests-pr`, | ||
| # `trigger-tests-pr`, `merge-queue-kernel`) coalesce per PR / merge | ||
| # group / branch so push-spam and label cycles don't burn through | ||
| # the GitHub App rate limit. `cancel-in-progress: true` lets a | ||
| # newer push supersede a stale dispatch. | ||
| # group so push-spam and label cycles don't burn through the GitHub | ||
| # App rate limit. `cancel-in-progress: true` lets a newer push | ||
|
vuanhphung marked this conversation as resolved.
Resolved
|
||
| # supersede a stale dispatch. | ||
| # - The label-cleanup job (`remove-label-on-new-commit`) runs in its | ||
| # own group with `cancel-in-progress: false` — cancelling | ||
| # mid-flight could leave the label attached after a push, which | ||
| # would defeat the "re-review on each push" security contract. | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.merge_group.head_sha || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| # ============================================================================= | ||
|
|
@@ -106,7 +108,7 @@ jobs: | |
| name: Reset integration-test label on push | ||
| if: github.event_name == 'pull_request' && github.event.action == 'synchronize' | ||
| # Own concurrency group with `cancel-in-progress: false` — see the | ||
| # workflow-level comment above. The label-cleanup is a | ||
| # concurrency comment above. The label-cleanup is a | ||
| # security-critical action; it MUST run to completion on every | ||
| # push regardless of how quickly subsequent pushes arrive. | ||
| concurrency: | ||
|
|
@@ -202,6 +204,9 @@ jobs: | |
| github.event_name == 'pull_request' && | ||
| 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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔵 Low — Splitting auto-pass and dispatch into separate groups ( 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 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:
If the split is intentional, a sentence in the concurrency comment explaining why would help. |
||
| cancel-in-progress: true | ||
| runs-on: | ||
| group: databricks-protected-runner-group | ||
| labels: linux-ubuntu-latest | ||
|
|
@@ -298,6 +303,9 @@ jobs: | |
| github.event.action == 'labeled' && | ||
| contains(github.event.pull_request.labels.*.name, 'integration-test') && | ||
| vars.INTEGRATION_TESTS_ENABLED == 'true' | ||
| concurrency: | ||
| group: ${{ github.workflow }}-dispatch-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
| runs-on: | ||
| group: databricks-protected-runner-group | ||
| labels: linux-ubuntu-latest | ||
|
|
@@ -444,6 +452,9 @@ jobs: | |
| merge-queue-kernel: | ||
| name: Dispatch integration tests (merge queue) | ||
| if: github.event_name == 'merge_group' | ||
| concurrency: | ||
| group: ${{ github.workflow }}-merge-queue-${{ github.event.merge_group.head_sha }} | ||
| cancel-in-progress: true | ||
| runs-on: | ||
| group: databricks-protected-runner-group | ||
| labels: linux-ubuntu-latest | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.