Repository navigation
Split context tests out of clawsweeper suite - #324
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 18, 2026, 6:45 PM ET / 22:45 UTC. Summary Reproducibility: not applicable. This PR reorganizes tests and repository guidance rather than reporting a runtime bug. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Merge the focused test split through the normal maintainer and CI path if checks pass, keeping context coverage in test/context.test.ts and the updated test-layout guidance. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR reorganizes tests and repository guidance rather than reporting a runtime bug. Is this the best way to solve the issue? Yes; moving context-specific tests into test/context.test.ts is a narrow maintainability improvement, and the package test glob already includes that file. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b75626e4df03. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
ba14b5d to
04af135
Compare
* test: split context coverage from clawsweeper suite * test: split close reason coverage
episode 1 in a series on making clawsweeper tests not mostly a 20,000 line file, which breaks syntax highlighting and slows down models
Summary
test/context.test.tstest/close-reasons.test.tstest/helpers.tsfor shared test setup helpers instead of duplicating them across split filestest/clawsweeper.test.tsAGENTS.mdto steer future tests into narrower filesTests
node --test test/context.test.ts test/clawsweeper.test.tsnode --test --test-name-pattern 'media proof preparation|invalid close semantics|referencingMergedPullRequestsForIssue' test/clawsweeper.test.ts test/close-reasons.test.ts\n-pnpm exec oxlint test/clawsweeper.test.ts test/close-reasons.test.ts test/helpers.ts --deny-warnings --report-unused-disable-directives -D correctness\n-pnpm run check