From f3e0e42292297f09aa3330487cf9c13e080abd4c Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Wed, 4 Feb 2026 16:05:03 +0000 Subject: [PATCH] static-build-concurrencies --- .github/workflows/build-checks.yaml | 2 +- .../build-kata-static-tarball-amd64.yaml | 19 +++++++++++++++++++ .../build-kata-static-tarball-arm64.yaml | 13 +++++++++++++ .../build-kata-static-tarball-ppc64le.yaml | 12 +++++++++++- .../build-kata-static-tarball-riscv64.yaml | 3 +++ .../build-kata-static-tarball-s390x.yaml | 13 +++++++++++++ 6 files changed, 60 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-checks.yaml b/.github/workflows/build-checks.yaml index 74d336c439..f036dcb82c 100644 --- a/.github/workflows/build-checks.yaml +++ b/.github/workflows/build-checks.yaml @@ -75,7 +75,7 @@ jobs: instance: - ${{ inputs.instance }} concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.component.name }}-${{ matrix.command }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${inputs.instance}-${{ matrix.component.name }}-${{ matrix.command }} cancel-in-progress: true steps: - name: Adjust a permission for repo diff --git a/.github/workflows/build-kata-static-tarball-amd64.yaml b/.github/workflows/build-kata-static-tarball-amd64.yaml index 8ec804182a..2047c12ef9 100644 --- a/.github/workflows/build-kata-static-tarball-amd64.yaml +++ b/.github/workflows/build-kata-static-tarball-amd64.yaml @@ -28,6 +28,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64 + cancel-in-progress: true + jobs: build-asset: name: build-asset @@ -63,6 +67,9 @@ jobs: exclude: - asset: cloud-hypervisor-glibc stage: release + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.asset }}-${{ matrix.asset }}-${{ matrix.stage }} + cancel-in-progress: true env: PERFORM_ATTESTATION: ${{ matrix.asset == 'agent' && inputs.push-to-registry == 'yes' && 'yes' || 'no' }} steps: @@ -170,6 +177,9 @@ jobs: - rootfs-initrd-confidential - rootfs-initrd-nvidia-gpu - rootfs-initrd-nvidia-gpu-confidential + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.asset }} + cancel-in-progress: true steps: - name: Login to Kata Containers quay.io if: ${{ inputs.push-to-registry == 'yes' }} @@ -237,6 +247,9 @@ jobs: - coco-guest-components - kernel-nvidia-gpu-modules - pause-image + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.asset }} + cancel-in-progress: true steps: - uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0 with: @@ -251,6 +264,9 @@ jobs: matrix: asset: - agent + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.asset }} + cancel-in-progress: true steps: - uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0 if: ${{ inputs.stage == 'release' }} @@ -374,6 +390,9 @@ jobs: - trace-forwarder stage: - ${{ inputs.stage }} + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.asset }} + cancel-in-progress: true steps: - name: Login to Kata Containers quay.io if: ${{ inputs.push-to-registry == 'yes' }} diff --git a/.github/workflows/build-kata-static-tarball-arm64.yaml b/.github/workflows/build-kata-static-tarball-arm64.yaml index 9d666c2a74..5b4d4da858 100644 --- a/.github/workflows/build-kata-static-tarball-arm64.yaml +++ b/.github/workflows/build-kata-static-tarball-arm64.yaml @@ -28,6 +28,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-arm64 + cancel-in-progress: true + jobs: build-asset: name: build-asset @@ -52,6 +56,9 @@ jobs: - ovmf - qemu - virtiofsd + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-arm64-${{ matrix.asset }} + cancel-in-progress: true env: PERFORM_ATTESTATION: ${{ matrix.asset == 'agent' && inputs.push-to-registry == 'yes' && 'yes' || 'no' }} steps: @@ -153,6 +160,9 @@ jobs: - rootfs-image-nvidia-gpu - rootfs-initrd - rootfs-initrd-nvidia-gpu + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-arm-${{ matrix.asset }} + cancel-in-progress: true steps: - name: Login to Kata Containers quay.io if: ${{ inputs.push-to-registry == 'yes' }} @@ -217,6 +227,9 @@ jobs: asset: - busybox - kernel-nvidia-gpu-modules + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-arm-${{ matrix.asset }} + cancel-in-progress: true steps: - uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0 with: diff --git a/.github/workflows/build-kata-static-tarball-ppc64le.yaml b/.github/workflows/build-kata-static-tarball-ppc64le.yaml index b4bc1e3dcd..4a13b396f7 100644 --- a/.github/workflows/build-kata-static-tarball-ppc64le.yaml +++ b/.github/workflows/build-kata-static-tarball-ppc64le.yaml @@ -26,6 +26,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-ppc64le + cancel-in-progress: true + jobs: build-asset: name: build-asset @@ -42,6 +46,9 @@ jobs: - virtiofsd stage: - ${{ inputs.stage }} + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-ppc64le-${{ matrix.asset }}-${{ matrix.asset }}-${{ matrix.stage }} + cancel-in-progress: true steps: - name: Login to Kata Containers quay.io if: ${{ inputs.push-to-registry == 'yes' }} @@ -100,6 +107,9 @@ jobs: - rootfs-initrd stage: - ${{ inputs.stage }} + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-ppc64le-${{ matrix.asset }} + cancel-in-progress: true steps: - name: Login to Kata Containers quay.io if: ${{ inputs.push-to-registry == 'yes' }} @@ -166,7 +176,7 @@ jobs: - uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0 if: ${{ inputs.stage == 'release' }} with: - name: kata-artifacts-ppc64le-${{ matrix.asset}}${{ inputs.tarball-suffix }} + name: kata-artifacts-ppc64le-${{ matrix.asset}}${{ inputs.tarball-suffix }}-ppc64le-${{ matrix.asset }} build-asset-shim-v2: name: build-asset-shim-v2 diff --git a/.github/workflows/build-kata-static-tarball-riscv64.yaml b/.github/workflows/build-kata-static-tarball-riscv64.yaml index c098516c82..ded0d7d362 100644 --- a/.github/workflows/build-kata-static-tarball-riscv64.yaml +++ b/.github/workflows/build-kata-static-tarball-riscv64.yaml @@ -37,6 +37,9 @@ jobs: asset: - kernel - virtiofsd + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-riscv-${{ matrix.asset }} + cancel-in-progress: true steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.github/workflows/build-kata-static-tarball-s390x.yaml b/.github/workflows/build-kata-static-tarball-s390x.yaml index d6ba1c2df4..ce538f7924 100644 --- a/.github/workflows/build-kata-static-tarball-s390x.yaml +++ b/.github/workflows/build-kata-static-tarball-s390x.yaml @@ -29,6 +29,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-s390x + cancel-in-progress: true + jobs: build-asset: name: build-asset @@ -47,6 +51,9 @@ jobs: - pause-image - qemu - virtiofsd + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-s390x-${{ matrix.asset }} + cancel-in-progress: true env: PERFORM_ATTESTATION: ${{ matrix.asset == 'agent' && inputs.push-to-registry == 'yes' && 'yes' || 'no' }} steps: @@ -134,6 +141,9 @@ jobs: - rootfs-image-confidential - rootfs-initrd - rootfs-initrd-confidential + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-s390x-${{ matrix.asset }} + cancel-in-progress: true steps: - name: Login to Kata Containers quay.io if: ${{ inputs.push-to-registry == 'yes' }} @@ -248,6 +258,9 @@ jobs: - agent - coco-guest-components - pause-image + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-s390x-${{ matrix.asset }} + cancel-in-progress: true steps: - uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0 if: ${{ inputs.stage == 'release' }}