From 62908352e6b85c70bfdf9071adcfda990115c96d Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Mon, 18 May 2026 17:20:04 +0800 Subject: [PATCH 1/9] ci:introduce concurrency in workflows This is based on [valkey-io/valkey#849](https://github.com/valkey-io/valkey/pull/849) Co-authored-by: Yury-Fridlyand --- .github/workflows/ci.yml | 4 ++++ .github/workflows/codecov.yml | 4 ++++ .github/workflows/codeql-analysis.yml | 6 +++++- .github/workflows/coverity.yml | 7 ++++++- .github/workflows/daily.yml | 3 +++ .github/workflows/external.yml | 6 +++++- .github/workflows/reply-schemas-linter.yml | 4 ++++ .github/workflows/spell-check.yml | 4 ++++ 8 files changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53b9b43be3f..79931d18895 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,10 @@ name: CI on: [push, pull_request] +concurrency: + group: ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: test-ubuntu-latest: diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index a5e3ebd015a..b1a27c8f61b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -4,6 +4,10 @@ name: "Codecov" # where each PR needs to be compared against the coverage of the head commit on: [push, pull_request] +concurrency: + group: codecov-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 117161a9cf3..14d15618795 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -4,7 +4,11 @@ on: pull_request: schedule: # run weekly new vulnerability was added to the database - - cron: '0 0 * * 0' + - cron: '0 3 * * 0' + +concurrency: + group: clang-${{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: analyze: diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 4c99adb92f7..452be9cbc30 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -3,9 +3,14 @@ name: Coverity Scan on: schedule: # Run once daily, since below 500k LOC can have 21 builds per week, per https://scan.coverity.com/faq#frequency - - cron: '0 0 * * *' + - cron: '0 1 * * *' # Support manual execution workflow_dispatch: + +concurrency: + group: coverity-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: coverity: if: github.repository == 'redis/redis' diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 029ec4530e1..ca9e42728c8 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -28,6 +28,9 @@ on: description: 'git branch or sha to use' default: 'unstable' +concurrency: + group: daily-${{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index 9dd3340aa61..7d47bfe7603 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -4,7 +4,11 @@ on: pull_request: push: schedule: - - cron: '0 0 * * *' + - cron: '0 2 * * *' + +concurrency: + group: external-${{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: test-external-standalone: diff --git a/.github/workflows/reply-schemas-linter.yml b/.github/workflows/reply-schemas-linter.yml index 539e739f386..3017a3b3a77 100644 --- a/.github/workflows/reply-schemas-linter.yml +++ b/.github/workflows/reply-schemas-linter.yml @@ -8,6 +8,10 @@ on: paths: - 'src/commands/*.json' +concurrency: + group: reply-schemas-linter-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: reply-schemas-linter: runs-on: ubuntu-latest diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 48b949b054f..40d15a952f4 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -9,6 +9,10 @@ on: push: pull_request: +concurrency: + group: spellcheck-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: name: Spellcheck From 5514bf132bac04326d777ece09ea60fa7231966d Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Mon, 18 May 2026 18:42:14 +0800 Subject: [PATCH 2/9] rename group --- .github/workflows/codeql-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 14d15618795..153d669f4ab 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -7,7 +7,7 @@ on: - cron: '0 3 * * 0' concurrency: - group: clang-${{ github.head_ref || github.ref }} + group: codeql-${{ github.head_ref || github.ref }} cancel-in-progress: true jobs: From 9c5e6306f6377aed2007201d464fa2e8de8a2e66 Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Tue, 19 May 2026 15:44:31 +0800 Subject: [PATCH 3/9] remove cron changes --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/coverity.yml | 2 +- .github/workflows/external.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 153d669f4ab..23bae504368 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -4,7 +4,7 @@ on: pull_request: schedule: # run weekly new vulnerability was added to the database - - cron: '0 3 * * 0' + - cron: '0 0 * * 0' concurrency: group: codeql-${{ github.head_ref || github.ref }} diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 452be9cbc30..7bcaadcde82 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -3,7 +3,7 @@ name: Coverity Scan on: schedule: # Run once daily, since below 500k LOC can have 21 builds per week, per https://scan.coverity.com/faq#frequency - - cron: '0 1 * * *' + - cron: '0 0 * * *' # Support manual execution workflow_dispatch: diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index 7d47bfe7603..883123c402e 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -4,7 +4,7 @@ on: pull_request: push: schedule: - - cron: '0 2 * * *' + - cron: '0 0 * * *' concurrency: group: external-${{ github.head_ref || github.ref }} From cf210b7c26c11e41c2e28e32f4d820b7ded73f4c Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Tue, 19 May 2026 15:54:17 +0800 Subject: [PATCH 4/9] refine codecov workflow group --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index b1a27c8f61b..1e7527e8bd5 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -5,7 +5,7 @@ name: "Codecov" on: [push, pull_request] concurrency: - group: codecov-${{ github.head_ref || github.ref }} + group: codecov-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true permissions: From be323ed7e1dc05fbb0e08712a9f2c0e24f91995f Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Tue, 19 May 2026 16:17:36 +0800 Subject: [PATCH 5/9] refine daily group name --- .github/workflows/daily.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index ca9e42728c8..52f507731c8 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -29,7 +29,7 @@ on: default: 'unstable' concurrency: - group: daily-${{ github.head_ref || github.ref }} + group: daily-${{ github.event_name }}-${{ github.event.inputs.use_repo || github.repository }}-${{ github.event.inputs.use_git_ref || github.head_ref || github.ref }} cancel-in-progress: true jobs: From 2ffd195b368cbdbdab18430ee8cbbe7593e97286 Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Tue, 19 May 2026 16:52:46 +0800 Subject: [PATCH 6/9] align group names --- .github/workflows/ci.yml | 2 +- .github/workflows/codecov.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/coverity.yml | 2 +- .github/workflows/external.yml | 2 +- .github/workflows/reply-schemas-linter.yml | 2 +- .github/workflows/spell-check.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79931d18895..40b372de4ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] concurrency: - group: ci-${{ github.head_ref || github.ref }} + group: ci-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 1e7527e8bd5..4af287c050b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -5,7 +5,7 @@ name: "Codecov" on: [push, pull_request] concurrency: - group: codecov-${{ github.event.pull_request.number || github.ref }} + group: codecov-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true permissions: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 23bae504368..a79afb0482f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -7,7 +7,7 @@ on: - cron: '0 0 * * 0' concurrency: - group: codeql-${{ github.head_ref || github.ref }} + group: codeql-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 7bcaadcde82..0968db4eb0f 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: concurrency: - group: coverity-${{ github.head_ref || github.ref }} + group: coverity-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index 883123c402e..d5fe790d1d2 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -7,7 +7,7 @@ on: - cron: '0 0 * * *' concurrency: - group: external-${{ github.head_ref || github.ref }} + group: external-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/reply-schemas-linter.yml b/.github/workflows/reply-schemas-linter.yml index 3017a3b3a77..9e27530acfe 100644 --- a/.github/workflows/reply-schemas-linter.yml +++ b/.github/workflows/reply-schemas-linter.yml @@ -9,7 +9,7 @@ on: - 'src/commands/*.json' concurrency: - group: reply-schemas-linter-${{ github.head_ref || github.ref }} + group: reply-schemas-linter-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 40d15a952f4..c17e2572920 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -10,7 +10,7 @@ on: pull_request: concurrency: - group: spellcheck-${{ github.head_ref || github.ref }} + group: spellcheck-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: From ac3c4c45625a966175b078889c2d2e4959d757d3 Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Sat, 23 May 2026 07:47:20 +0800 Subject: [PATCH 7/9] remove concurrency from daily --- .github/workflows/daily.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 52f507731c8..deb3b4fdf95 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -28,10 +28,6 @@ on: description: 'git branch or sha to use' default: 'unstable' -concurrency: - group: daily-${{ github.event_name }}-${{ github.event.inputs.use_repo || github.repository }}-${{ github.event.inputs.use_git_ref || github.head_ref || github.ref }} - cancel-in-progress: true - jobs: test-ubuntu-jemalloc: From c7d252fb52a223609cc516ccc8f70b5f104a797b Mon Sep 17 00:00:00 2001 From: gentcys <10412450+gentcys@users.noreply.github.com> Date: Mon, 25 May 2026 20:42:50 +0800 Subject: [PATCH 8/9] define name concurrency group by github.workflow --- .github/workflows/ci.yml | 2 +- .github/workflows/codecov.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/coverity.yml | 2 +- .github/workflows/daily.yml | 1 - .github/workflows/external.yml | 2 +- .github/workflows/reply-schemas-linter.yml | 2 +- .github/workflows/spell-check.yml | 2 +- 8 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40b372de4ce..92eb4e29621 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] concurrency: - group: ci-${{ github.event.pull_request.number || github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 4af287c050b..cec367b903e 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -5,7 +5,7 @@ name: "Codecov" on: [push, pull_request] concurrency: - group: codecov-${{ github.event.pull_request.number || github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true permissions: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a79afb0482f..f0a12a0a6f4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -7,7 +7,7 @@ on: - cron: '0 0 * * 0' concurrency: - group: codeql-${{ github.event.pull_request.number || github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 0968db4eb0f..3f125ae4d68 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: concurrency: - group: coverity-${{ github.event.pull_request.number || github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index deb3b4fdf95..c0c169569c0 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -27,7 +27,6 @@ on: use_git_ref: description: 'git branch or sha to use' default: 'unstable' - jobs: test-ubuntu-jemalloc: diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index d5fe790d1d2..75501d248ed 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -7,7 +7,7 @@ on: - cron: '0 0 * * *' concurrency: - group: external-${{ github.event.pull_request.number || github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/reply-schemas-linter.yml b/.github/workflows/reply-schemas-linter.yml index 9e27530acfe..9e292927d8c 100644 --- a/.github/workflows/reply-schemas-linter.yml +++ b/.github/workflows/reply-schemas-linter.yml @@ -9,7 +9,7 @@ on: - 'src/commands/*.json' concurrency: - group: reply-schemas-linter-${{ github.event.pull_request.number || github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index c17e2572920..a0efc05d100 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -10,7 +10,7 @@ on: pull_request: concurrency: - group: spellcheck-${{ github.event.pull_request.number || github.head_ref || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }} cancel-in-progress: true jobs: From 43407174f48e89ebcd0be9e65ba96e32413ba290 Mon Sep 17 00:00:00 2001 From: "debing.sun" Date: Mon, 25 May 2026 20:48:55 +0800 Subject: [PATCH 9/9] test --- 1.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 1.txt diff --git a/1.txt b/1.txt new file mode 100644 index 00000000000..e69de29bb2d