diff --git a/.github/workflows/basic-ci-amd64.yaml b/.github/workflows/basic-ci-amd64.yaml index 0043fd309e..00f9bd2334 100644 --- a/.github/workflows/basic-ci-amd64.yaml +++ b/.github/workflows/basic-ci-amd64.yaml @@ -15,6 +15,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64 + cancel-in-progress: true + jobs: run-containerd-sandboxapi: name: run-containerd-sandboxapi @@ -26,6 +30,9 @@ jobs: matrix: containerd_version: ['active'] vmm: ['dragonball', 'cloud-hypervisor', 'qemu-runtime-rs'] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.vmm}}-${{ matrix.containerd_version}} + cancel-in-progress: true # TODO: enable me when https://github.com/containerd/containerd/issues/11640 is fixed if: false runs-on: ubuntu-22.04 @@ -89,6 +96,9 @@ jobs: matrix: containerd_version: ['lts', 'active'] vmm: ['clh', 'cloud-hypervisor', 'dragonball', 'qemu', 'qemu-runtime-rs'] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.vmm}}-${{ matrix.containerd_version}} + cancel-in-progress: true runs-on: ubuntu-22.04 env: CONTAINERD_VERSION: ${{ matrix.containerd_version }} @@ -135,6 +145,9 @@ jobs: matrix: containerd_version: ['lts', 'active'] vmm: ['clh', 'qemu', 'dragonball', 'qemu-runtime-rs'] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.vmm}}-${{ matrix.containerd_version}} + cancel-in-progress: true runs-on: ubuntu-22.04 env: CONTAINERD_VERSION: ${{ matrix.containerd_version }} @@ -188,6 +201,9 @@ jobs: vmm: - clh # cloud-hypervisor - qemu + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.vmm}} + cancel-in-progress: true # TODO: enable me when https://github.com/kata-containers/kata-containers/issues/9763 is fixed # TODO: Transition to free runner (see #9940). if: false @@ -233,6 +249,9 @@ jobs: vmm: - clh - qemu + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.vmm}} + cancel-in-progress: true # TODO: enable with clh when https://github.com/kata-containers/kata-containers/issues/9764 is fixed # TODO: enable with qemu when https://github.com/kata-containers/kata-containers/issues/9851 is fixed # TODO: Transition to free runner (see #9940). @@ -283,6 +302,9 @@ jobs: - qemu - cloud-hypervisor - qemu-runtime-rs + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-amd64-${{ matrix.vmm}} + cancel-in-progress: true runs-on: ubuntu-22.04 env: KATA_HYPERVISOR: ${{ matrix.vmm }} diff --git a/.github/workflows/basic-ci-s390x.yaml b/.github/workflows/basic-ci-s390x.yaml index 11362c63bd..538b488b18 100644 --- a/.github/workflows/basic-ci-s390x.yaml +++ b/.github/workflows/basic-ci-s390x.yaml @@ -26,6 +26,9 @@ jobs: matrix: containerd_version: ['active'] vmm: ['qemu-runtime-rs'] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-s390x-${{ matrix.vmm}}-${{ matrix.containerd_version}} + cancel-in-progress: true # TODO: enable me when https://github.com/containerd/containerd/issues/11640 is fixed if: false runs-on: s390x-large @@ -89,6 +92,9 @@ jobs: matrix: containerd_version: ['lts', 'active'] vmm: ['qemu'] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-s390x-${{ matrix.vmm}}-${{ matrix.containerd_version}} + cancel-in-progress: true runs-on: s390x-large env: CONTAINERD_VERSION: ${{ matrix.containerd_version }} diff --git a/.github/workflows/build-checks-preview-riscv64.yaml b/.github/workflows/build-checks-preview-riscv64.yaml index e1065421cd..fded6de60c 100644 --- a/.github/workflows/build-checks-preview-riscv64.yaml +++ b/.github/workflows/build-checks-preview-riscv64.yaml @@ -63,7 +63,9 @@ jobs: path: src/runtime-rs needs: - rust - + concurrency: + 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 run: | diff --git a/.github/workflows/build-kubectl-image.yaml b/.github/workflows/build-kubectl-image.yaml index f685d552b5..69417951b8 100644 --- a/.github/workflows/build-kubectl-image.yaml +++ b/.github/workflows/build-kubectl-image.yaml @@ -15,6 +15,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: REGISTRY: quay.io IMAGE_NAME: kata-containers/kubectl diff --git a/.github/workflows/ci-nightly-s390x.yaml b/.github/workflows/ci-nightly-s390x.yaml index 4249821827..8504d476ef 100644 --- a/.github/workflows/ci-nightly-s390x.yaml +++ b/.github/workflows/ci-nightly-s390x.yaml @@ -6,6 +6,10 @@ name: Nightly CI for s390x permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: check-internal-test-result: name: check-internal-test-result diff --git a/.github/workflows/ci-weekly.yaml b/.github/workflows/ci-weekly.yaml index 8f72d33a55..d4ca4515cc 100644 --- a/.github/workflows/ci-weekly.yaml +++ b/.github/workflows/ci-weekly.yaml @@ -22,7 +22,7 @@ on: AZ_APPID: required: true AZ_TENANT_ID: - required: true + required: true AZ_SUBSCRIPTION_ID: required: true QUAY_DEPLOYER_PASSWORD: @@ -32,6 +32,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build-kata-static-tarball-amd64: permissions: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d270298ca5..6f610b36ce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,7 +30,7 @@ on: AZ_APPID: required: true AZ_TENANT_ID: - required: true + required: true AZ_SUBSCRIPTION_ID: required: true CI_HKD_PATH: @@ -46,6 +46,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build-kata-static-tarball-amd64: permissions: @@ -443,7 +447,10 @@ jobs: { containerd_version: active, vmm: qemu }, { containerd_version: active, vmm: cloud-hypervisor }, { containerd_version: active, vmm: qemu-runtime-rs }, - ] + ] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.params.vmm }}-${{ matrix.params.containerd_version}} + cancel-in-progress: true uses: ./.github/workflows/run-cri-containerd-tests.yaml with: tarball-suffix: -${{ inputs.tag }} @@ -461,9 +468,12 @@ jobs: fail-fast: false matrix: params: [ - { containerd_version: active, vmm: qemu }, - { containerd_version: active, vmm: qemu-runtime-rs }, - ] + {containerd_version: active, vmm: qemu}, + {containerd_version: active, vmm: qemu-runtime-rs}, + ] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.params.vmm}}-${{ matrix.params.containerd_version}} + cancel-in-progress: true uses: ./.github/workflows/run-cri-containerd-tests.yaml with: tarball-suffix: -${{ inputs.tag }} @@ -481,8 +491,11 @@ jobs: fail-fast: false matrix: params: [ - { containerd_version: active, vmm: qemu }, - ] + {containerd_version: active, vmm: qemu}, + ] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-cri-tests-${{ matrix.params.vmm}}-${{ matrix.params.containerd_version}} + cancel-in-progress: true uses: ./.github/workflows/run-cri-containerd-tests.yaml with: tarball-suffix: -${{ inputs.tag }} @@ -500,8 +513,11 @@ jobs: fail-fast: false matrix: params: [ - { containerd_version: active, vmm: qemu }, - ] + {containerd_version: active, vmm: qemu}, + ] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.params.vmm}}-${{ matrix.params.containerd_version}} + cancel-in-progress: true uses: ./.github/workflows/run-cri-containerd-tests.yaml with: tarball-suffix: -${{ inputs.tag }} diff --git a/.github/workflows/push-oras-tarball-cache.yaml b/.github/workflows/push-oras-tarball-cache.yaml index 1243f32959..dd56ff7eb4 100644 --- a/.github/workflows/push-oras-tarball-cache.yaml +++ b/.github/workflows/push-oras-tarball-cache.yaml @@ -12,6 +12,10 @@ on: permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: push-oras-cache: name: push-oras-cache