Skip to content

ref(autofix): Cleanup AutofixStep and autofix-in-seer logic - #123865

Merged
rbro112 merged 4 commits into
masterfrom
rbro112/kyiv
Sep 9, 2026
Merged

rbro112 merged 4 commits into
masterfrom
rbro112/kyiv

Conversation

@rbro112

@rbro112 rbro112 commented Sep 9, 2026

Copy link
Copy Markdown
Member

Minor organizational cleanup in anticipation for upcoming seer autofix steps beyond RCA. Moves AutofixStep into its own file and separates new autofix step firing into separate functions to clean up the trigger_autofix_agent code.


Stack created with GitHub Stacks CLIGive Feedback 💬

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 9, 2026
@rbro112
rbro112 added this pull request to stack #123867 September 9, 2026 01:16
Comment thread src/sentry/seer/autofix/rca/__init__.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we even need the rca folder?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plan was to separate by steps to start - stacked PR on this (#123866) might illustrate it better.

The feature impl can be moved out of rca, but at least specific triggering for RCA/solution/code I'd prefer to split to start.

I think once we're all in seer there's going to be a lot of cleanup we can do so I think at that time we can really make things better organized.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to be /feature

return json.dumps(base_shas)


def trigger_autofix_rca_in_seer(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the layering with trigger_autofix_rca_feature feels kind of odd and i'm not a huge fan of the trigger_autofix_rca_in_seer name

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tend to agree but this was just mostly leveraging the existing pattern. I think I'll keep for the time being here, but we can do a bigger cleanup once we're largerly in seer

@rbro112
rbro112 marked this pull request as ready for review September 9, 2026 18:14
@rbro112
rbro112 requested a review from a team as a code owner September 9, 2026 18:14
@rbro112
rbro112 merged commit e7a2057 into master Sep 9, 2026
71 checks passed
@rbro112
rbro112 deleted the rbro112/kyiv branch September 9, 2026 18:37
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.

2 participants