test: everything the tests read is in git -- a fresh checkout passes on its own
A fresh checkout of dev failed 10 tests, errored 3 and skipped 64: the
tests read 100 files that were only on the dev box. Recorded with an
audit hook over a full run: 100 files, 2.3 MB, out of 1.1 GB of
bridges/captures/ and 45 MB of histogram-extension-re/.
- Force-added in place: tests/fixtures/thor-idf (14), histogram-multi-
interval (2) and the one histogram-extension-re file read.
- Copied into tests/fixtures/example-events/ (10) and
tests/fixtures/captures/ (73, from bridges/captures/), and the tests
pointed there.
- The presence skips ('not on this machine', 'gitignored', 'fixture
missing') are gone: a missing fixture now fails instead of skipping.
The worktree now runs as the dev box does: 1,787 passed, 0 failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
c2b8e76774
commit
4d0984dcaf
109 files changed
+23763
-77
No files matched your search
@@ -25,7 +25,7 @@ import minimateplus.protocol as mp # noqa:
|
||||
from minimateplus.framing import S3FrameParser, build_bw_write_frame, unescape_reply # noqa: E402
|
||||
|
||||
FIX = Path(__file__).parent / "fixtures" / "minimate-bench-10-26-26-histogram"
|
||||
CAPTURES = Path(__file__).parent.parent / "bridges" / "captures"
|
||||
CAPTURES = Path(__file__).parent / "fixtures" / "captures" # copied from bridges/captures/
|
||||
|
||||
|
||||
def _unstuff(b: bytes) -> bytes:
|
||||
@@ -88,8 +88,8 @@ def test_every_write_frame_tonight_is_rebuilt_byte_for_byte():
|
||||
_OLD = sorted(glob.glob(str(CAPTURES / "[234]-*" / "**" / "raw_bw*.bin"), recursive=True))
|
||||
|
||||
|
||||
@pytest.mark.skipif(not _OLD, reason="the Feb-Apr 2026 Blastware captures are not on this box")
|
||||
def test_every_write_frame_since_february_is_rebuilt_byte_for_byte():
|
||||
assert _OLD, f"no Feb-Apr 2026 Blastware captures under {CAPTURES}"
|
||||
frames = [f for path in _OLD for f in _frames(Path(path).read_bytes())
|
||||
if 0x68 <= _payload(f)[2] <= 0x83]
|
||||
assert len([f for f in frames if len(_payload(f)) > 16]) >= 48
|
||||
|
||||
Reference in new issue
Block a user