feat(stovepipe): add and wire the buildsignal stage controller#409
Open
roychying wants to merge 5 commits into
Open
feat(stovepipe): add and wire the buildsignal stage controller#409roychying wants to merge 5 commits into
roychying wants to merge 5 commits into
Conversation
roychying
requested review from
a team,
behinddwalls and
sbalabanov
as code owners
July 20, 2026 23:24
roychying
force-pushed
the
chenghan.ying/stovepipe-buildsignal-controller
branch
from
July 21, 2026 00:01
7459fe1 to
63562b5
Compare
| if err == nil { | ||
| return got, nil | ||
| } | ||
| if errors.Is(err, storage.ErrNotFound) { |
Collaborator
There was a problem hiding this comment.
same as other PR, why do we need to handle not found?
Contributor
There was a problem hiding this comment.
I've noticed agents tend to add this as a defense against DB replication lag, maybe won't happen much in the real world but feels reasonable to guard against.
Contributor
Author
There was a problem hiding this comment.
it's true. also discussed in build rfc pr: #336 (comment). but it's also making sense to remove it as well.. will do
roychying
force-pushed
the
chenghan.ying/stovepipe-wire-build-step
branch
from
July 21, 2026 22:20
67e6913 to
0ae1569
Compare
roychying
force-pushed
the
chenghan.ying/stovepipe-buildsignal-controller
branch
from
July 21, 2026 22:20
63562b5 to
be3d253
Compare
behinddwalls
approved these changes
Jul 21, 2026
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?
Adds
stovepipe/controller/buildsignalplus the newRecordqueue message/proto andTopicKeyRecord.Processconsumes aBuildSignal(build id), loadsBuild+Request, no-ops if the request is terminal, pollsbuildRunner.Status, persists a real status transition via CAS (BuildStore.Update) with terminal status write-once (a later poll of a flaky backend can never overwrite an already-committed terminal status), and either reschedules itself viaPublishAfter(5s whileaccepted, 2s whilerunning) or, once terminal, publishes torecord. Wires the controller intomain.goand registers thebuildsignal(subscribed) andrecord(publish-only, no consumer yet) topics.Test Plan
make build,make test- all clean.Issue