Repository navigation
Conversation
roychying
force-pushed
the
chenghan.ying/sq-request-failure-category
branch
from
December 1, 2026 17:56
73662f0 to
c5deca6
Compare
roychying
force-pushed
the
chenghan.ying/sq-request-failure-category
branch
from
December 1, 2026 18:25
c5deca6 to
cd59a61
Compare
roychying
marked this pull request as ready for review
December 1, 2026 18:29
roychying
force-pushed
the
chenghan.ying/sq-request-failure-category
branch
from
December 2, 2026 22:23
cd59a61 to
9e1b5af
Compare
… an internal error and resend a failed conflict check's category
roychying
force-pushed
the
chenghan.ying/sq-request-failure-category
branch
from
December 2, 2026 22:55
9e1b5af to
c0a9331
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?
A request that ends in
errorcarries only a free-text reason. A hook that tells the author what to do next, such as a pull request comment, needs to know the kind of failure: rebase for a conflict, fix the build for a build failure, or just resubmit after an internal error. Parsing the reason text for that would be fragile.What?
entity.FailureCategory:duplicate,validation_rejected,build_failed,land_failed,internal_error, or empty when unknown. A later PR in this stack addsmerge_conflict.failure_categorymetadata key:duplicateandvalidation_rejected;build_failedwhen a live path's build failed. When every live build was cancelled instead, for example by the CI provider, nothing showed the change broken, so it isinternal_errorwith the reason "every viable build was cancelled";land_failedfor any Runway merge failure, conflicts included, until the last PR in this stack splits conflicts out asmerge_conflict. The land-conflict check's repair resend carries the category too;internal_error.failure_categoryattribute), so a batch failure records the same category on each of its requests.failBatch: if a batch already failed but its conclude has not run yet, a dead letter about that batch recordsinternal_erroron its members first, and the conclude that follows only resends. The batch's failure travels only on the conclude message, so the DLQ has nothing better to record.Test Plan
bazel test //submitqueue/entity/... //submitqueue/orchestrator/....make lint check-gazelle check-mocksbuild_failed, a second submission of a pull request already in flight asduplicate, and a scorer error asinternal_error.Issue