Files
Robert EscrivaandAI 1cbcaa2147 [CHORE] preload default ONNX model with caching in CI workflows (#7201)
## Description of changes

Add a reusable GitHub Action and Python script to cache and preload
the all-MiniLM-L6-v2 ONNX model before test jobs run. This avoids
redundant downloads across CI runs by leveraging actions/cache with a
SHA256-pinned cache key.

- Add .github/actions/preload-default-onnx-model/action.yaml that
  caches ~/.cache/chroma/onnx_models/all-MiniLM-L6-v2 and runs the
  preload script
- Add bin/ci/preload_default_onnx_model.py with retry logic, SHA256
  verification, and safe tar extraction
- Insert the preload step in _python-tests.yml before every test job
  that depends on the default embedding model
- Insert the preload step in nightly-tests.yml before cluster tests

## Test plan

Visual inspection + CI

## Migration plan

N/A

## Observability plan

N/A

## Documentation Changes

N/A

Co-authored-by: AI
2026-06-03 14:59:39 -07:00
..