feat(seer): Add GitLab orgs to context engine indexing - #119257
Draft
billyvg wants to merge 2 commits into
Draft
Conversation
Member
Author
|
@shruthilayaj since you worked on contextengine, do you see any problems with allowing gitlab repos to be used? |
`get_allowed_org_ids_context_engine_indexing` hardcoded the SCM provider fetch to GitHub and GitHub Enterprise, so GitLab orgs were never candidates for context-engine indexing even when organizations:seer-gitlab-support was enabled. Widen the candidate fetch to include GitLab orgs and gate them per-org on the seer-gitlab-support flag inside the existing eligibility loop (the bulk org-id fetch has no per-org context, unlike get_supported_scm_providers). Orgs also reachable via GitHub are unaffected. Refs CW-1505 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
billyvg
force-pushed
the
billyvong/cw-1505-add-gitlab-orgs-to-context-engine-indexing
branch
from
July 23, 2026 19:59
b6a006a to
94f97e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_allowed_org_ids_context_engine_indexing(insrc/sentry/tasks/seer/context_engine_index.py) hardcoded the SCM provider fetch to[GITHUB, GITHUB_ENTERPRISE], so GitLab orgs were never candidates for context-engine indexing.This adds GitLab to the supported SCM providers so GitLab orgs are indexed on the same footing as GitHub orgs. GitLab support is now generally available, so no per-org feature gate is applied — a GitLab org becomes eligible through the usual Seer eligibility flags (
seer-explorer-index,seat-based-seer-enabled,seer-added), exactly like GitHub.Changes
IntegrationProviderSlug.GITLABto the provider list in the bulk org-id fetch.Test Plan
pytest tests/sentry/tasks/seer/test_context_engine_index.py -k TestGetAllowedOrgIdsContextEngineIndexingmypy src/sentry/tasks/seer/context_engine_index.py→ Success: no issues found.Refs CW-1505
Companion fix for
group_autofix_setup_check.py: #117678🤖 Generated with Claude Code