Skip to content

Commit e7d2dc7

Browse files
authored
fix(ci): let active dev releases finish (#5633)
* fix(ci): let active dev releases finish Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com> * fix(ci): preserve E2E cancellation outside dev releases Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com> * docs(ci): shorten release concurrency guidance Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com> * refactor(ci): make E2E cancellation a caller option Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com> --------- Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent b0c831b commit e7d2dc7

4 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎.agents/skills/watch-github-actions/SKILL.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ JSON output for scripting:
123123
gh run list --json databaseId,status,headBranch,url --jq '.[] | {id: .databaseId, status: .status, branch: .headBranch, url: .url}'
124124
```
125125

126+
## E2E and dev release concurrency
127+
128+
`Release Dev` finishes its active run and replaces pending runs when new commits arrive. Other callers retain E2E cancellation. Inspect job annotations for cancellation reasons.
129+
126130
## View Job Logs
127131

128132
For Kubernetes app-listener E2E failures during kind setup, inspect the uploaded

‎.github/workflows/e2e-suites.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ name: E2E Suites
1818
on:
1919
workflow_call:
2020
inputs:
21+
cancel-in-progress:
22+
description: Cancel active runs in the same concurrency group
23+
required: false
24+
type: boolean
25+
default: true
2126
family:
2227
description: Run only the rows of this family and the workspaces under it (for example conformance or drivers); empty runs every row
2328
required: false
@@ -55,7 +60,7 @@ permissions:
5560
# workflow to avoid colliding with (and cancelling) the caller's other jobs.
5661
concurrency:
5762
group: ${{ github.workflow }}-e2e-suites-${{ inputs.family }}-${{ github.ref }}
58-
cancel-in-progress: true
63+
cancel-in-progress: ${{ inputs['cancel-in-progress'] }}
5964

6065
jobs:
6166
# The rows live here, in one place. Add an environment or a suite by adding a

‎.github/workflows/release-dev.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ permissions:
99
contents: read
1010
packages: read
1111

12+
concurrency:
13+
group: release-dev
14+
cancel-in-progress: false
15+
1216
defaults:
1317
run:
1418
shell: bash
@@ -145,6 +149,7 @@ jobs:
145149
uses: ./.github/workflows/e2e-suites.yml
146150
with:
147151
family: conformance
152+
cancel-in-progress: false
148153
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
149154
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
150155
secrets:
@@ -159,6 +164,7 @@ jobs:
159164
uses: ./.github/workflows/e2e-suites.yml
160165
with:
161166
family: features
167+
cancel-in-progress: false
162168
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
163169
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
164170
secrets:

‎CI.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ The GitHub ruleset should require the `OpenShell / ...` statuses published by
201201
`Required CI Gates` plus the direct `OpenShell / Trivy Changes` result, not the
202202
push-triggered workflow jobs themselves.
203203

204+
### E2E and dev release concurrency
205+
206+
`Release Dev` serializes push and manual runs in the `release-dev` concurrency group. The active run finishes qualification and publication; new arrivals replace the pending run. It passes `cancel-in-progress: false` to E2E Suites; other callers retain the default `true`. Keep the complete dev workflow serialized so E2E families cannot replace pending candidates independently and dev publishers cannot overlap.
207+
204208
### K3s conformance version baseline
205209

206210
The `ubuntu-k3s` conformance lanes pin Agent Sandbox v0.5.0 as the

0 commit comments

Comments
 (0)