Offline Runtime Dependencies¶
Use this flow to pre-download and cache all native assets needed for Chroma’s default embedding/runtime path, so smoke tests can run without network downloads.
It prepares:
local-shim(chroma-go-localshared library)onnx-runtime(ONNX Runtime shared library)tokenizers(pure-tokenizers shared library)onnx-models/all-MiniLM-L6-v2/onnx(cached model and tokenizer)
Prepare dependencies¶
Optional overrides:
--output-dir--goos(must match the host platform for now)--goarch(must match the host platform for now)--local-shim-version--tokenizers-version--onnx-runtime-version--help
Use¶
The script writes an env helper file at artifacts/runtime-deps/runtime-env.sh.
. artifacts/runtime-deps/runtime-env.sh
RUN_DEFAULT_EF_BOOTSTRAP_SMOKE=1 \
go test -v -count=1 -run '^TestDefaultEF_BootstrapSmoke$' ./pkg/embeddings/default_ef
It can also be executed via Make:
Custom output directory¶
Make targets¶
make offline-runtime-deps: run./scripts/fetch_runtime_deps.shinto$(OFFLINE_RUNTIME_DEPS_DIR)(defaults to./artifacts/runtime-deps).make offline-smoke: prepare deps and runTestDefaultEF_BootstrapSmokeusing the generated env.