Skip to content

fix(ci): stop re-downloading the embedding model in memory tests - #619

Merged
jamiepine merged 1 commit into
mainfrom
jamiepine/ci-embedding-cache
Aug 8, 2026
Merged

fix(ci): stop re-downloading the embedding model in memory tests#619
jamiepine merged 1 commit into
mainfrom
jamiepine/ci-embedding-cache

Conversation

@jamiepine

Copy link
Copy Markdown
Member

The memory search tests initialized EmbeddingModel into per-test tempdirs, so every test (and every CI run) downloaded the ONNX model from Hugging Face. That download failed intermittently — it turned #372 and #606 red today on unrelated diffs.

  • all embedding-dependent tests now share one model via shared_test_model() (the pattern maintenance.rs already used), downloading once into a stable cache path
  • CI caches /tmp/spacebot-test-embedding-cache across runs, so a green run seeds every later run and Hugging Face drops out of the hot path

Locally the memory test suite goes from N downloads to one (cached: zero).

The search tests initialized fastembed into per-test tempdirs, so every
run downloaded the ONNX model from Hugging Face — intermittent failures
turned unrelated PRs red twice today. All tests now share one model via
a stable cache path, and CI caches that path across runs.
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d3ef868f-25e5-4d69-9590-09d76882e365

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jamiepine
jamiepine marked this pull request as ready for review August 8, 2026 05:41
@jamiepine
jamiepine merged commit 453e363 into main Aug 8, 2026
4 checks passed
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.

1 participant