Closed rudymatela closed 2 years ago
c'mon GitHub, I thought you could handle the renaming of branches... apparently not.
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.
@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
Pull request approved for merge and tag by @rudymatela, rebasing now.
Rebased as c3d7e54d61afcb9f1ce94951c8646dcf1fad4c0b, waiting for CI …
@rudymatela Sorry, I could not tag your PR. The previous tag v0.25.6
seems invalid
@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.
... 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.
ProjectState
datatype is now simpler and easier to maintain (before we could risk it being inconsistent);Promoted
to signify that the PR branch is now part ofmaster
, before this was signified by beingIntegrated ... BuildSucceeded
but not being the global candidate.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.