Auto-cancel builds for default branch
under review
E
Emil Ong
Originally asked here: https://discuss.circleci.com/t/auto-cancel-builds-on-default-branch/5536
We would like auto-cancel to apply to the default branch, specifically because we have a deploy action associated with it. The deploy is slow and multiple builds are often racing with each other and we occasionally get an older build that finishes after a newer one, leaving us with older code deployed. (This is only for a staging environment deploy in our case though.)
CCI-I-214
Minjun Seong
Hi folks, I'm a product manager at CircleCI. We have introduced the ability to control serial execution of jobs across your organization (https://circleci.com/docs/guides/orchestrate/controlling-serial-execution-across-your-organization/). We'd love your feedback on whether this addresses your concerns or if there are remaining limitations we should prioritize.
J
Jeff Fairley
Minjun Seong This is a great feature to have and maybe covers OP, but it doesn't address my need. For our default branches, we rerun all tests then release using semantic-release (https://semantic-release.gitbook.io). SR won't create a tag if the commit isn't HEAD, so all those test-run job minutes leading up to the release attempt are wasted effort (and $$) if another commit was already pushed. I would prefer the ongoing job on an old commit be aborted when a new commit comes in.
s
sevket.kahya@hunters.ai
We definitely need these. Because of the slow deployment process we have in master, it may end up with older version to deploy to prod due to race conditions.
Cassandra Stone
Any updates here?
g
github@georgekronberg.com
4 years? More like 6. The initial discussion thread happened in Aug 2016. It's not just a nice-to-have -- it's truly a critical feature, that is somehow still not in the product. If you merge 2 PRs one right after another, the earlier merge can take a few seconds longer to build and ultimately override a later merged build that is already in production.
Liya Ai
under review
Hi Everyone - just a quick update here, we know this is a highly requested feature request and our teams are actively evaluating how to improve this experience. Will post more updates as they come in, thanks!
Peter Sankauskas
4 years and we still have to do this silly work around because you insist on forcing your antiquated conventions on your customers.
D
Dave Sueltenfuss
This is a must have for my project!
Esa Nuurtamo
This is a must have feature!
I think this is a business choice that CircleCi made to make more money… It is ridiculous that I have to pay for these redundant builds for default branch that do not add any value to our testing process!
Liya Ai
Merged in a post:
Auto Cancelling a Redundant Build on Default branch
r
rraivil@caremessage.org
Have the possibility to configure a repository to auto cancel a redundant build on default branch, and not just feature branches.
CCI-I-1245
Y
Yann
You could also implement this workaround > https://discuss.circleci.com/t/auto-cancel-redundant-builds-on-the-default-branch/39468
Load More
→