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

Remove experimental indexRepositoryName for rust packages#59176

Merged
eseliger merged 1 commit into
mainfrom
es/remove-crates-indexer
Jan 8, 2024
Merged

Remove experimental indexRepositoryName for rust packages#59176
eseliger merged 1 commit into
mainfrom
es/remove-crates-indexer

Conversation

@eseliger

Copy link
Copy Markdown
Member

Discussed this with Olaf and Thorsten before:
The way this repo is cloned on gitserver is using the API in an illegal way in that it assumes that repos without an entry in the repo table can just be cloned and will stay.

However, gitserver eventually deletes those repos again if there's no DB match for them.

This is blocking making improvements to tracking repositories on disk because it would mean no entry in the DB is found, and never worked reliably for on-prem instances due to the purge worker eliminating untracked repos like this one.

Test plan

Very self-contained change. Relying on CI.

@cla-bot cla-bot Bot added the cla-signed label Dec 21, 2023
@github-actions github-actions Bot added the team/source Tickets under the purview of Source - the one Source to graph it all label Dec 21, 2023
Discussed this with Olaf and Thorsten before:
The way this repo is cloned on gitserver is using the API in an illegal way in that it assumes that repos without an entry in the repo table can just be cloned and will stay.

However, gitserver eventually deletes those repos again if there's no DB match for them.

This is blocking making improvements to tracking repositories on disk because it would mean no entry in the DB is found, and never worked reliably for on-prem instances due to the purge worker eliminating untracked repos like this one.
@eseliger eseliger force-pushed the es/remove-crates-indexer branch from 560dd2a to a36b8e8 Compare December 21, 2023 17:59
@eseliger eseliger marked this pull request as ready for review December 21, 2023 22:15
@eseliger eseliger requested review from a team, Strum355 and olafurpg December 21, 2023 22:15
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 4f6cdb6...a36b8e8.

Notify File(s)
@Strum355 internal/codeintel/dependencies/BUILD.bazel
internal/codeintel/dependencies/init.go
internal/codeintel/dependencies/internal/background/BUILD.bazel
internal/codeintel/dependencies/internal/background/job_cratesyncer.go
internal/codeintel/dependencies/internal/background/job_cratesyncer_test.go

@olafurpg olafurpg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍🏻 Thank you for following up on this!

@eseliger eseliger merged commit 96232da into main Jan 8, 2024
@eseliger eseliger deleted the es/remove-crates-indexer branch January 8, 2024 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants