Skip to content

ref(seer): Remove the monitor cleanup automation - #130849

Draft
trevor-e wants to merge 6 commits into
telkins/seer-workflow-trigger-actionfrom
telkins/remove-seer-monitor-cleanup
Draft

trevor-e wants to merge 6 commits into
telkins/seer-workflow-trigger-actionfrom
telkins/remove-seer-monitor-cleanup

Conversation

@trevor-e

@trevor-e trevor-e commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Monitor cleanup was a test automation and is no longer needed. This removes the seer/monitor_cleanup/ package, its result delivery hook, the POST on the workflow runs endpoint that only started it (the frontend only uses the GET), and the older run helpers in workflows/runs.py that only it called. runs.py is now just SeerWorkflowRunLifecycle.

Stacked on #130846. Left for follow-ups: the duplicate_monitors strategy value, which needs a migration, the organizations:seer-workflows-monitor-cleanup flag registration, and the frontend label for that strategy.

Monitor cleanup was a test automation. Remove it with its result delivery hook, the POST on the workflow runs endpoint that only started it, and the older run helpers in workflows/runs.py that only it called.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 11, 2026
…ve-seer-monitor-cleanup

# Conflicts:
#	src/sentry/seer/endpoints/organization_seer_workflow_runs.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 106d4ec. Configure here.

SeerWorkflowRunExecution,
SeerWorkflowRunExtras,
SeerWorkflowRunStatus,
SeerWorkflowStrategy,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Unused terminal statuses leftover

Low Severity

TERMINAL_STATUSES is now unused after deliver_workflow_result, finish_workflow_run, and get_workflow_run_status were removed. It is not referenced anywhere else in the repo.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 106d4ec. Configure here.

finish_workflow_run,
get_workflow_run_status,
)
from sentry.seer.workflows.schemas import WorkflowResult

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Decorator landed on helper

Low Severity

@override_settings(SENTRY_SELF_HOSTED=False) was on the deleted WorkflowRunTest class and now wraps the admit helper. SeerWorkflowRunLifecycleTest never used that override, so remaining tests now change settings during admission for no reason.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 106d4ec. Configure here.

This branch was successfully deployed

1 active (outdated) deployment
Preview — 3d44a28c Deployed Nov 11, 2026 by vercel[bot]
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