Skip to content

Commit 6be902a

Browse files
fix(automation): incident responder missing Sentry issues (#125)
Three bugs caused the Incident Responder to find zero issues on every run: 1. The search query used "errors" which the search_issues tool translated into issueCategory:error, filtering out issues categorized as default or frontend. 2. The 15-minute lastSeen window created a race condition with the 15-minute cron interval — one-shot errors had exactly one window to be caught. 3. No deduplication — widening the window without tracking already-triaged issues would cause re-processing on every run. Changed to "unresolved issues first seen in the last 24 hours" and added a GitHub issue lookup step to skip already-triaged Sentry issues. Co-authored-by: Ona <no-reply@ona.com>
1 parent 0deb93b commit 6be902a

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.ona/automations/incident-responder.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ action:
2121
2222
## Check for New Errors
2323
24-
1. Use search_issues to find unresolved errors from the last 15 minutes:
25-
search_issues(organizationSlug, naturalLanguageQuery="unresolved errors from the last 15 minutes")
26-
2. If no new unresolved issues, stop — do nothing.
27-
3. For each new issue, use get_sentry_resource to read the stack trace, breadcrumbs,
28-
and affected URL.
24+
1. Use search_issues to find unresolved issues first seen in the last 24 hours.
25+
IMPORTANT: Use the word "issues" (not "errors") to avoid filtering by issueCategory.
26+
search_issues(organizationSlug="ona-2j", projectSlugOrId="memo",
27+
naturalLanguageQuery="unresolved issues first seen in the last 24 hours",
28+
regionUrl="https://de.sentry.io")
29+
2. If no unresolved issues, stop — do nothing.
30+
3. Check which Sentry issue short IDs (e.g., MEMO-9) already have a corresponding
31+
GitHub issue by searching: github_search_issues(query="Sentry MEMO- in:title", owner="gitpod-io", repo="memo").
32+
Skip any Sentry issue that already has a GitHub issue.
33+
4. For each NEW (un-triaged) issue, use get_sentry_resource to read the stack trace,
34+
breadcrumbs, and affected URL.
2935
3036
## Triage
3137

0 commit comments

Comments
 (0)