From ae9d7c2fd3397831f0a0efc8d3ea1383579b8db0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 7 Aug 2026 15:45:47 +0200 Subject: [PATCH] feat(ci): serialize matrix entries across branches Workspace, instructions and the compose, host and swarm deploy matrices now carry a job-level concurrency group, so one entry at a time runs repository-wide instead of per branch. Job level is required: only there does the matrix context exist. The deploy key joins apps and variant_slug with '#' because both fields contain hyphens themselves and a hyphen would make the pair ambiguous; apps alone is not unique, swarm expands one entry per variant and compose splits large roles into bundles. queue: max lifts the pending slot from one to a hundred, so a third concurrent run queues instead of cancelling the waiting one. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/test-deploy-compose.yml | 5 +++++ .github/workflows/test-deploy-host.yml | 5 +++++ .github/workflows/test-deploy-swarm.yml | 5 +++++ .github/workflows/test-instructions.yml | 4 ++++ .github/workflows/test-workspace.yml | 5 +++++ 5 files changed, 24 insertions(+) diff --git a/.github/workflows/test-deploy-compose.yml b/.github/workflows/test-deploy-compose.yml index 5070848992..c753f4733e 100644 --- a/.github/workflows/test-deploy-compose.yml +++ b/.github/workflows/test-deploy-compose.yml @@ -120,6 +120,11 @@ jobs: timeout-minutes: 355 needs: discover + concurrency: + group: "infinito-deploy-compose-${{ matrix.apps }}#${{ matrix.variant_slug }}" + cancel-in-progress: false + queue: max + strategy: fail-fast: false matrix: diff --git a/.github/workflows/test-deploy-host.yml b/.github/workflows/test-deploy-host.yml index 25a86c7c30..2fa2a91a96 100644 --- a/.github/workflows/test-deploy-host.yml +++ b/.github/workflows/test-deploy-host.yml @@ -126,6 +126,11 @@ jobs: timeout-minutes: 355 needs: discover + concurrency: + group: "infinito-deploy-host-${{ matrix.apps }}#${{ matrix.variant_slug }}" + cancel-in-progress: false + queue: max + strategy: fail-fast: false matrix: diff --git a/.github/workflows/test-deploy-swarm.yml b/.github/workflows/test-deploy-swarm.yml index c83fdb320e..addd091487 100644 --- a/.github/workflows/test-deploy-swarm.yml +++ b/.github/workflows/test-deploy-swarm.yml @@ -150,6 +150,11 @@ jobs: timeout-minutes: 355 needs: discover + concurrency: + group: "infinito-deploy-swarm-${{ matrix.apps }}#${{ matrix.variant_slug }}" + cancel-in-progress: false + queue: max + strategy: fail-fast: false matrix: diff --git a/.github/workflows/test-instructions.yml b/.github/workflows/test-instructions.yml index b58cf90bdf..a230f60057 100644 --- a/.github/workflows/test-instructions.yml +++ b/.github/workflows/test-instructions.yml @@ -53,6 +53,10 @@ jobs: name: 📖 Instructions runs-on: ubuntu-latest timeout-minutes: 345 + concurrency: + group: infinito-instructions + cancel-in-progress: false + queue: max env: INFINITO_IMAGE_TAG: ci-${{ github.sha }} INFINITO_DISTROS: ${{ inputs.distros }} diff --git a/.github/workflows/test-workspace.yml b/.github/workflows/test-workspace.yml index da2a9bf59e..2e1b8531d6 100644 --- a/.github/workflows/test-workspace.yml +++ b/.github/workflows/test-workspace.yml @@ -35,6 +35,11 @@ jobs: timeout-minutes: 345 needs: prepare + concurrency: + group: infinito-workspace-${{ matrix.dev_runtime_image }} + cancel-in-progress: false + queue: max + strategy: fail-fast: false matrix: