Repository navigation
Description
Epic: Testing Infrastructure & Strategy Overhaul
Agreed outcomes from Discussion #711 and the 2026-03-23 planning call with @ajbozarth, @planetf1, @jakelorocco, and @avinash2692. cc @psschwei for further planning, @avinash2692 regarding Bluevela nightlies.
Key Decisions
Two-dimensional marker taxonomy — granularity (unit, integration, e2e, qualitative) x backend (ollama, huggingface, vllm, openai, watsonx, litellm, etc.), plus resource markers (requires_gpu, requires_heavy_ram, requires_gpu_isolation).
| Tier | Trigger | Budget | What runs |
|---|---|---|---|
| Pre-commit | Every commit | <60s | Lint + type checking only |
| Local dev | Ad-hoc | <5 min | All tests matching available backends/resources |
| PR CI | Every push | <15 min | Unit + integration + Ollama e2e |
| Nightly CI | Scheduled | ~60 min | Every test, no exceptions (Bluevela, full GPU) |
| Pre-release | Manual | ~90 min | Manual trigger of nightly suite |
Principles: split e2e into integration + e2e pairs (don't just downgrade); parametrise across backends; fix root causes over workarounds; catalog minimal default models with overrides; scope covers both tests and examples; docs updated with every change.
Work Items
| # | Issue | Summary |
|---|---|---|
| 1a | #727 | Granularity marker taxonomy and tiered timeouts |
| 1b | #728 | Backend & resource marker audit (children: #622, #539, #629, #634) |
| 2a | #729 | Split e2e tests into integration + e2e pairs |
| 2b | #730 | Parametrise and consolidate backend-specific tests |
| 3a | #731 | Environment diagnostic, pre-flight checks & reporting (children: #574, #349) |
| 3b | #732 | Model consolidation and flexibility (children: #359) |
| 4 | #733 | CI parallelisation and dynamic test selection (see also #451) |
| 5 | #734 | On-demand nightly test runs for PRs |
| 6 | #735 | Semantic assertions & recording for qualitative tests (children: #692) |
| 7 | #736 | Backend resource cleanup post-PR #721 |
| 8 | #737 | Test results & coverage reporting |
| 9 | #738 | Notebook testing (children: #89) |
| 10 | #739 | Pre-commit & type checking (children: #456) |
| 11 | #813 | Test coverage improvement (children: #812) |
Related Issues
Expected to close with PR #721 (cleanup_gpu_backend()): #630, #625, #620, #699. Residual cleanup tracked in #736.
Flaky tests — addressed by #735 (semantic assertions): #398, #384, #628, #684, #121.
Activity
ajbozarth commentedon Mar 24, 2026
"<5 min" isn't quite right here, it would match CI at 15min or higher depending on the users resources unless they limit what tests run (which is what you may have meant with this estimate)
psschwei commentedon Mar 24, 2026
One clarification question: does "test" here refer to just the actual test files, or are we including
docs/examples/in there too?ajbozarth commentedon Mar 24, 2026
It should include examples, but it may be worth adding an
examplemark that. is a subset ofe2esimilar to howqualitativeis. We could even make all files in the examples directory automatically have the mark to make it easier for editing.planetf1 commentedon Apr 14, 2026
Added #853 — test strategy document covering classification, authoring guide, and CI pipeline map. Markers guide is in scope for rename/consolidation as part of that work.
test: add pure-logic unit tests for stdlib, core, backends, telemetry
test: pure-logic unit tests for stdlib, core, backends, telemetry (#860…
docs: tighten stale issue refs and fix cross-context links
test: pure-logic unit tests for stdlib, core, backends, telemetry (ge…
planetf1 commentedon Oct 5, 2026
Closing the epic — the children stand on their own.
State at closure (verified against
main, 2026-10-05):Closed (5): #727 (marker taxonomy), #728 (marker audit), #813 (coverage improvement), #736 (resource cleanup post-#721), #738 (notebook testing — nbmake/CI via PR #1649).
Open (9), each tracked independently with its own priority and work items:
test_kvFlaky Due to Model Safety Refusal #398, Bug: Flaky test in langchain_messages.py - qualitative assertion too strict #384, test: loosen assertion in test_astream_incremental.py #628, test: react_using_mellea.py example fails intermittently — ReACT loop exceeds 10 iteration budget #684, test_generative_with_contextual_session fails intermittently #121)The epic's decisions (marker taxonomy, tier budgets, principles) remain valid and are recorded in
test/README.md; this issue no longer tracks active work. If the cluster is ever picked up as a program again, reopen or start a fresh umbrella.