-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[ci]: cancel previous CI run in case of new commit/push #16624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
Suggestion by the AI bot to group on basis of |
User description
🔗 Related Issues
💥 What does this PR do?
Cancels previous CI run when there is a new commit in the same PR/branch using gh actions concurrency.
This should free up resources and block unnecessary runs.
https://docs.github.com/en/enterprise-cloud@latest/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency
I added this to only those CI which are resource intensive and takes longer to execute.
🔧 Implementation Notes
💡 Additional Considerations
We need to decide if this is safe for every scenario for selenium, as far as I see, it shouldn't cause any issues, if it does we can revert this PR.
🔄 Types of changes
PR Type
Enhancement
Description
Add GitHub Actions concurrency to cancel previous CI runs
Prevents duplicate workflow executions on new commits
Frees up resources by stopping redundant builds
Applied to all language-specific CI workflows
Diagram Walkthrough
File Walkthrough
ci-dotnet.yml
Add concurrency configuration to dotnet CI.github/workflows/ci-dotnet.yml
ci-java.yml
Add concurrency configuration to java CI.github/workflows/ci-java.yml
ci-python.yml
Add concurrency configuration to python CI.github/workflows/ci-python.yml
ci-rbe.yml
Add concurrency configuration to RBE CI.github/workflows/ci-rbe.yml
ci-ruby.yml
Add concurrency configuration to ruby CI.github/workflows/ci-ruby.yml
ci-rust.yml
Add concurrency configuration to rust CI.github/workflows/ci-rust.yml
ci.yml
Add concurrency configuration to main CI.github/workflows/ci.yml