Skip to content

fix(seer): Redo a stranded PR iteration push past the automated gate - #133344

Draft
srest2021 wants to merge 1 commit into
masterfrom
srest2021/pr-iteration-redo-stranded-push-at-cap
Draft

srest2021 wants to merge 1 commit into
masterfrom
srest2021/pr-iteration-redo-stranded-push-at-cap

Conversation

@srest2021

@srest2021 srest2021 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

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_allowed if the last iteration has a stranded action (see

A retry is not a new iteration: it finishes the one it retries on the PR's latest commit, so
the iteration gates (the project toggle, the automated caps) don't apply. Only
-- automated_iteration_allowed shouldn't block the stranded action retries).

This PR

When automated feedback is refused by automated_iteration_allowed and 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.

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.
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
scraps Ignored Ignored Dec 3, 2026 1:30am UTC

Request Review

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 3, 2026
@sentry

sentry Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
- - - - - - ✅ 1164 uploaded

Base commit 0aa17bb54e5c8b2ed81d0f2272f68d2bcddf7c78 did not produce snapshots to compare against. Did its snapshot job fail? Try rebasing this branch on a commit with a successful snapshot job.

⚙️ sentry-frontend Snapshot Settings

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant