Repository navigation
refactor(test): remove repeated suite boilerplate - #108
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 9:10 PM ET / August 3, 2026, 01:10 UTC. ClawSweeper reviewWhat this changesThis PR consolidates repeated Vitest temporary-directory cleanup, platform gating, and typed filesystem-safety error assertions across 62 test files, while strengthening several boundary-escape checks. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep open. The branch is a broad but coherent test-harness cleanup with no source or package-runtime changes, and the completed cross-platform CI signal is positive; however, the external contributor has not attached after-fix real-behavior evidence beyond test and CI claims, so it still needs redacted terminal or live output before merge. Priority: P3 Review scores
Verification
How this fits togetherThe test suite exercises fs-safe’s capability-style filesystem roots and guarded file operations against traversal, symlink, hardlink, archive, permission, and race conditions. Shared test fixtures create isolated paths and assertions, then verify the package continues to reject unsafe operations without affecting paths outside the controlled root. flowchart LR
A[Security regression cases] --> B[Shared test fixtures]
B --> C[Temporary roots and platform gates]
C --> D[fs-safe guarded operations]
D --> E[Typed safety errors]
D --> F[Outside-path side-effect checks]
E --> G[Cross-platform test results]
F --> G[Cross-platform test results]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared fixtures and land the refactor after the contributor posts redacted terminal or live output from the refactored suite, including the boundary/security test run and the full check. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors test infrastructure rather than reporting a current user-facing failure; source inspection shows focused shared fixtures and unchanged runtime code. Is this the best way to solve the issue? Yes, subject to proof: consolidating repeated temporary-directory, platform, and typed-error patterns into shared test helpers is the narrower maintainable direction, and the fixture-ordering regression directly covers its key lifecycle assumption. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against be27814e98e7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
9018a94 to
b1d3dff
Compare
Summary
Verification
Coverage improved from 84.11% to 84.21% lines. The coverage command remains below the configured global thresholds in this checkout, as it was before this test-only refactor.