Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 10:47 AM ET / 14:47 UTC. ClawSweeper reviewWhat this changesThe branch shares test helpers and combines atomic-write, copy, ZIP, publication, and TAR boundary scenarios to reduce duplicated test code. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, focused test consolidation that remains absent from current main. The reviewed diff preserves the safety scenarios and introduces no actionable correctness finding. Priority: P3 Review scores
Verification
How this fits togetherfs-safe guards filesystem operations on untrusted paths. These tests exercise archive admission, file identity checks, publication, and cleanup failures to verify safe results and error precedence. flowchart TD
A[Archive bytes and filesystem fixtures] --> B[Shared test helpers]
B --> C[Atomic writes and copying]
B --> D[Archive admission and publication]
C --> E[Injected failures and identity swaps]
D --> E
E --> F[Assert contents, cleanup and errors]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the shared test machinery and consolidated suites while preserving their existing safety assertions and platform gates. Do we have a high-confidence way to reproduce the issue? Not applicable: the PR consolidates existing tests rather than reporting a runtime bug; validation results are reported in its body and were not independently rerun. Is this the best way to solve the issue? Yes: shared helpers and parameterized scenarios reduce duplication while retaining the inspected failure cases, assertions, and platform gates. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fb5d9fe77b7b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…#814) Share atomic settlement and copy close-precedence test machinery, merge the copy-wrapper and three ZIP admission siblings into their owners, and table copy-fallback guard, publication target-swap, preserved-mode, and TAR boundary twins. 525 registered tests before and after; tests only, net -562 lines and four fewer files.
…#814) Share atomic settlement and copy close-precedence test machinery, merge the copy-wrapper and three ZIP admission siblings into their owners, and table copy-fallback guard, publication target-swap, preserved-mode, and TAR boundary twins. 525 registered tests before and after; tests only, net -562 lines and four fewer files.
What Problem This Solves
Atomic temp-owner settlement, copy close-precedence, copy-fallback guards, ZIP admission, publication, preserved-mode, and TAR boundary suites still duplicated support code and scenario bodies: the private and public atomic settlement suites each carried their own failure values, capture helpers, and assertions; four ZIP admission siblings and a copy-wrapper close suite had been split from their owners; and sync/async or portable/target-swap twins were written out separately.
User Impact
No user-visible change; tests only (
src/andnative/byte-identical).Why This Change Was Made
test/helpers/atomic-settlement.tsandtest/helpers/copy-close-precedence.tshold the shared settlement and close-precedence machinery; the public settlement suite runs one mode-parameterized body.copy-wrapper-close-precedencemerges intocopy-tree-close-precedence, and the ZIP admission owner/reuse/timing siblings merge intoarchive-zip-portable-metadata(399 and 436 lines, under the 500-line limit), each with isolated per-test compression state.Net -562 lines, four fewer files.
Evidence
Registered tests 525 before and after across all affected files; 516 passed, 9 native-artifact-gated skips, matching baseline.
No remaining reference to the four deleted filenames.
tsc,lint:file-size,lint:fs-boundary: pass. Codex autoreview (P0-P2): clean.Tests added or updated when behavior changed
Security and compatibility impact considered
CHANGELOG.mdupdated when release-relevantNo credentials, private paths, private hosts, or sensitive contents included