feat: Add repo indexing job#112136
1 issue
sentry-backend-bugs: Found 1 issue (1 medium)
Medium
bulk_get_project_preferences can raise unhandled SeerApiError - `src/sentry/tasks/seer/context_engine_index.py:259`
The call to bulk_get_project_preferences on line 259 can raise SeerApiError when the Seer API returns a >= 400 status code (see autofix/utils.py lines 741-742). Unlike the existing build_service_map and index_org_project_knowledge tasks which wrap Seer API calls in try/except blocks with proper logging, the index_repos task has no exception handling around this call. If Seer is unavailable or returns an error, the task will fail without useful logging.
Duration: 2m 7s · Tokens: 538.9k in / 7.4k out · Cost: $1.20 (+extraction: $0.00)
Annotations
Check warning on line 259 in src/sentry/tasks/seer/context_engine_index.py
sentry-warden / warden: sentry-backend-bugs
bulk_get_project_preferences can raise unhandled SeerApiError
The call to `bulk_get_project_preferences` on line 259 can raise `SeerApiError` when the Seer API returns a >= 400 status code (see autofix/utils.py lines 741-742). Unlike the existing `build_service_map` and `index_org_project_knowledge` tasks which wrap Seer API calls in try/except blocks with proper logging, the `index_repos` task has no exception handling around this call. If Seer is unavailable or returns an error, the task will fail without useful logging.