feat(stovepipe): coalesce backlog in process controller#324
Open
mnoah1 wants to merge 2 commits into
Open
Conversation
65c5fd6 to
0bb81c6
Compare
6a281c4 to
b27d20c
Compare
0bb81c6 to
686ed39
Compare
fee8ec1 to
5f7ab76
Compare
1a66cd1 to
ee5ac0c
Compare
5f7ab76 to
1cb5649
Compare
ee5ac0c to
c1ee23a
Compare
Compare accepted requests against queue.latest_request_id and mark older heads superseded. Latest heads remain accepted until admit lands in a follow-up PR.
Update process.md to describe coalescing via CompareRequestID and queue.latest_request_id instead of the dropped Sequence field and latest_request_seq pointer. Also align BuildStrategy naming with code.
c1ee23a to
7003035
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This PR begins implementing core logic of the Process controller to supersede older requests as new ones come in.
https://github.com/uber/submitqueue/blob/main/doc/rfc/stovepipe/steps/process.md#process-algorithm
acceptedrequests get compared against the queue's latest request ID valuesuperseded/processing→ ack no-opWhy
Implementing https://github.com/uber/submitqueue/blob/main/doc/rfc/stovepipe/steps/process.md step. Building out logic to accept incoming requests and narrow down builds to only the latest head.
Test plan
//stovepipe/controller/process:go_default_test//stovepipe/controller:go_default_test//test/integration/stovepipe:go_default_test