fix(tests): split test_benchmark_matrix.py to clear the 500-line gate#213
Merged
Conversation
PR #211 grew tests/test_benchmark_matrix.py from 499 to 543 lines, tripping the Konjo Gate file-size check (blocking on main since). Split along the file's existing section boundaries: corpus/stats_ext/cache_probe stay in test_benchmark_matrix.py (288 lines); memory/thermal/matrix_spec/host/cell/ report move to test_benchmark_matrix_reporting.py (258 lines). No behavior change — same 64 tests, same assertions, verified passing in both files. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main's Konjo Gate (G4 · Complexity + Size + DRY, and the aggregateKonjo Gate — All Walls Clear) has been failing since PR bench: cold/unique 0%-reuse head-to-head — squish beats ollama on TTFT, decode, and E2E #211 merged, which grewtests/test_benchmark_matrix.pyfrom 499 to 543 lines — over the 500-line new-violation limit and not in.konjo/oversized-allowlist.txt.# ── section ──comment boundaries rather than allowlisting it:tests/test_benchmark_matrix.py(288 lines): corpus, stats_ext, cache_probetests/test_benchmark_matrix_reporting.py(258 lines, new): memory, thermal, matrix_spec, host, cell pure helpers, reportpytest -v, 64 passed) and clean underruff check/ruff format --check.Note: this PR does not touch the complexity-gate's 146 flagged functions (
radon cc -n C) — that step hascontinue-on-error: truein the workflow, so it's cosmetic/non-blocking, not what's actually failing CI. Fixing that debt is a much larger, unrelated undertaking across ~20 files and is out of scope here.Also found, not addressed in this PR: the scheduled
Model Compression Pipelineworkflow has been failing daily since at least 2026-07-02 — it callsdev/scripts/model_pipeline.py, which was intentionally deleted in a "scrub internal artifacts and private paths for public repo" commit. Fixing that requires a judgment call (retire the dead workflow vs. restore internal tooling to the public repo) that needs a maintainer decision, not a mechanical fix.Test plan
pytest tests/test_benchmark_matrix.py tests/test_benchmark_matrix_reporting.py -v— 64 passedruff check/ruff format --check— clean🤖 Generated with Claude Code