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:08 AM ET / 14:08 UTC. ClawSweeper reviewWhat this changesThe PR shares test fixtures for directory replacement, lock acquisition, and resolver interception, and combines repeated durable-queue scenarios into tables. Merge readiness✅ Ready for maintainer review This remains a useful, focused test cleanup absent from current main. The introduced changes preserve the race scenarios, rejection checks, descriptor assertions, and cleanup behavior; no actionable defect was found. Priority: P3 Review scores
Verification
How this fits togetherfs-safe’s locks protect filesystem operations through sidecar ownership and Root confinement checks, while its durable queues preserve work across interrupted transitions. These tests inject filesystem races and failures to check rejection, cleanup, and recovery. flowchart TD
A[Lock and queue scenarios] --> B[Shared test fixtures]
B --> C[Filesystem races and failures]
C --> D[Lock identity checks]
C --> E[Queue transitions]
D --> F[Rejection and cleanup assertions]
E --> G[Recovery and generation assertions]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep these fixtures local to their suites while preserving explicit race timing, platform controls, and security assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing tests rather than fixing a reported runtime failure. Is this the best way to solve the issue? Yes: local helpers and scenario tables remove repetition while retaining the original triggers and assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b01e327e938e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Share the Root-lock directory-replacement fixture (keeping the Windows and POSIX implementations), table durable-queue transitions, and share ownership-token acquisition and final-resolver interception scaffolding. Test counts identical; tests only, net -168 lines.
Share the Root-lock directory-replacement fixture (keeping the Windows and POSIX implementations), table durable-queue transitions, and share ownership-token acquisition and final-resolver interception scaffolding. Test counts identical; tests only, net -168 lines.
What Problem This Solves
Root-lock and durable-queue suites rebuilt the same harnesses inline: the directory-replacement race fixture was written out per test, queue transition scenarios repeated their setup, raw ownership-token tests repeated acquisition, and final-resolver interception scaffolding was copied across resolver tests.
User Impact
No user-visible change; tests only (
src/andnative/byte-identical).Why This Change Was Made
prepare,replace, andrestoresteps keeps both the Windows identity-substitution and POSIX inode-preserving implementations, parser-triggered timing, partial cleanup, and descriptor assertions.Net -168 lines.
Evidence
Expanded test counts identical in all five files (83 before and after, all passing).
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