mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-08-07 01:33:52 +00:00
Clear the smoke cache before each cache-group warm case so the following offline and stale-cache checks always start from a fresh baseline instead of earlier group state. Document the runner behavior in the smoke guide to make the cache-group sequencing explicit.
2.2 KiB
2.2 KiB
Smoke Checks
Use scripts/live-smoke.sh as the reusable smoke runner for shipped CLI surfaces.
The script:
- builds
target/debug/idxonce by default - isolates config, cache, and data under
tmp/live-smoke/<timestamp>/ - records one log file per case under
tmp/live-smoke/<timestamp>/logs/ - supports fast mock-backed runs and slower live-network passes
Common Runs
scripts/live-smoke.sh
scripts/live-smoke.sh --mode full
scripts/live-smoke.sh --mode mock
scripts/live-smoke.sh --group live-table --group live-json
scripts/live-smoke.sh --group cache --symbol BBRI
scripts/live-smoke.sh --dry-run --mode full
Modes
liveruns the default real-network baseline:general,live-table, andownershipmockruns the deterministic baseline:general,mock,cache,routing,errors, andownershipfullruns every group, including live JSON output checks
Groups
general:version,completions,config, andcachecommand basicslive-table: all shippedstockscommands in live table modelive-json: all shippedstockscommands in live JSON modemock: all shippedstockscommands against the mock provider in both table and JSON modecache: cache warm,--offline, and stale-cache fallback checks for quote, technical, and MSNprofilerouting: Yahoo/MSN provider routing plus explicit MSN history unsupported behaviorerrors: JSON error contract and invalid flag/input checksownership: safe ownership smoke checks that do not require imported ownership data
Notes
- The runner forces
IDX_OUTPUT=tableas its default environment so table cases stay stable; JSON checks use-o jsonexplicitly. - Cache-group warm cases clear the smoke cache before they run so each warm/offline/stale sequence starts clean and stale-cache assertions are not masked by earlier groups.
- Ownership commands that need imported data are intentionally not part of the baseline runner yet. The current baseline only covers
ownership releasesand the known unsupportedownership import --fetch-bing. - When a case fails, inspect the per-case log in
tmp/live-smoke/.../logs/before updatingTODO.mdorFEATURE_SPEC.md.