Add Git repository as a source type for SourceCrawler - #321
Closed
PuneetPunamiya wants to merge 1 commit into
Closed
Add Git repository as a source type for SourceCrawler#321PuneetPunamiya wants to merge 1 commit into
PuneetPunamiya wants to merge 1 commit into
Conversation
|
Important Review skippedToo many files! This PR contains 650 files, which is 350 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (650)
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Adds support for crawling files from Git repositories alongside existing S3 and Google Drive sources. Uses go-git for in-memory shallow clones with ls-remote polling (single HTTP request every 2 minutes) for change detection. Supports file pattern filtering, path restrictions, and folder ignore lists.
PuneetPunamiya
force-pushed
the
feature/git-source
branch
from
August 11, 2026 04:36
b9f9801 to
cf6f5e0
Compare
concaf
marked this pull request as draft
August 19, 2026 07:49
Contributor
|
🤖 |
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
gitas a new source type alongsides3andgoogleDrivein the SourceCrawlergo-gitfor in-memory shallow clones (depth=1) — no disk footprint, GC handles cleanupgit ls-remote(single HTTP request every 2 min) to detect branch HEAD changes; only clones when HEAD differsfilePatterns(e.g.["*.md"]),paths(e.g.["docs/"]), andignoreFolders(e.g.["vendor", "node_modules"])GIT_TOKENfrom the pipeline secretTest plan
hack/local-git-test.yamlagainst a local Kind cluster with LocalStack.mdfiles from the configured repo appear in the S3 filestore bucketvendor/,node_modules/, and other ignored folders are excludedls-remotepolling skips clone when HEAD is unchanged (check controller logs)GIT_TOKENGIT_TOKENgo test ./pkg/gitclient/...— all unit tests pass