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

[Backport 5.1] Fix: Repo embedding scheduler job routine as internal actor (#55698)#55701

Merged
camdencheek merged 1 commit into
5.1from
cc/backport-55698-to-5.1
Aug 10, 2023
Merged

[Backport 5.1] Fix: Repo embedding scheduler job routine as internal actor (#55698)#55701
camdencheek merged 1 commit into
5.1from
cc/backport-55698-to-5.1

Conversation

@camdencheek

Copy link
Copy Markdown
Member

We received reports of repositories never getting scheduled for embedding jobs despite the filter / pattern preview showing repos that match.

In both cases linked private repos appear to be impacted. After fetching repo ids from GetEmbeddableRepos we then make another fetch for getting the repo names for those repo ids. This read operation is where we appear to end up missing out on some repos because we are not an internal actor and therefore we must have
permissions to the repos that we want Listed. When we aren't authorized for any repos then we end up never scheduling those repos since we never got the repo names.

(cherry picked from commit ef63a4f)

Test plan

@cla-bot cla-bot Bot added the cla-signed label Aug 10, 2023
@camdencheek camdencheek marked this pull request as ready for review August 10, 2023 00:14
@camdencheek camdencheek force-pushed the cc/backport-55698-to-5.1 branch from 49d5432 to 5a72110 Compare August 10, 2023 00:16
@sourcegraph-bot

sourcegraph-bot commented Aug 10, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 26a5c69...cf5fd11.

Notify File(s)
@efritz enterprise/cmd/worker/internal/embeddings/repo/scheduler.go

We received reports in slack of repositories never getting scheduled for
embedding jobs despite the filter / pattern preview showing repos that
match.

In both cases linked private repos appear to be impacted. After fetching
repo ids from GetEmbeddableRepos we then make another fetch for getting
the repo names for those repo ids. This read operation is where we
appear to end up missing out on some repos because we are not an
internal actor and therefore we must have permissions to the repos that
we want Listed. When we aren't authorized for any repos then we end up
never scheduling those repos since we never got the repo names.
@camdencheek camdencheek force-pushed the cc/backport-55698-to-5.1 branch from 5a72110 to cf5fd11 Compare August 10, 2023 00:17
@camdencheek camdencheek enabled auto-merge (squash) August 10, 2023 00:18
@camdencheek camdencheek requested review from a team and gl-srgr August 10, 2023 00:18
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@camdencheek camdencheek merged commit b54f1f4 into 5.1 Aug 10, 2023
@camdencheek camdencheek deleted the cc/backport-55698-to-5.1 branch August 10, 2023 03:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants