Repository navigation
feat(compute): add provider workload identity contract #9912
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Branch E2E Checks | |
| # Jobs load the images this run builds from workflow artifacts instead of a | |
| # registry, so fork PRs run E2E with their read-only token. | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| workflow_dispatch: {} | |
| permissions: {} | |
| # Labeling a PR with anything but an E2E label starts a run that skips every | |
| # job. Give that run its own group so it cannot cancel a real one. | |
| concurrency: | |
| group: >- | |
| ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{ | |
| github.event.action == 'labeled' && !startsWith(github.event.label.name, 'test:e2e') | |
| && format('-{0}', github.run_id) || '' }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr_metadata: | |
| name: Resolve PR metadata | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| outputs: | |
| should_run: ${{ steps.labels.outputs.should_run }} | |
| sha: ${{ steps.labels.outputs.sha }} | |
| run_integration: ${{ steps.labels.outputs.run_core_e2e }} | |
| run_core_e2e: ${{ steps.labels.outputs.run_core_e2e }} | |
| run_kubernetes_ha_e2e: ${{ steps.labels.outputs.run_kubernetes_ha_e2e }} | |
| run_kubernetes_credential_drivers_e2e: ${{ steps.labels.outputs.run_kubernetes_credential_drivers_e2e }} | |
| run_continuity_e2e: ${{ steps.labels.outputs.run_continuity_e2e }} | |
| run_any_e2e: ${{ steps.labels.outputs.run_any_e2e }} | |
| steps: | |
| - id: labels | |
| env: | |
| EVENT_NAME: ${{ github.event_name }} | |
| EVENT_ACTION: ${{ github.event.action }} | |
| EVENT_LABEL: ${{ github.event.label.name }} | |
| LABELS_JSON: ${{ toJSON(github.event.pull_request.labels.*.name) }} | |
| PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| DISPATCH_SHA: ${{ github.sha }} | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| should_run=true | |
| case "$EVENT_NAME" in | |
| pull_request) | |
| sha="$PR_HEAD_SHA" | |
| if [ "$EVENT_ACTION" = labeled ] && [[ "$EVENT_LABEL" != test:e2e* ]]; then | |
| should_run=false | |
| fi | |
| run_core_e2e="$(jq -r 'index("test:e2e") != null' <<< "$LABELS_JSON")" | |
| run_kubernetes_ha_e2e="$(jq -r 'index("test:e2e-kubernetes") != null' <<< "$LABELS_JSON")" | |
| run_kubernetes_credential_drivers_e2e="$(jq -r 'index("test:e2e-kubernetes") != null' <<< "$LABELS_JSON")" | |
| run_continuity_e2e="$(jq -r 'index("test:e2e:continuity") != null' <<< "$LABELS_JSON")" | |
| ;; | |
| *) | |
| sha="$DISPATCH_SHA" | |
| run_core_e2e=true | |
| run_kubernetes_ha_e2e=false | |
| run_kubernetes_credential_drivers_e2e=false | |
| run_continuity_e2e=true | |
| ;; | |
| esac | |
| if [ "$should_run" = false ]; then | |
| run_core_e2e=false | |
| run_kubernetes_ha_e2e=false | |
| run_kubernetes_credential_drivers_e2e=false | |
| run_continuity_e2e=false | |
| fi | |
| if [ "$run_core_e2e" = "true" ] || [ "$run_kubernetes_ha_e2e" = "true" ] || [ "$run_kubernetes_credential_drivers_e2e" = "true" ]; then | |
| run_any_e2e=true | |
| else | |
| run_any_e2e=false | |
| fi | |
| { | |
| echo "should_run=$should_run" | |
| echo "sha=$sha" | |
| echo "run_core_e2e=$run_core_e2e" | |
| echo "run_kubernetes_ha_e2e=$run_kubernetes_ha_e2e" | |
| echo "run_kubernetes_credential_drivers_e2e=$run_kubernetes_credential_drivers_e2e" | |
| echo "run_continuity_e2e=$run_continuity_e2e" | |
| echo "run_any_e2e=$run_any_e2e" | |
| } >> "$GITHUB_OUTPUT" | |
| version: | |
| needs: [pr_metadata] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_any_e2e == 'true' | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| outputs: | |
| cargo: ${{ steps.version.outputs.cargo }} | |
| deb_version: ${{ steps.version.outputs.deb_version }} | |
| rpm_version: ${{ steps.version.outputs.rpm_version }} | |
| rpm_release: ${{ steps.version.outputs.rpm_release }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| ref: ${{ needs.pr_metadata.outputs.sha }} | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Compute version | |
| id: version | |
| run: | | |
| cargo="$(python3 tasks/scripts/release.py get-version --cargo)" | |
| deb_version="$(python3 tasks/scripts/release.py get-version --dev --deb)" | |
| rpm_version="$(python3 tasks/scripts/release.py get-version --dev --rpm-version)" | |
| rpm_release="$(python3 tasks/scripts/release.py get-version --dev --rpm-release)" | |
| { | |
| echo "cargo=$cargo" | |
| echo "deb_version=$deb_version" | |
| echo "rpm_version=$rpm_version" | |
| echo "rpm_release=$rpm_release" | |
| } >> "$GITHUB_OUTPUT" | |
| build-binaries-linux: | |
| needs: [pr_metadata, version] | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/build-binaries-linux.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| cargo-version: ${{ needs.version.outputs.cargo }} | |
| experimental: true | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| build-binaries-macos: | |
| needs: [pr_metadata, version] | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/build-binaries-macos.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| cargo-version: ${{ needs.version.outputs.cargo }} | |
| experimental: true | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| build-gateway-plain: | |
| name: openshell-gateway driver-free (${{ matrix.triple }}) | |
| needs: [pr_metadata, version] | |
| if: needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| include: | |
| - triple: x86_64-unknown-linux-gnu | |
| runner: ubuntu-24.04 | |
| - triple: aarch64-unknown-linux-gnu | |
| runner: ubuntu-24.04-arm | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| ref: ${{ needs.pr_metadata.outputs.sha }} | |
| - uses: ./.github/actions/setup-nix | |
| with: | |
| prepare-shell: "true" | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - uses: ./.github/actions/build-rust-binary | |
| with: | |
| package: openshell-gateway | |
| binary: openshell-gateway | |
| artifact-name: openshell-gateway-plain-${{ matrix.triple }} | |
| triple: ${{ matrix.triple }} | |
| cargo-version: ${{ needs.version.outputs.cargo }} | |
| extra-cargo-flags: --no-default-features | |
| # The conformance program, built once per architecture for the host lanes. | |
| # It lives in its own workspace and is not released, so it is not part of | |
| # build-binaries-linux.yml. | |
| build-conformance: | |
| name: openshell-conformance (${{ matrix.triple }}) | |
| needs: [pr_metadata] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_any_e2e == 'true' | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| include: | |
| - triple: x86_64-unknown-linux-musl | |
| runner: ubuntu-24.04 | |
| - triple: aarch64-unknown-linux-musl | |
| runner: ubuntu-24.04-arm | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| ref: ${{ needs.pr_metadata.outputs.sha }} | |
| - uses: ./.github/actions/setup-nix | |
| with: | |
| prepare-shell: "true" | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - uses: ./.github/actions/setup-rust | |
| with: | |
| cache-key: binaries-v2-openshell-conformance-${{ matrix.triple }} | |
| save-cache: ${{ github.ref == 'refs/heads/main' }} | |
| - name: Build openshell-conformance | |
| shell: nix develop -c bash -euo pipefail {0} | |
| env: | |
| # Build into the root target directory, which setup-rust caches. | |
| CARGO_TARGET_DIR: ${{ github.workspace }}/target | |
| TRIPLE: ${{ matrix.triple }} | |
| run: | | |
| cargo build --release --locked --target "$TRIPLE" \ | |
| --manifest-path tests/suites/conformance/Cargo.toml \ | |
| --bin openshell-conformance | |
| binary="target/$TRIPLE/release/openshell-conformance" | |
| # The program must run on any lane host. | |
| tasks/scripts/verify-static-binary.sh "$binary" | |
| # Fails if the program has no tests linked. | |
| "$binary" list | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: openshell-conformance-${{ matrix.triple }} | |
| path: target/${{ matrix.triple }}/release/openshell-conformance | |
| compression-level: 0 | |
| retention-days: 5 | |
| if-no-files-found: error | |
| # The test bundles of the tmachine E2E suites rows that don't run | |
| # openshell-conformance, built once per run instead of in every row (see | |
| # e2e-suites.yml). The rows only run on amd64, so only the x86_64 guest | |
| # target is built. Each bundle holds its whole family; a row picks its | |
| # package at run time. Rust Cache (rust-cache.yml) saves the cache on main; | |
| # keep the env and build commands aligned with its e2e-bundles job. | |
| build-e2e-bundles: | |
| name: E2E suite bundles (x86_64-unknown-linux-musl) | |
| needs: [pr_metadata] | |
| if: needs.pr_metadata.outputs.run_integration == 'true' | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| ref: ${{ needs.pr_metadata.outputs.sha }} | |
| - uses: ./.github/actions/setup-nix | |
| with: | |
| prepare-shell: "true" | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - uses: ./.github/actions/setup-rust | |
| with: | |
| cache-key: e2e-bundles-v1-x86_64-unknown-linux-musl | |
| - name: Build the bundles | |
| env: | |
| # One target directory for every family, so later families reuse | |
| # testkit-ready and the dependencies the first one built. It is the | |
| # root target directory, which setup-rust caches. | |
| CARGO_TARGET_DIR: ${{ github.workspace }}/target | |
| # Every row downloads the bundles. Line tables keep backtraces | |
| # readable at a third of the size of full debuginfo. | |
| CARGO_PROFILE_DEV_DEBUG: line-tables-only | |
| run: | | |
| set -euo pipefail | |
| # Retry dependency preparation, then build once. | |
| nix build --no-link .#openshell-test-runner || nix build --no-link .#openshell-test-runner | |
| for family in features drivers/podman; do | |
| nix run .#openshell-test-runner -- build \ | |
| --family "$family" --out "artifacts/e2e-bundles/${family//\//-}" | |
| done | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: openshell-e2e-bundle-features-x86_64-unknown-linux-musl | |
| path: artifacts/e2e-bundles/features | |
| retention-days: 5 | |
| if-no-files-found: error | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: openshell-e2e-bundle-drivers-podman-x86_64-unknown-linux-musl | |
| path: artifacts/e2e-bundles/drivers-podman | |
| retention-days: 5 | |
| if-no-files-found: error | |
| build-external-drivers: | |
| name: ${{ matrix.binary }} (${{ matrix.triple }}) | |
| needs: [pr_metadata, version] | |
| if: needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| include: | |
| - package: openshell-driver-kubernetes | |
| binary: openshell-driver-kubernetes | |
| triple: x86_64-unknown-linux-gnu | |
| runner: ubuntu-24.04 | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| ref: ${{ needs.pr_metadata.outputs.sha }} | |
| - uses: ./.github/actions/setup-nix | |
| with: | |
| prepare-shell: "true" | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| - uses: ./.github/actions/build-rust-binary | |
| with: | |
| package: ${{ matrix.package }} | |
| binary: ${{ matrix.binary }} | |
| triple: ${{ matrix.triple }} | |
| cargo-version: ${{ needs.version.outputs.cargo }} | |
| build-vm-driver-linux: | |
| needs: [pr_metadata, version, build-binaries-linux] | |
| if: needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/build-vm-driver-linux.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| cargo-version: ${{ needs.version.outputs.cargo }} | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| build-vm-driver-macos: | |
| needs: [pr_metadata, version, build-binaries-linux, build-binaries-macos] | |
| if: needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/build-vm-driver-macos.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| cargo-version: ${{ needs.version.outputs.cargo }} | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| build-images: | |
| needs: [pr_metadata, build-binaries-linux] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_any_e2e == 'true' | |
| permissions: | |
| contents: read | |
| packages: write | |
| uses: ./.github/workflows/build-images.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| push-images: false | |
| build-deb: | |
| name: Build Debian packages | |
| needs: [pr_metadata, version, build-binaries-linux, build-vm-driver-linux] | |
| if: needs.pr_metadata.outputs.run_integration == 'true' | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/deb-package.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| deb-version: ${{ needs.version.outputs.deb_version }} | |
| build-rpm: | |
| name: Build RPM packages | |
| needs: [pr_metadata, version, build-binaries-linux] | |
| if: needs.pr_metadata.outputs.run_integration == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| uses: ./.github/workflows/rpm-package.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| rpm-version: ${{ needs.version.outputs.rpm_version }} | |
| rpm-release: ${{ needs.version.outputs.rpm_release }} | |
| cargo-version: ${{ needs.version.outputs.cargo }} | |
| # Test inputs don't depend on the packages, so build them while the packages | |
| # build instead of in prepare-integration. | |
| build-tmachine-test-inputs: | |
| name: Build tmachine test inputs | |
| needs: [pr_metadata] | |
| if: needs.pr_metadata.outputs.run_integration == 'true' | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| ref: ${{ needs.pr_metadata.outputs.sha }} | |
| - uses: ./.github/actions/setup-nix | |
| - name: Build test archives | |
| run: | | |
| # Retry dependency preparation, then generate artifacts once. | |
| nix build --no-link .#build-artifacts-test-archives || nix build --no-link .#build-artifacts-test-archives | |
| nix run .#build-artifacts-test-archives | |
| - name: Build test workload images | |
| run: | | |
| # Retry dependency preparation, then generate artifacts once. | |
| nix build --no-link .#build-artifacts-test-images || nix build --no-link .#build-artifacts-test-images | |
| nix run .#build-artifacts-test-images | |
| - name: Package Helm chart | |
| run: | | |
| # Retry dependency preparation, then generate artifacts once. | |
| nix build --no-link .#build-artifacts-helm || nix build --no-link .#build-artifacts-helm | |
| nix run .#build-artifacts-helm | |
| - name: Upload tmachine test inputs | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: openshell-tmachine-test-inputs | |
| path: artifacts | |
| compression-level: 0 | |
| retention-days: 5 | |
| if-no-files-found: error | |
| prepare-integration: | |
| needs: [pr_metadata, build-binaries-linux, build-images, build-deb, build-rpm, build-tmachine-test-inputs, build-external-drivers] | |
| if: needs.pr_metadata.outputs.run_integration == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/prepare-integration-inputs.yml | |
| with: | |
| source-sha: ${{ needs.pr_metadata.outputs.sha }} | |
| deb-artifact-name: deb-linux-amd64 | |
| rpm-artifact-name: rpm-linux-x86_64 | |
| test-inputs-artifact-name: openshell-tmachine-test-inputs | |
| external-drivers: true | |
| # Publish this commit's test inputs to ghcr (see publish-test-inputs.yml) so | |
| # downstream repositories can test a fix from any branch. The token of a fork | |
| # PR cannot write packages, so those runs keep the Actions artifacts only. | |
| publish-test-inputs: | |
| needs: [pr_metadata, prepare-integration, build-conformance] | |
| if: needs.pr_metadata.outputs.run_integration == 'true' && github.event.pull_request.head.repo.fork != true | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: write | |
| uses: ./.github/workflows/publish-test-inputs.yml | |
| with: | |
| source-sha: ${{ needs.pr_metadata.outputs.sha }} | |
| # Run driver-independent conformance tests. | |
| conformance-integration: | |
| needs: [prepare-integration, build-conformance] | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-suites.yml | |
| with: | |
| family: conformance | |
| prebuilt: true | |
| external-drivers: true | |
| source-sha: ${{ needs.prepare-integration.outputs.source_sha }} | |
| integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }} | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| # Run the testkit feature suites (tests/suites/features) on tmachine. The | |
| # environments and suites are listed in e2e-suites.yml. | |
| feature-specific-integration: | |
| needs: [prepare-integration, build-e2e-bundles] | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-suites.yml | |
| with: | |
| family: features | |
| prebuilt: true | |
| source-sha: ${{ needs.prepare-integration.outputs.source_sha }} | |
| integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }} | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| # Run the testkit driver suites (tests/suites/drivers) on tmachine. The | |
| # environments and suites are listed in e2e-suites.yml. | |
| driver-specific-integration: | |
| needs: [prepare-integration, build-e2e-bundles] | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-suites.yml | |
| with: | |
| family: drivers | |
| prebuilt: true | |
| source-sha: ${{ needs.prepare-integration.outputs.source_sha }} | |
| integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }} | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| # Run the continuity suites (tests/suites/continuity) on tmachine: state | |
| # seeded before a disruption, such as a gateway restart or an upgrade from the | |
| # latest release, must survive it. The label adds to test:e2e, whose builds it | |
| # reuses. | |
| continuity-integration: | |
| needs: [pr_metadata, prepare-integration] | |
| if: needs.pr_metadata.outputs.run_integration == 'true' && needs.pr_metadata.outputs.run_continuity_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-suites.yml | |
| with: | |
| family: continuity | |
| upgrade-source: true | |
| source-sha: ${{ needs.prepare-integration.outputs.source_sha }} | |
| integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }} | |
| secrets: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| # Run the Podman e2e suite on tmachine against the packaged gateway. | |
| podman-e2e-integration: | |
| needs: prepare-integration | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/integration-runner.yml | |
| with: | |
| category: driver-specific | |
| source-sha: ${{ needs.prepare-integration.outputs.source_sha }} | |
| integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }} | |
| test-matrix: >- | |
| [ | |
| {"environment":"fedora-podman-rootless","installer":"rpm","testsuite":"e2e-podman"} | |
| ] | |
| docker-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-docker-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| external-driver-binary: openshell-driver-docker | |
| runner: ubuntu-24.04-arm | |
| podman-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-podman-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| external-driver-binary: openshell-driver-podman | |
| suite-matrix: >- | |
| [{"suite":"ci","runner":"ubuntu-26.04","podman_major":"5","podman_package_version":"5.7.0+ds2-3build1","conmon_package_version":"2.1.13+ds1-2","cmd":"mise run --no-deps --skip-deps e2e:podman:ci"}] | |
| podman-additional-ca-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-podman-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| external-driver-binary: openshell-driver-podman | |
| suite-matrix: >- | |
| [{"suite":"additional-ca","runner":"ubuntu-26.04","podman_major":"5","podman_package_version":"5.7.0+ds2-3build1","conmon_package_version":"2.1.13+ds1-2","cmd":"OPENSHELL_E2E_PODMAN_TEST=additional_ca mise run --no-deps --skip-deps e2e:podman"}] | |
| vm-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-vm-driver-linux] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-vm-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| vm-additional-ca-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-vm-driver-linux] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-vm-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| suite-name: additional-ca | |
| test-name: additional_ca | |
| podman-external-driver-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-gateway-plain, build-external-drivers, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-podman-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| gateway-artifact: openshell-gateway-plain-x86_64-unknown-linux-gnu | |
| external-driver-binary: openshell-driver-podman | |
| suite-matrix: >- | |
| [{"suite":"external-driver","runner":"ubuntu-26.04","podman_major":"5","podman_package_version":"5.7.0+ds2-3build1","conmon_package_version":"2.1.13+ds1-2","cmd":"mise run --no-deps --skip-deps e2e:podman:external-driver"}] | |
| vm-external-driver-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-gateway-plain, build-vm-driver-linux] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-vm-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| gateway-artifact: openshell-gateway-plain-x86_64-unknown-linux-gnu | |
| suite-name: external-driver | |
| e2e-task: e2e:vm:external-driver | |
| kubernetes-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - agent_sandbox_api: v1beta1 | |
| agent_sandbox_version: v1.0.3 | |
| job_name: Kubernetes E2E (Rust smoke, Agent Sandbox v1beta1) | |
| test_name: "" | |
| - agent_sandbox_api: v1alpha1 | |
| agent_sandbox_version: v0.4.6 | |
| job_name: Kubernetes E2E (Rust smoke, Agent Sandbox v1alpha1) | |
| test_name: "" | |
| - agent_sandbox_api: v1beta1 | |
| agent_sandbox_version: v0.5.0 | |
| job_name: Kubernetes E2E (additional destination CA, Agent Sandbox v1beta1) | |
| test_name: additional_ca | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: ${{ matrix.job_name }} | |
| agent-sandbox-version: ${{ matrix.agent_sandbox_version }} | |
| test-name: ${{ matrix.test_name }} | |
| kubernetes-app-listener-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - topology: dedicated | |
| delivery: push | |
| takeover: graceful | |
| name: dedicated push | |
| - topology: dedicated | |
| delivery: poll | |
| takeover: graceful | |
| name: dedicated poll | |
| - topology: shared | |
| delivery: push | |
| takeover: graceful | |
| name: shared graceful takeover | |
| - topology: shared | |
| delivery: push | |
| takeover: abrupt | |
| name: shared abrupt takeover | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: Kubernetes app listener (${{ matrix.name }}) | |
| e2e-task: e2e:kubernetes:app-listener | |
| enforce-network-policy: true | |
| listener-topology: ${{ matrix.topology }} | |
| listener-delivery: ${{ matrix.delivery }} | |
| listener-takeover: ${{ matrix.takeover }} | |
| kubernetes-workspace-managed-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: Kubernetes E2E (workspace managed mode) | |
| e2e-task: e2e:kubernetes:workspace-managed | |
| kubernetes-external-driver-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-gateway-plain, build-external-drivers, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: Kubernetes E2E (external compute driver) | |
| e2e-task: e2e:kubernetes:external-driver | |
| gateway-artifact: openshell-gateway-plain-x86_64-unknown-linux-gnu | |
| external-driver-binary: openshell-driver-kubernetes | |
| cluster-images: sandbox supervisor | |
| kubernetes-workspace-operator-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: Kubernetes E2E (workspace operator mode) | |
| e2e-task: e2e:kubernetes:workspace-operator | |
| kubernetes-tracing-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: Kubernetes E2E (trace export) | |
| e2e-task: e2e:kubernetes:tracing | |
| kubernetes-ha-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_ha_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: Kubernetes HA E2E (Rust smoke) | |
| extra-helm-values: deploy/helm/openshell/ci/values-high-availability.yaml | |
| external-postgres-secret: openshell-ha-pg | |
| test-name: kubernetes_ha_rebalancing | |
| kubernetes-features: e2e,e2e-host-gateway,e2e-kubernetes,e2e-kubernetes-ha | |
| use-envoy-gateway: true | |
| kubernetes-credential-drivers-e2e: | |
| needs: [pr_metadata, build-binaries-linux, build-conformance, build-images] | |
| if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_credential_drivers_e2e == 'true' | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| uses: ./.github/workflows/e2e-kubernetes-test.yml | |
| with: | |
| checkout-ref: ${{ needs.pr_metadata.outputs.sha }} | |
| prebuilt-conformance: true | |
| image-tag: ${{ needs.pr_metadata.outputs.sha }} | |
| job-name: Kubernetes Credential Drivers E2E | |
| e2e-task: e2e:kubernetes:credential-drivers | |
| core-e2e-result: | |
| name: Core E2E result | |
| needs: | |
| - pr_metadata | |
| - build-binaries-macos | |
| - build-vm-driver-macos | |
| - conformance-integration | |
| - feature-specific-integration | |
| - driver-specific-integration | |
| - podman-e2e-integration | |
| - docker-e2e | |
| - podman-e2e | |
| - podman-additional-ca-e2e | |
| - vm-e2e | |
| - vm-additional-ca-e2e | |
| - podman-external-driver-e2e | |
| - vm-external-driver-e2e | |
| - kubernetes-e2e | |
| - kubernetes-app-listener-e2e | |
| - kubernetes-external-driver-e2e | |
| - kubernetes-workspace-managed-e2e | |
| - kubernetes-workspace-operator-e2e | |
| - kubernetes-tracing-e2e | |
| if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/check-job-results | |
| with: | |
| results: ${{ toJSON(needs) }} | |
| kubernetes-ha-e2e-result: | |
| name: Kubernetes HA E2E result | |
| needs: [pr_metadata, build-binaries-macos, kubernetes-ha-e2e] | |
| if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_ha_e2e == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/check-job-results | |
| with: | |
| results: ${{ toJSON(needs) }} | |
| kubernetes-credential-drivers-e2e-result: | |
| name: Kubernetes Credential Drivers E2E result | |
| needs: [pr_metadata, build-binaries-macos, kubernetes-credential-drivers-e2e] | |
| if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_credential_drivers_e2e == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/check-job-results | |
| with: | |
| results: ${{ toJSON(needs) }} |