fix(run-engine): don't mislabel DB errors as UnclassifiableWaitpointId in completeWaitpoint - #8
Open
anurag6569201 wants to merge 1 commit into
Conversation
…d in completeWaitpoint Source PR: triggerdotdev#4259 Source head: d793ed5
✅ Shipwright · ApproveRecommendation: approve PR #8 · Tier
Findings (3)
Fireworks usage: 8,192 input · 427 output · 8,619 total tokens · $0.0021 · 10s · 0 fix iteration(s) Open the Shipwright check for full evidence and the audit bundle. Use |
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.
Summary
The waitpoint completion path wrapped every error from the store-resolution step (
runStore.forWaitpointCompletion) asUnclassifiableWaitpointId. That step probes the database to find the owning store, so a transient connection failure surfaced as a misleading "unclassifiable waitpointId" error, hiding the real cause and losing the underlying error's type, retryability and grouping. During a brief database failover this mislabel sent an incident investigation down a false trail before the real connection error was found underneath.Fix
The catch is narrowed: only a genuine
UnclassifiableRunId(the documented classification-failure signal fromRunStore.forWaitpointCompletion) becomesUnclassifiableWaitpointId. Every other error, including database connectivity failures, is rethrown unchanged.With the default classifier this also turns
UnclassifiableWaitpointIdinto a clean signal: it no longer fires on infra noise, so any occurrence indicates a real id-routing defect worth alerting on. Recovery does not depend on this change, since lost completion side effects are re-delivered by the finalization guard from #4849; this PR is about diagnosing failures correctly.A hermetic unit test locks both behaviors: a database error bubbles up unchanged, and a classification failure is wrapped with the original error as
cause.Source merge-base:
755feb2b50ad1639730d8d7435143b144ea15303Source head:
d793ed534bc1e6b7424fe3cbaa35779901412691