test: replace mock smoke matrix with a live-only drift check

The 43-case mock smoke duplicated tests/cli.rs, which already runs the
real binary against fixture providers. Replace the flake's smoke-mock
check with a small packaged-cli check (version JSON, bash completions,
one mock quote), and cut scripts/live-smoke.sh from 672 to ~170 lines:
it now only runs shipped commands against live MSN/Yahoo/IDX and
validates output shape. Rewrite docs/SMOKE.md around the Nix gate and
the drift check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hermes 2026-10-14 07:45:51 +00:00
commit 86c108f6eb
7 changed files with 188 additions and 771 deletions

View file

@ -60,13 +60,13 @@ curl -fsSL https://crates.io/api/v1/crates/idx-cli
For a real release or release-hygiene fix, verify the repo state first.
Run the canonical gate (fmt, clippy, tests, release build, `cargo package`
verification, and mock smoke):
verification, and a packaged-binary check):
```bash
nix flake check -L
```
Run targeted smoke when the release changes user-facing CLI behavior. For
Run `scripts/live-smoke.sh` when the release changes provider-facing behavior. For
ownership-sync changes, re-verify a clean-machine flow:
```bash