Skip to content

feat(autofix): Pin PR iterations to the PR head and retry pushes the branch outran (4/5) - #128704

Draft
joseph-sentry wants to merge 1 commit into
masterfrom
joey--autofix-pr-iteration-pin-to-pr-head
Draft

joseph-sentry wants to merge 1 commit into
masterfrom
joey--autofix-pr-iteration-pin-to-pr-head

Conversation

@joseph-sentry

Copy link
Copy Markdown
Contributor

Stack: 4/5

Behind organizations:autofix-pr-iteration-pin-to-pr-head:

  • PR iteration runs set Seer's pin_to_pr_head option.
  • When an iteration's push is refused with branch_moved for any repo, Sentry runs another turn of the same iteration instead of ending it. That turn starts on the PR's latest head and re-applies Seer's edits there. Retries are subject to the automated-iteration setting and cap, and other push errors are not retried.

Requires the Seer stack to be deployed first: getsentry/seer#9027, getsentry/seer#9035, getsentry/seer#9036.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 23, 2026
Comment thread src/sentry/seer/autofix/pr_iteration/completion.py
@joseph-sentry
joseph-sentry added this pull request to stack #128710 October 23, 2026 21:33
…branch outran

Behind organizations:autofix-pr-iteration-pin-to-pr-head, PR iteration runs ask Seer to pin each repo to its PR head at turn start. When a push is refused because the branch moved past the code Seer edited, run another turn of the same iteration, which starts on the latest head, instead of ending the iteration.
@joseph-sentry
joseph-sentry force-pushed the joey--autofix-pr-iteration-pin-to-pr-head branch from 9c69fc0 to 6fa9cf2 Compare October 23, 2026 21:35

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