Repository navigation
Conversation
A push refused for credits is only redone by the next drain, and only new feedback schedules one. At the iteration cap or with PR iteration off, automated feedback scheduled nothing, so the push stayed stranded until a person commented. The trigger now schedules a drain for the redo while still refusing the feedback itself. Also share one helper for scheduling the consume task.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Sentry Snapshot Testing
Base commit |
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.
Problem
When Sentry's push of a PR iteration is refused for credits, the push is only redone by the next queue drain, and only new feedback schedules one.
For automated feedback (CI, bots), the trigger schedules nothing when the run hit the iteration cap or the project has PR iteration off (
automated_iteration_allowed). In that case the push stays stranded after a top-up until a person comments or uses the UI.Instead, we want to override
automated_iteration_allowedif the last iteration has a stranded action (seesentry/src/sentry/seer/autofix/pr_iteration/completion.py
Lines 719 to 720 in 172de7f
automated_iteration_allowedshouldn't block the stranded action retries).This PR
When automated feedback is refused by
automated_iteration_allowedand the run has an unpushed stranded action, the trigger still schedules a drain. The drain redoes the push and leaves the queue alone; the feedback itself is still refused, so the cap handoff and the saved refusal reason are unchanged.Notes
Once the redone push lands, its completion drain re-applies the cap and project checks, so no new iteration runs past the gate.