Add concurrency groups to all PR-triggered workflows (branch_9x)#4319
Merged
janhoy merged 2 commits intoapache:branch_9xfrom Apr 23, 2026
Merged
Add concurrency groups to all PR-triggered workflows (branch_9x)#4319janhoy merged 2 commits intoapache:branch_9xfrom
janhoy merged 2 commits intoapache:branch_9xfrom
Conversation
Add cancel-in-progress concurrency blocks to all 7 GitHub Actions workflows triggered by pull_request. This ensures that when a new commit is pushed to a PR, any already-queued or in-progress runs for that PR are cancelled, avoiding wasted resources and reducing queue delays for new commits.
Replace the run-scoped workspace path (GITHUB_RUN_ID_GITHUB_RUN_NUMBER) with a PR-scoped path (prs/<pr-number>) via a CRAVE_WORKSPACE env var. When cancel-in-progress cancels a run, the cleanup step may not finish, leaving a stale workspace. With a PR-scoped path, the next run's "Destroy previous clone" step will always clean up any leftover resources from a prior run for the same PR, regardless of how it ended. Backport of apache#4318.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This does the same for
branch_9xthat #4318 does for main.Changes
Add a
concurrencyblock to all 7 GitHub Actions workflows that are triggered bypull_request:bin-solr-test.ymldocker-test.ymlgradle-extraction-check.ymlgradle-precommit.ymlsolrj-test.ymltests-via-crave.ymlvalidate-changelog.yml