Tidy the file-size note, the last stray test, and stale mutant lines - #1972
Merged
Merged
Conversation
The 1,000-line Biome ceiling no longer has a grandfathered override list in biome.json, so AGENTS.md and two TODO sections stop describing one. test/shared/request-batch-cache.test.ts covered src/shared/request-cache.ts from off its mirror path, so the mutation gate never ran it. It moves to test/shared/request-cache/batch.test.ts, which the mirror map owns. The misplaced-test report is now empty. Twelve entries in the equivalent-mutants registry pointed at lines the code had moved past, which made mutation:audit-equivalents abort before checking anything. Each one is re-pointed at the same mutant's current line and column. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EdDZCWRXwjqsidfRJFarXC
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR adds comprehensive tests for request-batch caching and updates repository guidance, TODO records, and equivalent-mutant metadata to reflect current limits, file sizes, and source locations. ChangesRequest cache validation
Repository maintenance metadata
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
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.
Three small clean-ups found while taking stock of the tidy-up work in progress.
The 1,000-line rule has no exceptions any more
AGENTS.mdsaid that files written before the 1,000-line limit are let off in a list insidebiome.json, and that you should delete a file's entry when you split it. That list no longer exists — the limit now applies to every file, and no file in the project is over it. The note now says so, and says never to add an exception. Two places inTODO.mdmentioned the same list; they now just say the check passes. Three line counts inTODO.mdwere also out of date, so they have been corrected.One test moved to where the tools look for it
test/shared/request-batch-cache.test.tstestssrc/shared/request-cache.ts, but it did not sit in the matching place undertest/. Our mutation checker finds a file's tests by that matching path, so these twelve tests were never used to check that file. The file moves totest/shared/request-cache/batch.test.ts. Nothing inside it changed, and all twelve still pass.This was the last test in the wrong place. The placement report now says every unit test sits where it should.
Twelve entries in the mutant list pointed at the wrong lines
scripts/mutation/equivalent-mutants.txtrecords changes a test could never catch, so the checker does not keep reporting them. Each one is recorded by line and column, and those move whenever the code around them shifts. Twelve had drifted far enough thatdeno task mutation:audit-equivalentsgave up straight away without checking anything.Each one is re-pointed at the same change's current line and column. Nothing was added or removed, and no source code changed.
Checked
deno task test:files test/shared/request-cache/batch.test.ts— 12 passed.Generated by Claude Code
Summary by CodeRabbit
Documentation
Tests