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

Cancel downstream builds if was triggered by GHPRB. #738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eloycoto
Copy link

@eloycoto eloycoto commented Mar 6, 2019

On the situation where a build trigger a new async builds, if any user updates
the PR only one build will be cancel, the upstream one.

When downstreams jobs take a lot to run, the CI is block with builds taht does
not make sense to have running at all.

With this change, each build is validated if the cause is a UpstreamCause and
if it is true, this validates that the parent build was triggered by GHPRB, if
so will be cancel if the PR id match.

  • I didn't found where the CancelOnUpdates is tested, I'm happy to add a test,
    but I would need a bit of help.

  • I'm not sure about adding things to Changelog, the version in Changelog in
    1.41, but releases in Github is 1.42, happy to update also that, but need
    some insights.

On the situation where a build trigger a new async builds, if any user
updates the PR only one build will be cancel, the upstream one.

When downstreams jobs take a lot to run, the CI is block with builds
taht does not make sense to have running at all.

With this change, each build is validated if the cause is a
`UpstreamCause` and if it is true, this validates that the parent build
was triggered by GHPRB, if so will be cancel if the PR id match.

Signed-off-by: Eloy Coto <[email protected]>
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.

1 participant