Skip to content

[CI] Do not cancel concurrent CI jobs on main #221

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

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

henrybear327
Copy link
Collaborator

When we merge a PR into the main branch before the previously merged commit finishes, the CI jobs will be cancelled (see https://github.com/netbox-community/netbox-operator/commits/main/), which is not ideal as we would like to see if all commits merged into the main branch can pass CI checks.

@henrybear327 henrybear327 self-assigned this Jan 27, 2025
@henrybear327 henrybear327 force-pushed the ci/remove-cancel-concurrent-jobs branch from 3be3a90 to e0b8659 Compare February 10, 2025 12:42
When we merge a PR into the main branch before the
previously merged commit finishes, the CI jobs
will be cancelled, which is not ideal as we would
like to see if all commits merged into main can
pass CI checks.
@henrybear327 henrybear327 force-pushed the ci/remove-cancel-concurrent-jobs branch from e0b8659 to f0413c6 Compare February 10, 2025 13:21
@henrybear327 henrybear327 requested a review from bruelea February 10, 2025 14:10
@henrybear327
Copy link
Collaborator Author

Hey team,

Could we have this reviewed and merged when time permits :)

This will reduce the CI failed email bombing when we merge dependabot PRs in quick succession! Thanks

Copy link
Collaborator

@bruelea bruelea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree! Jobs shouldn't be canceled on the main branch. Thanks for implementing it.

@henrybear327 henrybear327 merged commit 100219c into main Feb 12, 2025
8 checks passed
@henrybear327 henrybear327 deleted the ci/remove-cancel-concurrent-jobs branch February 12, 2025 09:08
@henrybear327
Copy link
Collaborator Author

This is somehow not working on main branch. I will fix this in a follow-up PR...

henrybear327 added a commit that referenced this pull request Feb 17, 2025
Our docker images being pushed to the GitHub
registry relies on the CI runs against the main
branch, so we need to ensure that the CI runs
on main branch is always running without any
hiccups.

For some reason, #221
fails to address the cancellation on CI runs
against main branch. Thus, in this PR, a change is
introuduced to revert #160.
henrybear327 added a commit that referenced this pull request Feb 17, 2025
For some reason, #221 fails to address the cancellation on CI runs against main branch.

Our docker images being pushed to the GitHub
registry relies on the CI runs against the main
branch, so we need to ensure that the CI runs on
main branch is always running without any hiccups.
henrybear327 added a commit that referenced this pull request Feb 20, 2025
Revert #160

For some reason, #221 fails to address the cancellation on CI runs against main branch.

Our docker images being pushed to the GitHub
registry relies on the CI runs against the main
branch, so we need to ensure that the CI runs on
main branch is always running without any hiccups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants