Files
wangsike 950852f678 ci: add NPU canary plugin to batch runner for poisoner diagnostics
Merged-batch workers share one pytest process across cases. When an
aclnn operator fails fatally (e.g. MirrorPad/TopKV2 tiling failure on
boundary inputs), the NPU task queue enters CAN_EXIT and all subsequent
operators become silent no-ops returning garbage — the poisoning case
itself often still reports PASSED.

Add a pytest plugin that probes process health (torch.ones(4).sum()
verifiable computation) around every case:
- teardown probe failure -> the case that just finished is recorded as
  suspected poisoner (nodeid printed to batch log + JSONL marker in
  report_dir)
- setup probe failure -> recorded as victim (poisoned before it started)

Diagnostics only, never aborts the batch. Mirrors the proven probe from
run_npu_test_shard.py::_check_npu_poisoned. Disable with NPU_CANARY=0.
2026-10-09 15:53:44 +08:00
..