Skip to content
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

[CI] Cancel Workflows After a Branch Update #17

Conversation

franziska-wegner
Copy link
Owner

@franziska-wegner franziska-wegner commented Dec 7, 2023

This helps to reduce computational resource consumption and improves the time due to the fact that the resources are not occupied by an old commit. New processes get directly resources instead of waiting in a queue.

An action will be stopped with the message "Canceling since a higher priority waiting request for 'CMake on multiple platforms-refs/pull/18/merge' exists". See the examples in the screenshots.

Screenshot 2023-12-07 at 4 54 15 AM Screenshot 2023-12-07 at 4 55 33 AM

@franziska-wegner franziska-wegner added enhancement New feature or request CI/CD Changes in the CI process labels Dec 7, 2023
@franziska-wegner franziska-wegner self-assigned this Dec 7, 2023
@franziska-wegner franziska-wegner marked this pull request as ready for review December 7, 2023 11:58
@franziska-wegner franziska-wegner enabled auto-merge (squash) December 7, 2023 11:59
@franziska-wegner franziska-wegner merged commit 1fd94e7 into master Dec 7, 2023
12 checks passed
@franziska-wegner franziska-wegner deleted the franziska-wegner/2023/december/CI/cancel-when-branch-update branch December 7, 2023 12:08
github-actions bot added a commit that referenced this pull request Dec 7, 2023
This helps to reduce computational resource consumption and improves the time due to the fact that the resources are not occupied by an old commit. New processes get directly resources instead of waiting in a queue.

* Cancel workflow when update is pushed for `cmake-multi-platform.yml`
* Cancel workflow when update is pushed for `codeql.yml` 1fd94e7
github-actions bot added a commit that referenced this pull request Dec 7, 2023
This helps to reduce computational resource consumption and improves the time due to the fact that the resources are not occupied by an old commit. New processes get directly resources instead of waiting in a queue.

* Cancel workflow when update is pushed for `cmake-multi-platform.yml`
* Cancel workflow when update is pushed for `codeql.yml` 1fd94e7
github-actions bot added a commit that referenced this pull request Dec 7, 2023
This helps to reduce computational resource consumption and improves the time due to the fact that the resources are not occupied by an old commit. New processes get directly resources instead of waiting in a queue.

* Cancel workflow when update is pushed for `cmake-multi-platform.yml`
* Cancel workflow when update is pushed for `codeql.yml` 1fd94e7
github-actions bot added a commit that referenced this pull request Dec 7, 2023
This helps to reduce computational resource consumption and improves the time due to the fact that the resources are not occupied by an old commit. New processes get directly resources instead of waiting in a queue.

* Cancel workflow when update is pushed for `cmake-multi-platform.yml`
* Cancel workflow when update is pushed for `codeql.yml` 1fd94e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Changes in the CI process enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

1 participant