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

[WIP] Automatically cancel old PR end to end builds when a new one is triggered #148

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Kami
Copy link
Member

@Kami Kami commented May 20, 2019

This pull request updates st2_pkg_e2e_test.meta action / workflow to cancel any existing old builds for a particular PR before starting a new one.

This is similar to Travis and Circle CI behavior of auto canceling of old builds when a new build is triggered by pushing changes to a branch. This allows us to speed things up and save resources and utilization on CICD.

To logic to determine old builds is simple - we check Circle CI build number and if that one is < current build number, then we mark that build as old and cancel it.

TODO

  • To ensure there are no stray resources left, we should update cancel action so it also triggers a new cleanup execution (st2ci.st2_pkg_e2e_test_cleanup) for a particular build. That action is idempotent so if it fails we can simply ignore it.

builds for a particular PR before starting a new build.

This way we speed things up and save some resources when multiple
commits are pushed to a branch in a short time frame which results in
multiple e2e builds.
@Kami Kami requested review from blag and m4dcoder May 20, 2019 09:59
@CLAassistant
Copy link

CLAassistant commented May 11, 2022

CLA assistant check
All committers have signed the CLA.

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