|
| 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