Skip to content

Conversation

antonsviridov-src
Copy link
Contributor

Also uses streaming parser to infer metdata about index, to avoid loading the whole thing in memory

Test plan

  • Added a test for indexer name/version inference
  • Removed all LSIF tests
  • There are no other tests 😅

@antonsviridov-src antonsviridov-src requested a review from a team as a code owner February 21, 2025 09:52
Copy link
Contributor

@bahrmichael bahrmichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines -65 to -74
// Make 'upload' available under 'src lsif' for backwards compatibility.
lsifCommands = append(lsifCommands, &command{
flagSet: codeintelUploadFlagSet,
handler: handleCodeIntelUpload,
usageFunc: func() {
fmt.Fprintf(flag.CommandLine.Output(), "Usage of 'src lsif %s':\n", codeintelUploadFlagSet.Name())
codeintelUploadFlagSet.PrintDefaults()
fmt.Println(usage)
},
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to look into how src-cli docs are generated for the docs.sourcegraph.com page and regenerate those.

I found multiple copies of the file, one in the monorepo and one in the docs repo.

https://sourcegraph.sourcegraph.com/search?q=file:cli/references/code-intel/upload&patternType=keyword&sm=0

Not sure which is the source of truth.

@antonsviridov-src antonsviridov-src merged commit 98d8cd4 into main Feb 21, 2025
8 checks passed
@antonsviridov-src antonsviridov-src deleted the antonsviridov-graph-1111-remove-lsif-scip-conversion-from-src-cli branch February 21, 2025 14:53
trly pushed a commit that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants