Skip to content

Add concurrency group to java-pr workflow#1526

Merged
copybara-service[bot] merged 3 commits intoGoogleCloudPlatform:mainfrom
manitgupta:manit-concurrency-fix
May 8, 2024
Merged

Add concurrency group to java-pr workflow#1526
copybara-service[bot] merged 3 commits intoGoogleCloudPlatform:mainfrom
manitgupta:manit-concurrency-fix

Conversation

@manitgupta
Copy link
Copy Markdown
Member

Added concurrency so that jobs for a PR belonging to the java-pr-${PR_NUMBER} concurrency group get cancelled when a new execution is requested.

A new execution would be requested when new commits were added to the PR.

Adding the event.number to the concurrency group name will ensure that resource isolation and in-progress job wounding will happen at a per-PR level, and each PR is treated independently.

Reference - https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-and-the-default-behavior

@manitgupta manitgupta changed the title Manit concurrency fix Add concurrency group to java-pr workflow May 7, 2024
@manitgupta manitgupta requested a review from damccorm May 7, 2024 12:18
Co-authored-by: Danny McCormick <dannymccormick@google.com>
@damccorm damccorm added the Google LGTM Approval of a pull request to be merged into the repository label May 7, 2024
@copybara-service copybara-service bot merged commit 21a6384 into GoogleCloudPlatform:main May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Google LGTM Approval of a pull request to be merged into the repository size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants