]> Piment Noir Git Repositories - freqai-strategies.git/commit
fix(qa): tolerate tool version drift in snapshot comparison
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 11 Sep 2026 16:13:16 +0000 (18:13 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 11 Sep 2026 16:13:16 +0000 (18:13 +0200)
commit42be3bf76fc1df15eeef5b4aedd416145dc430cd
tree33e7da95e3992bbfc78241c80f4cc429d87720fb
parent41138c049a55fe6848c63bdafb0d20d31dd6a6fd
fix(qa): tolerate tool version drift in snapshot comparison

Compare snapshots with basedpyrightVersion normalized out: a tool upgrade that changes no diagnostics no longer fails the check. The recorded version stays in snapshots and --write output as provenance, is still validated nonempty on both sides, still appears in the failure diff, and both versions are reported in the success message. Diagnostics, file inventory and schema stay byte-exact, so changed output still fails closed. Covers scripts/test_check_basedpyright.py (stdlib unittest): version-only drift matches, diagnostic change mismatches, empty version and missing key rejected.
scripts/check_basedpyright.py
scripts/test_check_basedpyright.py [new file with mode: 0644]