climate_ref.cli.test_cases.store
#
Native-store commands: ref test-cases sync and ref test-cases check-store.
sync warms the local cache with the native blobs referenced by committed
manifests; check-store preflights the writable store's credentials before a
mint.
check_store(ctx)
#
Check connectivity and credentials for the writable native baseline store.
Builds the writable store from the configuration and preflights it (an authenticated no-op probe) without running any diagnostics or uploading anything. Use this to confirm a mint will work — that the credentials (REF_NATIVE_STORE_PROFILE or the access-key env vars) and the bucket are correct — before a slow mint run.
Examples:
ref test-cases check-store
REF_NATIVE_STORE_PROFILE=my-profile ref test-cases check-store
Source code in packages/climate-ref/src/climate_ref/cli/test_cases/store.py
sync_native(ctx, provider=None, diagnostic=None, test_case=None)
#
Fetch native baseline blobs referenced by committed manifests into the store cache.
Reads each committed manifest.json's native block
and ensures every referenced blob is present in the read store (public, credential-free).
Blobs already cached are skipped (idempotent).
A referenced digest the store cannot serve is a hard failure.
Examples:
ref test-cases sync # Sync all providers
ref test-cases sync --provider ilamb # Sync a single provider