Repository navigation
Conversation
roychying
force-pushed
the
chenghan.ying/sq-hook-failure-reason
branch
from
December 1, 2026 17:56
40a7043 to
8eb8ec3
Compare
roychying
force-pushed
the
chenghan.ying/sq-hook-failure-reason
branch
from
December 1, 2026 18:25
8eb8ec3 to
c57ec81
Compare
roychying
marked this pull request as ready for review
December 1, 2026 18:29
roychying
force-pushed
the
chenghan.ying/sq-hook-failure-reason
branch
from
December 2, 2026 22:23
f30a6c7 to
35eb3a4
Compare
… event do not reach hooks
…request.failed events so hooks can show a merge backend's output
roychying
force-pushed
the
chenghan.ying/sq-hook-failure-reason
branch
from
December 2, 2026 22:55
35eb3a4 to
e25cbfd
Compare
This branch has not been deployed
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.
Why?
request.failedsays only that a request failed. A hook reacting to it would have to look up the summary to say why, and hooks run in the orchestrator, which can't read the gateway's store.What?
request.failedpayloads carry the failure, when the summary has it:failure_category: the category from the terminal log's metadata;failure_reason: the summary's reason, cut to 512 runes.hookevent.PayloadKey*constants, so consumers don't repeat string literals.hookeventpackage doc: the payload is what the summary says when the event is published. Details a later copy of the finish fills in keep the same event ID, so they reach hooks only if the queue forgot the first. Since repair resends carry their caller's details (fix(submitqueue): Keep a finished request's reason when its terminal log is resent #1154), this is rare.Test Plan
bazel test //submitqueue/core/hookevent/... //submitqueue/gateway/core/request/....make lint check-gazelle check-mocksIssue