Recorded 2026-11-23. Default test suites (pytest and bun test) execute offline on workstation CPU using compact synthetic inputs, while tests requiring local corpora, neural checkpoints, object stores, browsers, or GPUs sit behind explicit integration markers (pytest -m integration).
Context
Coupling everyday unit tests to multi-gigabyte corpora, remote S3 buckets, or GPU runtimes slows feedback loops and makes offline development fail unpredictably. Conversely, mocking every internal call hides tensor shape drift and contract mismatches.
Decision
- Configure default package test runners (such as
addopts = "-m 'not integration'") to run fast deterministic CPU tests verifying public interfaces, serialized schema and checkpoint compatibility, mask and padding isolation, finiteness, split isolation, and state recovery. - Isolate corpus, checkpoint, network, browser, and GPU checks behind explicit
@pytest.mark.integrationmarkers run on demand.
Consequences and revisit conditions
- Contributors and coding agents run full linters, strict type checks, and contract suites in seconds after every code edit.
- Revisit integration gating if CI provisions dedicated GPU or cached-dataset runners for scheduled nightly suites.



