From abb4e0988009e5cc3c5371b56c8ec1f70c4f4960 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Sat, 17 Oct 2026 13:35:10 +0000 Subject: [PATCH] Cancel superseded PR CI runs Add a cancel-in-progress concurrency group, active only for pull_request events, to the PR workflows that lack one. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Sonnet 5.5 Agent-Harness: Claude Code 2.1.302 Agent-Model: claude-sonnet-5-5 Agent-Session: local subagent of the fleet-master session --- .github/workflows/CI.yml | 3 +++ .github/workflows/DependabotAutoMerge.yml | 3 +++ .github/workflows/DocPreviewCleanup.yml | 3 +++ .github/workflows/Documentation.yml | 3 +++ .github/workflows/Downgrade.yml | 3 +++ .github/workflows/RunicSuggestions.yml | 3 +++ .github/workflows/SpellCheck.yml | 3 +++ .github/workflows/benchmark.yml | 3 +++ 8 files changed, 24 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 81697882..064969e5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,6 +6,9 @@ on: push: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/DependabotAutoMerge.yml b/.github/workflows/DependabotAutoMerge.yml index 44b814c7..e24b444d 100644 --- a/.github/workflows/DependabotAutoMerge.yml +++ b/.github/workflows/DependabotAutoMerge.yml @@ -3,6 +3,9 @@ on: pull_request permissions: contents: write pull-requests: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: automerge: uses: "SciML/.github/.github/workflows/dependabot-automerge.yml@v1" diff --git a/.github/workflows/DocPreviewCleanup.yml b/.github/workflows/DocPreviewCleanup.yml index 960a5492..5a9486f2 100644 --- a/.github/workflows/DocPreviewCleanup.yml +++ b/.github/workflows/DocPreviewCleanup.yml @@ -4,6 +4,9 @@ on: types: [closed] permissions: contents: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: cleanup: uses: "SciML/.github/.github/workflows/docs-preview-cleanup.yml@v1" diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 529bc561..01ca23ed 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -7,6 +7,9 @@ on: tags: '*' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 713477d1..e588f5af 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -10,6 +10,9 @@ on: - master paths-ignore: - 'docs/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: downgrade: # Runs strict (the @v1 reusable workflow hardcodes allow_reresolve=false); expected RED until Turing/DynamicPPL is fixed. See https://github.com/SciML/DiffEqBayes.jl/issues/370 diff --git a/.github/workflows/RunicSuggestions.yml b/.github/workflows/RunicSuggestions.yml index 43c07684..50043e7e 100644 --- a/.github/workflows/RunicSuggestions.yml +++ b/.github/workflows/RunicSuggestions.yml @@ -3,6 +3,9 @@ on: pull_request permissions: contents: read pull-requests: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: runic-suggestions: uses: "SciML/.github/.github/workflows/runic-suggestions-on-pr.yml@v1" diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index e408b94c..ff1d82b1 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -2,6 +2,9 @@ name: "Spell Check" on: [pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: typos-check: name: "Spell Check with Typos" diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 084067d7..0753f93c 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -9,6 +9,9 @@ permissions: pull-requests: write contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: benchmark: runs-on: ubuntu-latest