mirror of
https://github.com/beenuar/AiSOC.git
synced 2026-11-24 16:48:33 +08:00
Quickstart video issue: `python scripts/run_evals.py --suite all` failed
with a raw `ImportError` on a fresh clone, and the `--suite` flag itself
didn't exist. This PR makes the runner match the contract the demo
script and quickstart docs already assumed.
Changes:
* Add `--suite {all|mitre_accuracy|alert_reduction|...}` argparse choice
that filters which evaluation suites run. Default is `all` to keep
prior behaviour identical for CI and the recorded video walkthrough.
* Wrap the `tests.*` substrate imports in `try/except ImportError` and
exit with code 3 + a friendly install hint pointing at
`pip install -e services/agents` when deps are missing.
* Order the suite registry (`_SUITE_RUNNERS`) so the CLI choices, the
generated report, and the human-readable banner stay in lockstep.
* Emit explicit `PASS — <suite> green` / `FAIL — <suite> regressed`
banners so the demo voice-over has something deterministic to read.
* Document new exit code `3` and `--suite` usage in the module
docstring.
* New `scripts/tests/test_run_evals_cli.py`: subprocess-driven CLI
surface tests (4 cases) covering `--suite all`, single suite,
unknown suite rejection, and the ImportError hint path (via a
meta-path finder that hides `tests.*` from the runner).
This is PR 3/7 of the demo-video stability series.
Co-authored-by: Beenu Arora <beenu@cyble.com>
0 lines
0 B
Python
0 lines
0 B
Python
The file is empty.