Repository navigation
fix(github): Retry the outcome when the owner lookup fails - #4102
Merged
Merged
Conversation
A failed read of the pull request's requester was only logged. Every chip then turned merged while its asks stayed open, and the recorded row kept the reconcile from trying again. Read the owner before the row is written and let the error reach the webhook or reconcile boundary, so the row stays open and the next delivery or reconcile applies the whole outcome. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
approved these changes
Nov 23, 2026
BYK
left a comment
Member
There was a problem hiding this comment.
Would be good to have a general retry system here instead of one single retry.
BYK
enabled auto-merge (squash)
November 23, 2026 16:00
Contributor
Author
|
This keeps retrying, not just once. A failed lookup writes nothing, so the stored row stays open, and every daily reconcile runs the outcome again until it applies. A webhook redelivery applies it too. A general retry system, such as a durable queue with backoff for outcome writes, would be a separate design, so I've left it out of this PR. |
22 tasks done
This branch was successfully 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.
Follow-up to #4096.
When a pull request merged or closed,
applyGitHubPullRequestOutcomeread the Conversation that owns its asks after it wrote the outcome row. If that read failed, the error was only logged. Every linked chip then turnedmergedorclosedwhile the asks stayed open. Because the row was already recorded, neither a redelivery nor the daily reconcile tried again.Now the owner lookup runs before the row is written, and its error is not caught. It reaches the webhook or reconcile boundary like any other unexpected failure. The row stays open, so the next delivery or reconcile applies the whole outcome once: the row, the code index, the opener's chip with its asks, and the other chips. Nothing was written before the failure, so the retry does not apply anything twice.
A failed chip or Inbox item write is still logged and does not stop the work after it, as before.
via @BYK.
--
View Session [Sentry]