Skip to content

feat(seer): Print Explorer URL after night shift trigger script runs#113239

Merged
trevor-e merged 2 commits intomasterfrom
telkins/feat/night-shift-explorer-url
Apr 16, 2026
Merged

feat(seer): Print Explorer URL after night shift trigger script runs#113239
trevor-e merged 2 commits intomasterfrom
telkins/feat/night-shift-explorer-url

Conversation

@trevor-e
Copy link
Copy Markdown
Member

After a night shift run completes, the bin/seer/trigger-night-shift script now prints a clickable Explorer URL so you can jump straight to the triage session for debugging instead of digging through logs for the run ID.

> Running night shift for organization 1...
> Done.
> Explorer run: https://sentry.io/organizations/sentry/issues/?explorerRunId=12345

To support this, run_night_shift_for_org now returns the agent_run_id (int | None). The return value is discarded when the task runs via Celery — only the direct script invocation uses it.

The trigger-night-shift script now outputs a clickable Explorer URL
after a run completes, making it easy to jump straight to the triage
session for debugging. Falls back to printing the raw run ID if the
URL prefix isn't configured.

To support this, run_night_shift_for_org now returns the agent_run_id.
The return value is ignored when dispatched via Celery.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 16, 2026
@trevor-e trevor-e marked this pull request as ready for review April 16, 2026 21:46
@trevor-e trevor-e requested a review from a team as a code owner April 16, 2026 21:46
Bare `return` in `run_night_shift_for_org` (annotated `-> int | None`)
tripped mypy's `[return-value]` check in CI. Make the early exits
explicit with `return None`.

Co-Authored-By: Claude <noreply@anthropic.com>
@trevor-e trevor-e merged commit 6bc1da3 into master Apr 16, 2026
56 checks passed
@trevor-e trevor-e deleted the telkins/feat/night-shift-explorer-url branch April 16, 2026 22:16
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