channable / hoff

A gatekeeper for your commits
Apache License 2.0
41 stars 3 forks source link

Merge train: infer candidate from state #131

Closed rudymatela closed 2 years ago

rudymatela commented 2 years ago

... in preparation for #77 (partly closes: #77)

The changes in this PR do not change Hoff behaviour, the high level functionality should be the same.

Instead of maintaining a global candidate, we infer it from the state always. This is in preparation for merge trains (#77), where we will have multiple builds running in parallel and thus multiple candidates.

A linear search on the number of open PRs is imposed. I believe this is not a problem because:

Notes

This is an alternative to PR #130. Here, instead of changing the datatype of integrationCandidate, we simply remove it and try to infer from the rest of the state every time.

rudymatela commented 2 years ago

c'mon GitHub, I thought you could handle the renaming of branches... apparently not.

rudymatela commented 2 years ago

c'mon GitHub, I thought you could handle the renaming of branches... apparently not.

So I tried renaming the branch from junk/merge-train/infer-integration-candidate by removing the junk/ prefix, signifying that this was no longer an experiment. GitHub does not let me do it without opening a new PR. So I'll leave the junk/ prefix then even though it should be not there in spirit.

rudymatela commented 2 years ago

@fatho Thanks for the review.

Since I think I have addressed your comments, I am going to merge and tag now.

I will leave the deploy for later today at around 19:00 (if there are no items in the build queue).

@OpsBotPrime merge and tag

OpsBotPrime commented 2 years ago

Pull request approved for merge and tag by @rudymatela, rebasing now.

OpsBotPrime commented 2 years ago

Rebased as c3d7e54d61afcb9f1ce94951c8646dcf1fad4c0b, waiting for CI …

OpsBotPrime commented 2 years ago

@rudymatela Sorry, I could not tag your PR. The previous tag v0.25.6 seems invalid

rudymatela commented 2 years ago

@rudymatela Sorry, I could not tag your PR. The previous tag v0.25.6 seems invalid

Oohh yes, of course. #117 will make you support it.