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, 11:58 AM ET / 15:58 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch replaces duplicated atomic-write, copy-fallback, and move regression tests with shared scenario tables while retaining separate sync and async operations. Merge readiness✅ Ready for maintainer review Keep open: the consolidation is not on current main, and the batch landing PR remains unmerged. No actionable coverage regression was found in the introduced changes. Priority: P3 Review scores
Verification
How this fits togetherfs-safe's publication helpers write or move files while checking filesystem identity and permissions. These regression suites inject substitutions and I/O failures, then check error propagation, preserved contents, and cleanup. flowchart TD
A[Scenario tables] --> B[Sync or async operation]
B --> C[Atomic write or move helper]
D[Filesystem fault injection] --> C
C --> E[Identity and permission checks]
E --> F[Publication or rejection]
F --> G[Content and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Retain one shared scenario definition per regression while continuing to exercise both APIs and their distinct filesystem failure paths. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing tests and reports no runtime bug; validation claims were reviewed without executing tests. Is this the best way to solve the issue? Yes: explicit scenario rows remove duplication while preserving separate sync and async fault injection, platform gates, and postconditions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dee26f147147. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
What Problem This Solves
Atomic-write, copy-fallback, and move regression suites wrote most scenarios twice, once for the sync API and once for the async API, with the same fixture preparation and postconditions; copy-fallback settlement repeated 102 operation executions across four near-identical bodies.
User Impact
No user-visible change; tests only (
src/andnative/byte-identical).Why This Change Was Made
Each twin pair becomes one scenario body over explicit sync/async rows that keep the real sync and async entry points, separately typed filesystem injectors, synchronous throw versus asynchronous rejection assertions, and platform gates. Copy-fallback close settlement and admission run from tables that keep
Object.ischecks (-0,NaN,undefined) and exactly-once close counts. Move cleanup and staged-mode substitution become small tables. Net -438 lines.Evidence
Expanded test counts identical in all nine files (115 passed, 3 platform skips); all 102 close-settlement executions and 28 admission tests remain.
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