From 33875fde2acf6ffb717915a895638274a6098ec2 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Fri, 22 May 2026 23:30:19 -0500 Subject: [PATCH] ci(infra): serialize integration test shards across runs (#37648) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add job-level `concurrency` to the scheduled integration tests so per-package shards from overlapping workflow dispatches don't hit the same live API credentials at once — e.g. a manually triggered `anthropic` run colliding with the daily `all libs` run. --- .github/workflows/integration_tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 00b01b79b9a..c36f8301409 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -132,6 +132,13 @@ jobs: environment: "Scheduled testing" needs: [compute-matrix] timeout-minutes: 30 + # Serialize same-package shards across workflow runs so a per-package + # manual dispatch doesn't race the scheduled "all libs" run against the + # same live API credentials. Keyed per (working-directory, python-version) + # so the 3.10/3.13 matrix legs within one run still execute in parallel. + concurrency: + group: integration-tests-${{ matrix.working-directory }}-${{ matrix.python-version }} + cancel-in-progress: false strategy: fail-fast: false matrix: