Skip to content

feat: Add repo indexing job#112136

Merged
shruthilayaj merged 14 commits into
masterfrom
shruthi/feat/add-repo-indexing-job
Apr 7, 2026
Merged

feat: Add repo indexing job#112136
shruthilayaj merged 14 commits into
masterfrom
shruthi/feat/add-repo-indexing-job

tests

f8a59de
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: sentry-backend-bugs completed Apr 7, 2026 in 2m 7s

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

See this annotation in the file changed.

@sentry-warden 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.