From c88146a2c5913cf5bcb20c240d6baced8e6e5fea Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 20:27:22 +0100 Subject: [PATCH 1/3] AI-3639: let client SDKs CI runs on main finish Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/client-sdks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/client-sdks.yml b/.github/workflows/client-sdks.yml index 4e8fa24c95..fe85df98ec 100644 --- a/.github/workflows/client-sdks.yml +++ b/.github/workflows/client-sdks.yml @@ -257,4 +257,6 @@ jobs: concurrency: group: ci-client-sdks-${{ github.workflow }}-${{ github.head_ref || github.ref_name }} - cancel-in-progress: true + # A run on main is never cancelled: only a finished push run saves the Swift package cache (#2235, + # #2225), and a newer push queues behind it. A pull request run still cancels the one before it. + cancel-in-progress: ${{ github.event_name == 'pull_request' }} From ad0528e5ac6784a7f34bcfc7a14e49594342197b Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 20:31:24 +0100 Subject: [PATCH 2/3] AI-3639: Put the event in the client-sdks concurrency group A pull request from a fork's main must not share main's push group. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/client-sdks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/client-sdks.yml b/.github/workflows/client-sdks.yml index fe85df98ec..461f6a002e 100644 --- a/.github/workflows/client-sdks.yml +++ b/.github/workflows/client-sdks.yml @@ -256,7 +256,8 @@ jobs: key: ${{ steps.packages.outputs.cache-primary-key }} concurrency: - group: ci-client-sdks-${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + # The event is in the key so a pull request from a fork's `main` never joins main's push group. + group: ci-client-sdks-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref_name }} # A run on main is never cancelled: only a finished push run saves the Swift package cache (#2235, # #2225), and a newer push queues behind it. A pull request run still cancels the one before it. cancel-in-progress: ${{ github.event_name == 'pull_request' }} From fe13b24b2ff6ebea195f8acf7714f20db3126d35 Mon Sep 17 00:00:00 2001 From: Kanat Date: Mon, 23 Nov 2026 20:35:31 +0100 Subject: [PATCH 3/3] AI-3639: say a pending main run can still be replaced The comment said a run on main is never cancelled. A pending main run is still replaced by a newer push; only a running one is protected. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/client-sdks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/client-sdks.yml b/.github/workflows/client-sdks.yml index 461f6a002e..8392741816 100644 --- a/.github/workflows/client-sdks.yml +++ b/.github/workflows/client-sdks.yml @@ -258,6 +258,7 @@ jobs: concurrency: # The event is in the key so a pull request from a fork's `main` never joins main's push group. group: ci-client-sdks-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref_name }} - # A run on main is never cancelled: only a finished push run saves the Swift package cache (#2235, - # #2225), and a newer push queues behind it. A pull request run still cancels the one before it. + # A running run on main is not cancelled by a newer push, and a newer push replaces only a pending + # one. Only a finished push run saves the Swift package cache (#2235, #2225). A pull request run + # still cancels the one before it. cancel-in-progress: ${{ github.event_name == 'pull_request' }}