Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

codeintel: Make indexer tag/sources configurable in inference#43199

Merged
efritz merged 11 commits intomainfrom
ef/42693
Oct 20, 2022
Merged

codeintel: Make indexer tag/sources configurable in inference#43199
efritz merged 11 commits intomainfrom
ef/42693

Conversation

@efritz
Copy link
Contributor

@efritz efritz commented Oct 19, 2022

This PR adds a way to configure (via site-config) the set of indexers that the inference logic uses without having to override the entire script. Fixes #42693. Fixes #33369.

Test plan

Tested on a local instance.

@efritz efritz added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/language-platform-and-navigation labels Oct 19, 2022
@efritz efritz self-assigned this Oct 19, 2022
@cla-bot cla-bot bot added the cla-signed label Oct 19, 2022
@efritz efritz requested review from cconcannon, cesrjimenez, chrismwendt and varungandhi-src and removed request for cconcannon October 19, 2022 21:27
@efritz efritz marked this pull request as ready for review October 19, 2022 21:28
@efritz
Copy link
Contributor Author

efritz commented Oct 19, 2022

cc @varungandhi-src and @olafurpg I'll update the tags according to the response in this thread before this gets merged.

@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Oct 19, 2022

Codenotify: Notifying subscribers in CODENOTIFY files for diff 0e022bf...8455773.

Notify File(s)
@Strum355 internal/codeintel/autoindexing/internal/inference/lang_clang_test.go
internal/codeintel/autoindexing/internal/inference/lang_go_test.go
internal/codeintel/autoindexing/internal/inference/lang_java_test.go
internal/codeintel/autoindexing/internal/inference/lang_python_test.go
internal/codeintel/autoindexing/internal/inference/lang_rust_test.go
internal/codeintel/autoindexing/internal/inference/lang_typescript_test.go
internal/codeintel/autoindexing/internal/inference/libs.go
internal/codeintel/autoindexing/internal/inference/libs/indexes.go
internal/codeintel/autoindexing/internal/inference/libs/update-shas.sh
internal/codeintel/autoindexing/internal/inference/lua/clang.lua
internal/codeintel/autoindexing/internal/inference/lua/go.lua
internal/codeintel/autoindexing/internal/inference/lua/java.lua
internal/codeintel/autoindexing/internal/inference/lua/python.lua
internal/codeintel/autoindexing/internal/inference/lua/rust.lua
internal/codeintel/autoindexing/internal/inference/lua/typescript.lua
internal/codeintel/autoindexing/internal/inference/service.go

@varungandhi-src
Copy link
Contributor

This doesn't fix https://github.com/sourcegraph/sourcegraph/issues/33369 because versions aren't pinned (there is no specific SHA being specified).

@efritz
Copy link
Contributor Author

efritz commented Oct 19, 2022

@varungandhi-src
Copy link
Contributor

Oh sorry, saw those out-of-order. 😅 Yeah, let me add those tags.

@varungandhi-src
Copy link
Contributor

I think using the latest ones should be OK.

lsif-clang 5ef2334ac9d58f1f947651812aa8d8ba0ed584913f2429cc9952cb25f94976d8
scip-java eb3996bdc8ab3a56600e7d647bc1ef72f3db8cfffc2026550095a0af7bb762bd
lsif-go 253c991fdd8b118afadcfbe6f7a6d03ca91c44fd2860dbe8a9fd69c93c6025f6
lsif-rust 83cb769788987eb52f21a18b62d51ebb67c9436e1b0d2e99904c70fef424f9d1
scip-python 5049c4598d03af542bde5e1254a17fa6d1eb794c1bdd14d0162fb39c604581b4
scip-typescript 4184c6a771037d854e23323db2c8a65947029c93401b696f3b5281fff5c3cbe9

I'm wondering why we have lsif-clang here though -- we don't do auto-indexing for it anyways, right?

@efritz
Copy link
Contributor Author

efritz commented Oct 20, 2022

I'm wondering why we have lsif-clang here though -- we don't do auto-indexing for it anyways, right?

We do provide hints about how auto indexing could look (powers the braindot menu) for a particular repo, but we don't actually provide any to perform. Logic is in the lua script, and it only implements hints.

@efritz
Copy link
Contributor Author

efritz commented Oct 20, 2022

@varungandhi-src Updated!

@eseliger
Copy link
Member

just want to leave a big thanks here that this very recent customer feedback/pain has been addressed so swiftly :)

Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

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

docs please :)

@efritz efritz enabled auto-merge (squash) October 20, 2022 13:52
@efritz efritz merged commit c40f6af into main Oct 20, 2022
@efritz efritz deleted the ef/42693 branch October 20, 2022 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-indexing: Find a way to provide alternative sources for indexers in private registry Use pinned container versions for auto-indexing by default

6 participants