Skip to content

ref(seer): Drop night shift in-process triage path#117032

Merged
trevor-e merged 1 commit into
masterfrom
telkins/drop-night-shift-in-process-path
Jun 11, 2026
Merged

ref(seer): Drop night shift in-process triage path#117032
trevor-e merged 1 commit into
masterfrom
telkins/drop-night-shift-in-process-path

Conversation

@trevor-e

@trevor-e trevor-e commented Jun 5, 2026

Copy link
Copy Markdown
Member

Night shift now always dispatches issue triage to Seer's feature-run endpoint, which processes candidates and pushes verdicts back via deliver_feature_result (the verdicts then mark skips and fire autofix). The in-process triage path — where Sentry ran the triage agent itself and triggered autofix inline — was kept behind the seer.night_shift.use_feature_delivery option during the cutover and is no longer needed now that feature delivery is the default.

This removes:

  • The seer.night_shift.use_feature_delivery option and the if/else branch in run_night_shift_execution, so dispatch is unconditional.
  • _run_triage_in_process in cron.py.
  • The in-process-only modules: agentic_triage, triage_tools, event_formatter, issue_formatter (and their tests).

The autofix-from-verdicts behavior these tests exercised is already covered by tests/sentry/seer/night_shift/test_delivery.py, so the in-process-specific cases in test_night_shift.py were dropped and the remaining orchestration tests (eligibility, quota, candidate scoring, skip filtering) were re-pointed at the dispatch path.

_run_autofix_for_candidates stays in cron.py — it's still used by the delivery handler.

Night shift now always dispatches triage to Seer's feature-run endpoint,
which pushes verdicts back via deliver_feature_result. The in-process triage
path was gated behind seer.night_shift.use_feature_delivery during the cutover
and is no longer needed once feature delivery is the default.

Remove the option, the _run_triage_in_process branch, and the in-process-only
modules (agentic_triage, triage_tools, event_formatter, issue_formatter) plus
their tests. The autofix-from-verdicts behavior is covered by test_delivery.py.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 5, 2026
@trevor-e trevor-e marked this pull request as ready for review June 11, 2026 20:37
@trevor-e trevor-e requested review from a team as code owners June 11, 2026 20:37
@trevor-e trevor-e merged commit ec705c2 into master Jun 11, 2026
86 checks passed
@trevor-e trevor-e deleted the telkins/drop-night-shift-in-process-path branch June 11, 2026 20:40
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.

3 participants