Skip to content

Commit 05050a6

Browse files
authored
refactor(ci): extract release qualification and serialize Codex reviews (#4419)
* refactor(ci): extract release qualification and serialize Codex reviews Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(ci): queue Codex reviews without security ordering Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(ci): retain qualification evidence after build failures Signed-off-by: Simon Scatton <sscatton@nvidia.com> * docs(ci): shorten compatibility review guidance Signed-off-by: Simon Scatton <sscatton@nvidia.com> --------- Signed-off-by: Simon Scatton <sscatton@nvidia.com>
1 parent 59ddef6 commit 05050a6

6 files changed

Lines changed: 280 additions & 211 deletions

File tree

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

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ During `0.x`, a minor train permits compatibility findings
167167
as warnings; a patch train or no active train rejects them. Compare the current
168168
train's version with the latest stable release; commit messages are irrelevant.
169169
Compilation, baseline, and tool errors remain fatal. The `protobuf_compatibility` suite participates in
170-
the `release-tag-v1` qualification profile. Both tagged pre-release and stable
170+
the `release-tag-v1` qualification profile. Release Tag calls the reusable
171+
`release-qualification.yml` workflow to run the checks and collect their results.
172+
Both tagged pre-release and stable
171173
publication require this profile to pass. Failed, cancelled, or skipped suites
172174
block publication; build artifacts and qualification evidence remain in Actions
173175
storage for diagnosis. Source-SHA images are staging inputs for qualification.
@@ -179,15 +181,17 @@ For `Codex Compatibility Review`, inspect its job summary and the
179181
candidate and baseline SHAs before interpreting findings. `complete` describes
180182
execution and coverage, not compatibility: also read the assessment and findings.
181183
An `error`, incomplete coverage, or missing artifact means no clean review is
182-
available. The job is advisory and independent of publication gates. The
183-
review uses high reasoning effort and focuses on breaking changes. Explicit
184-
risk acceptance requires a linked author or verified-maintainer comment or
185-
review; a PR description, general approval, or earlier bot report is insufficient.
186-
The full report retains unchanged findings with previous-comment links.
187-
`comment.md` contains only new or materially updated findings, and an unchanged
188-
review does not post another PR comment. Inspect the full artifact for outstanding
189-
breaks even when the bot is silent. The qualification summary points to it
190-
without waiting for completion. Do not
184+
available. Findings are advisory. The review targets breaking changes with high
185+
reasoning effort. Risk acceptance needs a linked author or verified-maintainer
186+
comment or review, not a PR description, general approval, or bot report.
187+
The full report keeps all findings and prior-comment links. `comment.md` includes
188+
only new or materially changed findings; unchanged reviews post no comment. Check
189+
the full artifact linked by qualification even when the bot is silent.
190+
The review is scheduled independently of Security Scan. The two Codex workflows
191+
share the `codex-release-review` concurrency group with `queue: max`, retaining
192+
up to 100 pending reviews while preventing overlapping API usage across runs.
193+
Either review can run first; other security scanners run in parallel.
194+
The qualification caller waits for both reviews to finish. Do not
191195
rerun Release Tag to debug this reviewer. Use its dedicated manual workflow
192196
with an existing candidate tag; that path does not publish release artifacts.
193197

‎.github/workflows/codex-compatibility.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ permissions:
4646
pull-requests: read
4747

4848
concurrency:
49-
group: codex-compatibility-${{ inputs.candidate_ref }}-${{ github.run_id }}
49+
group: codex-release-review
5050
cancel-in-progress: false
51+
queue: max
5152

5253
jobs:
5354
review:

‎.github/workflows/codex-security.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ permissions:
7171
security-events: write
7272

7373
concurrency:
74-
group: codex-security-release-qualification
75-
cancel-in-progress: true
74+
group: codex-release-review
75+
cancel-in-progress: false
76+
queue: max
7677

7778
env:
7879
CODEX_SECURITY_MAX_CONCURRENT_THREADS: "8"
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Release Qualification
5+
6+
on:
7+
workflow_call:
8+
inputs:
9+
release-tag:
10+
description: Release tag identifying the candidate
11+
required: true
12+
type: string
13+
source-sha:
14+
description: Source commit of the candidate artifacts in the calling run
15+
required: true
16+
type: string
17+
is-prerelease:
18+
description: Whether the candidate is a pre-release
19+
required: true
20+
type: boolean
21+
outputs:
22+
artifact-name:
23+
description: Artifact containing the qualification result
24+
value: ${{ jobs.qualification-result.outputs.artifact-name }}
25+
current-profile-passed:
26+
description: Whether every required qualification suite passed
27+
value: ${{ jobs.qualification-result.outputs.current-profile-passed }}
28+
secrets:
29+
CODEX_SECURITY_API_KEY:
30+
required: true
31+
CACHIX_AUTH_TOKEN:
32+
required: false
33+
34+
permissions:
35+
contents: read
36+
packages: read
37+
38+
env:
39+
RELEASE_TAG: ${{ inputs.release-tag }}
40+
41+
defaults:
42+
run:
43+
shell: bash
44+
45+
jobs:
46+
security:
47+
name: Security Scan
48+
permissions:
49+
actions: read
50+
contents: read
51+
packages: read
52+
security-events: write
53+
uses: ./.github/workflows/security-scan.yml
54+
with:
55+
candidate_ref: ${{ inputs.release-tag }}
56+
fail-on-static-findings: false
57+
images: |
58+
ghcr.io/nvidia/openshell/gateway:${{ inputs.source-sha }}
59+
ghcr.io/nvidia/openshell/sandbox:${{ inputs.source-sha }}
60+
ghcr.io/nvidia/openshell/supervisor:${{ inputs.source-sha }}
61+
secrets:
62+
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
63+
64+
prepare-integration:
65+
permissions:
66+
actions: read
67+
contents: read
68+
packages: read
69+
uses: ./.github/workflows/prepare-integration-inputs.yml
70+
with:
71+
source-sha: ${{ inputs.source-sha }}
72+
deb-artifact-name: deb-linux-amd64
73+
rpm-artifact-name: rpm-linux-x86_64
74+
75+
conformance-integration:
76+
needs: prepare-integration
77+
permissions:
78+
actions: read
79+
contents: read
80+
packages: read
81+
uses: ./.github/workflows/integration-runner.yml
82+
with:
83+
category: conformance
84+
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
85+
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
86+
test-matrix: >-
87+
[
88+
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"conformance"},
89+
{"environment":"ubuntu-k3s","installer":"k3s","testsuite":"conformance"},
90+
{"environment":"ubuntu-k3s","installer":"k3s-ha","testsuite":"conformance"},
91+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"conformance"},
92+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"conformance"}
93+
]
94+
95+
feature-specific-integration:
96+
needs: prepare-integration
97+
permissions:
98+
actions: read
99+
contents: read
100+
packages: read
101+
uses: ./.github/workflows/integration-runner.yml
102+
with:
103+
category: feature-specific
104+
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
105+
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
106+
test-matrix: >-
107+
[
108+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"provider-refresh"},
109+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"provider-refresh"},
110+
{"environment":"ubuntu-docker-rootful","installer":"deb","testsuite":"oci-image"},
111+
{"environment":"fedora-podman-rootful","installer":"rpm","testsuite":"oci-image"},
112+
{"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"oci-image"}
113+
]
114+
115+
docker-e2e:
116+
permissions:
117+
actions: read
118+
contents: read
119+
packages: read
120+
uses: ./.github/workflows/e2e-docker-test.yml
121+
with:
122+
image-tag: ${{ inputs.source-sha }}
123+
checkout-ref: ${{ inputs.source-sha }}
124+
runner: linux-arm64-cpu8
125+
126+
vm-e2e:
127+
permissions:
128+
actions: read
129+
contents: read
130+
packages: read
131+
uses: ./.github/workflows/e2e-vm-test.yml
132+
with:
133+
checkout-ref: ${{ inputs.source-sha }}
134+
135+
protobuf-compatibility:
136+
name: Protobuf Compatibility
137+
runs-on: linux-amd64-cpu8
138+
timeout-minutes: 15
139+
steps:
140+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
141+
with:
142+
fetch-depth: 0
143+
persist-credentials: false
144+
ref: ${{ inputs.source-sha }}
145+
146+
- uses: ./.github/actions/check-protobuf-compatibility
147+
with:
148+
ref: refs/tags/${{ env.RELEASE_TAG }}
149+
150+
compatibility-review:
151+
name: Compatibility Review (advisory)
152+
permissions:
153+
contents: read
154+
pull-requests: read
155+
uses: ./.github/workflows/codex-compatibility.yml
156+
with:
157+
candidate_ref: ${{ inputs.release-tag }}
158+
source_sha: ${{ inputs.source-sha }}
159+
secrets:
160+
CODEX_SECURITY_API_KEY: ${{ secrets.CODEX_SECURITY_API_KEY }}
161+
162+
qualification-result:
163+
name: Release Qualification
164+
if: always()
165+
needs:
166+
- protobuf-compatibility
167+
- security
168+
- conformance-integration
169+
- feature-specific-integration
170+
- docker-e2e
171+
- vm-e2e
172+
runs-on: ubuntu-latest
173+
timeout-minutes: 5
174+
permissions:
175+
contents: read
176+
outputs:
177+
artifact-name: ${{ steps.summary.outputs.artifact-name }}
178+
current-profile-passed: ${{ steps.summary.outputs.current-profile-passed }}
179+
steps:
180+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
181+
with:
182+
persist-credentials: false
183+
ref: ${{ inputs.source-sha }}
184+
185+
- name: Record qualification result
186+
id: summary
187+
env:
188+
CONFORMANCE_RESULT: ${{ needs.conformance-integration.result }}
189+
DOCKER_E2E_RESULT: ${{ needs.docker-e2e.result }}
190+
FEATURE_INTEGRATION_RESULT: ${{ needs.feature-specific-integration.result }}
191+
IS_PRERELEASE: ${{ inputs.is-prerelease }}
192+
PROTO_COMPATIBILITY_RESULT: ${{ needs.protobuf-compatibility.result }}
193+
SECURITY_RESULT: ${{ needs.security.result }}
194+
SOURCE_SHA: ${{ inputs.source-sha }}
195+
VM_E2E_RESULT: ${{ needs.vm-e2e.result }}
196+
run: |
197+
set -euo pipefail
198+
current_profile_passed=$(tasks/scripts/generate-qualification-summary.sh qualification-summary.json)
199+
artifact_name="qualification-${RELEASE_TAG}-run-${GITHUB_RUN_ID}-attempt-${GITHUB_RUN_ATTEMPT}"
200+
run_url=$(jq -r '.run.url' qualification-summary.json)
201+
202+
{
203+
echo "artifact-name=${artifact_name}"
204+
echo "current-profile-passed=${current_profile_passed}"
205+
} >> "${GITHUB_OUTPUT}"
206+
207+
{
208+
echo "## Release qualification"
209+
echo
210+
echo "- Candidate: \`${RELEASE_TAG}\` (\`${SOURCE_SHA}\`)"
211+
echo "- Current qualification profile passed: **${current_profile_passed}**"
212+
echo "- RFC-0014 qualification coverage complete: **false**"
213+
echo "- Run: [${GITHUB_RUN_ID}, attempt ${GITHUB_RUN_ATTEMPT}](${run_url})"
214+
echo
215+
echo "| Suite | Result |"
216+
echo "| --- | --- |"
217+
echo "| Protobuf API compatibility | ${PROTO_COMPATIBILITY_RESULT} |"
218+
echo "| Security | ${SECURITY_RESULT} |"
219+
echo "| Conformance integration | ${CONFORMANCE_RESULT} |"
220+
echo "| Feature integration | ${FEATURE_INTEGRATION_RESULT} |"
221+
echo "| Docker E2E | ${DOCKER_E2E_RESULT} |"
222+
echo "| VM E2E | ${VM_E2E_RESULT} |"
223+
echo
224+
echo "Advisory compatibility findings do not affect the qualification result."
225+
echo "See the Compatibility Review job and compatibility-review-run-${GITHUB_RUN_ID}-attempt-${GITHUB_RUN_ATTEMPT} artifact in [this run](${run_url})."
226+
} >> "${GITHUB_STEP_SUMMARY}"
227+
228+
- name: Upload qualification result
229+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
230+
with:
231+
name: ${{ steps.summary.outputs.artifact-name }}
232+
path: qualification-summary.json
233+
retention-days: 90
234+
if-no-files-found: error
235+
236+
- name: Require current qualification profile before publication
237+
if: steps.summary.outputs.current-profile-passed != 'true'
238+
run: |
239+
echo "Release ${RELEASE_TAG} did not pass the current release-tag-v1 qualification profile." >&2
240+
exit 1

0 commit comments

Comments
 (0)