From 6fcf631e731b8bf359265aa9fa358edbd0635fa6 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Sat, 20 Sep 2025 14:19:07 +0100 Subject: [PATCH 1/2] Add `concurrency` settings to PR checks --- .github/workflows/__all-platform-bundle.yml | 3 +++ .github/workflows/__analyze-ref-input.yml | 3 +++ .github/workflows/__autobuild-action.yml | 3 +++ .../__autobuild-direct-tracing-with-working-dir.yml | 3 +++ .github/workflows/__autobuild-direct-tracing.yml | 3 +++ .github/workflows/__build-mode-autobuild.yml | 3 +++ .github/workflows/__build-mode-manual.yml | 3 +++ .github/workflows/__build-mode-none.yml | 3 +++ .github/workflows/__build-mode-rollback.yml | 3 +++ .github/workflows/__bundle-toolcache.yml | 3 +++ .github/workflows/__bundle-zstd.yml | 3 +++ .github/workflows/__cleanup-db-cluster-dir.yml | 3 +++ .github/workflows/__config-export.yml | 3 +++ .github/workflows/__config-input.yml | 3 +++ .github/workflows/__cpp-deptrace-disabled.yml | 3 +++ .github/workflows/__cpp-deptrace-enabled-on-macos.yml | 3 +++ .github/workflows/__cpp-deptrace-enabled.yml | 3 +++ .github/workflows/__diagnostics-export.yml | 3 +++ .../workflows/__export-file-baseline-information.yml | 3 +++ .github/workflows/__extractor-ram-threads.yml | 3 +++ .github/workflows/__go-custom-queries.yml | 3 +++ .../__go-indirect-tracing-workaround-diagnostic.yml | 3 +++ ...go-indirect-tracing-workaround-no-file-program.yml | 3 +++ .../workflows/__go-indirect-tracing-workaround.yml | 3 +++ .github/workflows/__go-tracing-autobuilder.yml | 3 +++ .github/workflows/__go-tracing-custom-build-steps.yml | 3 +++ .github/workflows/__go-tracing-legacy-workflow.yml | 3 +++ .github/workflows/__init-with-registries.yml | 3 +++ .github/workflows/__javascript-source-root.yml | 3 +++ .github/workflows/__job-run-uuid-sarif.yml | 3 +++ .github/workflows/__language-aliases.yml | 3 +++ .github/workflows/__multi-language-autodetect.yml | 3 +++ .github/workflows/__overlay-init-fallback.yml | 3 +++ .../__packaging-codescanning-config-inputs-js.yml | 3 +++ .github/workflows/__packaging-config-inputs-js.yml | 3 +++ .github/workflows/__packaging-config-js.yml | 3 +++ .github/workflows/__packaging-inputs-js.yml | 3 +++ .github/workflows/__quality-queries.yml | 3 +++ .github/workflows/__remote-config.yml | 3 +++ .github/workflows/__resolve-environment-action.yml | 3 +++ .github/workflows/__rubocop-multi-language.yml | 3 +++ .github/workflows/__ruby.yml | 3 +++ .github/workflows/__rust.yml | 3 +++ .github/workflows/__split-workflow.yml | 3 +++ .github/workflows/__start-proxy.yml | 3 +++ .github/workflows/__submit-sarif-failure.yml | 3 +++ .github/workflows/__swift-autobuild.yml | 3 +++ .github/workflows/__swift-custom-build.yml | 3 +++ .github/workflows/__test-autobuild-working-dir.yml | 3 +++ .github/workflows/__test-local-codeql.yml | 3 +++ .github/workflows/__test-proxy.yml | 3 +++ .github/workflows/__unset-environment.yml | 3 +++ .github/workflows/__upload-quality-sarif.yml | 3 +++ .github/workflows/__upload-ref-sha-input.yml | 3 +++ .github/workflows/__with-checkout-path.yml | 3 +++ pr-checks/sync.py | 11 +++++++++++ 56 files changed, 176 insertions(+) diff --git a/.github/workflows/__all-platform-bundle.yml b/.github/workflows/__all-platform-bundle.yml index 6715b0f771..40d6d81c98 100644 --- a/.github/workflows/__all-platform-bundle.yml +++ b/.github/workflows/__all-platform-bundle.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: all-platform-bundle: strategy: diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index c7fb30b0f2..f2f9f45a58 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: analyze-ref-input: strategy: diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index 2e70fb8539..c623ca25f1 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: autobuild-action: strategy: diff --git a/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml b/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml index cc5af81562..a0e3d66440 100644 --- a/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml +++ b/.github/workflows/__autobuild-direct-tracing-with-working-dir.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: autobuild-direct-tracing-with-working-dir: strategy: diff --git a/.github/workflows/__autobuild-direct-tracing.yml b/.github/workflows/__autobuild-direct-tracing.yml index 76b4f39064..aed873e573 100644 --- a/.github/workflows/__autobuild-direct-tracing.yml +++ b/.github/workflows/__autobuild-direct-tracing.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: autobuild-direct-tracing: strategy: diff --git a/.github/workflows/__build-mode-autobuild.yml b/.github/workflows/__build-mode-autobuild.yml index 5253c4bf5c..e24c170cfa 100644 --- a/.github/workflows/__build-mode-autobuild.yml +++ b/.github/workflows/__build-mode-autobuild.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: build-mode-autobuild: strategy: diff --git a/.github/workflows/__build-mode-manual.yml b/.github/workflows/__build-mode-manual.yml index 82256f969a..7e1c8a7edd 100644 --- a/.github/workflows/__build-mode-manual.yml +++ b/.github/workflows/__build-mode-manual.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: build-mode-manual: strategy: diff --git a/.github/workflows/__build-mode-none.yml b/.github/workflows/__build-mode-none.yml index d079cc7641..98f3a2d31f 100644 --- a/.github/workflows/__build-mode-none.yml +++ b/.github/workflows/__build-mode-none.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: build-mode-none: strategy: diff --git a/.github/workflows/__build-mode-rollback.yml b/.github/workflows/__build-mode-rollback.yml index 3fc7530cc9..64b45fade6 100644 --- a/.github/workflows/__build-mode-rollback.yml +++ b/.github/workflows/__build-mode-rollback.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: build-mode-rollback: strategy: diff --git a/.github/workflows/__bundle-toolcache.yml b/.github/workflows/__bundle-toolcache.yml index dcb1a9d478..687a29b023 100644 --- a/.github/workflows/__bundle-toolcache.yml +++ b/.github/workflows/__bundle-toolcache.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: bundle-toolcache: strategy: diff --git a/.github/workflows/__bundle-zstd.yml b/.github/workflows/__bundle-zstd.yml index 1c10f26128..b481ea4244 100644 --- a/.github/workflows/__bundle-zstd.yml +++ b/.github/workflows/__bundle-zstd.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: bundle-zstd: strategy: diff --git a/.github/workflows/__cleanup-db-cluster-dir.yml b/.github/workflows/__cleanup-db-cluster-dir.yml index 1b7564c74a..6bd5f79b6e 100644 --- a/.github/workflows/__cleanup-db-cluster-dir.yml +++ b/.github/workflows/__cleanup-db-cluster-dir.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: cleanup-db-cluster-dir: strategy: diff --git a/.github/workflows/__config-export.yml b/.github/workflows/__config-export.yml index f43d1c6a4f..85118c3fad 100644 --- a/.github/workflows/__config-export.yml +++ b/.github/workflows/__config-export.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: config-export: strategy: diff --git a/.github/workflows/__config-input.yml b/.github/workflows/__config-input.yml index 0cd73d0d8d..09909e3531 100644 --- a/.github/workflows/__config-input.yml +++ b/.github/workflows/__config-input.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: config-input: strategy: diff --git a/.github/workflows/__cpp-deptrace-disabled.yml b/.github/workflows/__cpp-deptrace-disabled.yml index 0c3f203c48..92a7635adb 100644 --- a/.github/workflows/__cpp-deptrace-disabled.yml +++ b/.github/workflows/__cpp-deptrace-disabled.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: cpp-deptrace-disabled: strategy: diff --git a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml index 161d4d4e05..1852b43059 100644 --- a/.github/workflows/__cpp-deptrace-enabled-on-macos.yml +++ b/.github/workflows/__cpp-deptrace-enabled-on-macos.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: cpp-deptrace-enabled-on-macos: strategy: diff --git a/.github/workflows/__cpp-deptrace-enabled.yml b/.github/workflows/__cpp-deptrace-enabled.yml index f4526f9a15..88a79b6a74 100644 --- a/.github/workflows/__cpp-deptrace-enabled.yml +++ b/.github/workflows/__cpp-deptrace-enabled.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: cpp-deptrace-enabled: strategy: diff --git a/.github/workflows/__diagnostics-export.yml b/.github/workflows/__diagnostics-export.yml index e89c5ce831..1b8618798c 100644 --- a/.github/workflows/__diagnostics-export.yml +++ b/.github/workflows/__diagnostics-export.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: diagnostics-export: strategy: diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index 6dd51c3e22..72cbf23d7e 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: export-file-baseline-information: strategy: diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index 486b1cc6a8..df05dff46a 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: extractor-ram-threads: strategy: diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index 9f815b237f..d73ac3a62c 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: go-custom-queries: strategy: diff --git a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml index 2208a9590d..9398fedca6 100644 --- a/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml +++ b/.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: go-indirect-tracing-workaround-diagnostic: strategy: diff --git a/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml b/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml index 63772b5ddc..dbb22383e3 100644 --- a/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml +++ b/.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: go-indirect-tracing-workaround-no-file-program: strategy: diff --git a/.github/workflows/__go-indirect-tracing-workaround.yml b/.github/workflows/__go-indirect-tracing-workaround.yml index c702b83354..830e28a9cc 100644 --- a/.github/workflows/__go-indirect-tracing-workaround.yml +++ b/.github/workflows/__go-indirect-tracing-workaround.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: go-indirect-tracing-workaround: strategy: diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index 3159b86e4c..24f72b896c 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: go-tracing-autobuilder: strategy: diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index 1e7253fe0d..e2812b92df 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: go-tracing-custom-build-steps: strategy: diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index 463e2c680b..e8294697d0 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: go-tracing-legacy-workflow: strategy: diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index d8bc2dc090..f570a05e0f 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: init-with-registries: strategy: diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index 873e068448..f0e66bf322 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: javascript-source-root: strategy: diff --git a/.github/workflows/__job-run-uuid-sarif.yml b/.github/workflows/__job-run-uuid-sarif.yml index 410c73f8fd..50539d5e91 100644 --- a/.github/workflows/__job-run-uuid-sarif.yml +++ b/.github/workflows/__job-run-uuid-sarif.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: job-run-uuid-sarif: strategy: diff --git a/.github/workflows/__language-aliases.yml b/.github/workflows/__language-aliases.yml index 8ed3897a21..99db1af543 100644 --- a/.github/workflows/__language-aliases.yml +++ b/.github/workflows/__language-aliases.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: language-aliases: strategy: diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 9fe00c6095..4d16b5fe31 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: multi-language-autodetect: strategy: diff --git a/.github/workflows/__overlay-init-fallback.yml b/.github/workflows/__overlay-init-fallback.yml index ffaa6c5f8e..c1fdaaf0ac 100644 --- a/.github/workflows/__overlay-init-fallback.yml +++ b/.github/workflows/__overlay-init-fallback.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: overlay-init-fallback: strategy: diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index f237529479..0d7d4cf9ed 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: packaging-codescanning-config-inputs-js: strategy: diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 3f50849c86..7067a4d734 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: packaging-config-inputs-js: strategy: diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 79ec372226..d6bd2cf7d4 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: packaging-config-js: strategy: diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index ea7da1aabe..03a81db686 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: packaging-inputs-js: strategy: diff --git a/.github/workflows/__quality-queries.yml b/.github/workflows/__quality-queries.yml index 53e1974360..50f24c61ef 100644 --- a/.github/workflows/__quality-queries.yml +++ b/.github/workflows/__quality-queries.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: quality-queries: strategy: diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index d83f4d43d9..39a4a06232 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: remote-config: strategy: diff --git a/.github/workflows/__resolve-environment-action.yml b/.github/workflows/__resolve-environment-action.yml index 4df9f29d6f..f7ca252762 100644 --- a/.github/workflows/__resolve-environment-action.yml +++ b/.github/workflows/__resolve-environment-action.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: resolve-environment-action: strategy: diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index 7e2fa6474e..2ab2b5616c 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: rubocop-multi-language: strategy: diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index 27a166b6a5..be9fac76ee 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: ruby: strategy: diff --git a/.github/workflows/__rust.yml b/.github/workflows/__rust.yml index da7d73a173..c1254ba2ce 100644 --- a/.github/workflows/__rust.yml +++ b/.github/workflows/__rust.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: rust: strategy: diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index 841e6b946f..8947019787 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: split-workflow: strategy: diff --git a/.github/workflows/__start-proxy.yml b/.github/workflows/__start-proxy.yml index 52a5816142..b42dd061a9 100644 --- a/.github/workflows/__start-proxy.yml +++ b/.github/workflows/__start-proxy.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: start-proxy: strategy: diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index d6547821c5..3bd3e71cfa 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: submit-sarif-failure: strategy: diff --git a/.github/workflows/__swift-autobuild.yml b/.github/workflows/__swift-autobuild.yml index 116ae58375..00a47fb546 100644 --- a/.github/workflows/__swift-autobuild.yml +++ b/.github/workflows/__swift-autobuild.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: swift-autobuild: strategy: diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index a5b67baebb..72482eb4f2 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: swift-custom-build: strategy: diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index c2c230f860..853836cbe9 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: test-autobuild-working-dir: strategy: diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index f4d46ad3fa..116e6dd0e9 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: test-local-codeql: strategy: diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index 9420ed1444..92f3330591 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -27,6 +27,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: test-proxy: strategy: diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index 5d4ba448c0..cf40679b10 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: unset-environment: strategy: diff --git a/.github/workflows/__upload-quality-sarif.yml b/.github/workflows/__upload-quality-sarif.yml index e2a2701489..90a1c9ef12 100644 --- a/.github/workflows/__upload-quality-sarif.yml +++ b/.github/workflows/__upload-quality-sarif.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: upload-quality-sarif: strategy: diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index 67c54bf068..41036c61a2 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: upload-ref-sha-input: strategy: diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index d2fd539c6f..ea694d7c6f 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -37,6 +37,9 @@ on: defaults: run: shell: bash +concurrency: + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.ref }} jobs: with-checkout-path: strategy: diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 9ca49fefa5..83bc27eddf 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -269,6 +269,17 @@ def writeHeader(checkStream): 'shell': 'bash', }, }, + 'concurrency': { + # Cancel in-progress workflows in the same 'group' for pull_request events, + # but other event types. This should have the effect that workflows on PRs + # get cancelled if there is a newer workflow in the same concurrency group. + # For other events, the new workflows should wait until earlier ones have finished. + # This should help reduce the number of concurrent workflows on the repo, and + # consequently the number of concurrent API requests. + 'cancel-in-progress': "${{ github.event_name == 'pull_request' }}", + # The group is determined by the workflow name + the ref + 'group': "${{ github.workflow }}-${{ github.ref }}" + }, 'jobs': { checkName: checkJob } From 2d8d6395ef9219dd6a9646ecd3681d1a65caf094 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Sat, 20 Sep 2025 14:23:28 +0100 Subject: [PATCH 2/2] Add missing "not" in comment --- pr-checks/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 83bc27eddf..206519cc46 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -271,7 +271,7 @@ def writeHeader(checkStream): }, 'concurrency': { # Cancel in-progress workflows in the same 'group' for pull_request events, - # but other event types. This should have the effect that workflows on PRs + # but not other event types. This should have the effect that workflows on PRs # get cancelled if there is a newer workflow in the same concurrency group. # For other events, the new workflows should wait until earlier ones have finished. # This should help reduce the number of concurrent workflows on the repo, and