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
Option to cancel pending builds if a newer build exists #964
Comments
Related to #961 |
👍 |
This sounds like a lot of complexity to me. I'd propose we have better control about cancelling all running jobs as proposed in other tickets. |
I'd love to have it cancel any pending or running builds of the same branch when a newer commit comes in. |
👍 for this as well. As I wrote in #2505, my use case is more around PRs and rapid fire commits, and my thought on the approach was if a new PR build is added to the queue, then upon being added, it would go out and cancel other pending and running builds for the same PR#. |
👍 I often push several commits at once and would rather have only the most recent commit built. It also shortens the build queue for everybody else, so its a win win situation. |
There is a huge benefit in testing each push and not cancelling a build just because a newer push has come through, and that is you can see which push broke the build. |
I think the use case is primarily for when refs are no longer available due to an amended commit + force push, otherwise you end up with a bunch of error'd builds and a waste of queue time which could be devoted to a build you actually expect/hope to pass. |
@joshk that might be a benefit, but if I have to wait 45 minutes to know if perhaps the latest build fixes the issue it's not all that helpful |
To me, I see two high level use cases that may differ in usage...PRs and the main line branch. One option for each might be flexible enough. |
👍 |
👍 |
👍 |
👍 especially when it is a forced push after an amend / rebase |
👍 |
👍 Dropped $5 on this issue. |
Hello. @grosser has come up with an interim solution https://github.com/grosser/travis_dedup while we work on a long-term fix. Thank you! |
Closing this issue for now, as we have no immediate plans to add this feature. Should we add it to the roadmap eventually, we'll make sure to update this ticket. |
It would be nice to have an option in .travis.yml which says, in effect, "when it's my turn to have a job run, look to see if there is a newer one pending, and run it instead."
This way, if I do rapid-fire commits which create jobs of 123.1, 124.1, and 125.1, when 123.1 gets its shot it cancels 124.1 and replaces itself with 125.1
It might be good to memorize or hash the specific .travis.yml file, and only do this is the file is identical.
I think this will eliminate a lot of needless work on many projects, and hopefully get my jobs to run sooner. :)
The text was updated successfully, but these errors were encountered: