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:09 AM ET / 14:09 UTC. ClawSweeper reviewWhat this changesThe PR shares temporary-workspace and hostile-error test fixtures, consolidates directory-durability cases into tables, and merges canonical-admission tests into root discovery. Merge readiness✅ Ready for maintainer review Keep open: this useful test consolidation is not on main, and no introduced correctness defect was found. The author has verified repository administrator access. Priority: P3 Review scores
Verification
How this fits togetherfs-safe creates private temporary workspaces and guards their filesystem identity, permissions, and cleanup. These regression suites exercise creation, replacement races, error settlement, and directory synchronization using filesystem fixtures and injected failures. flowchart TD
A[Temporary directories] --> B[Shared test fixtures]
C[Injected errors and replacements] --> B
B --> D[Workspace and staged operations]
B --> E[Directory synchronization]
D --> F[Identity and cleanup assertions]
E --> G[Strict failure or unsupported assertions]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Use shared test fixtures while preserving independent assertions for filesystem identity, permission checks, failure settlement, and cleanup. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing tests and reports no runtime bug; source comparison establishes the duplicated support code. Is this the best way to solve the issue? Yes: focused shared helpers and table-driven failure routes reduce duplication while retaining the moved case bodies and existing 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
|
…es (#809) Share temp-workspace observers and lifecycle fixtures, staged-settlement hostile errors, and cleanup bindings through test helpers; table directory-durability error routes; merge the split canonical-admission suite into root discovery. 481 to 480 expanded tests (one merged duplicate scenario keeps both assertions); tests only, net -256 lines.
…es (#809) Share temp-workspace observers and lifecycle fixtures, staged-settlement hostile errors, and cleanup bindings through test helpers; table directory-durability error routes; merge the split canonical-admission suite into root discovery. 481 to 480 expanded tests (one merged duplicate scenario keeps both assertions); tests only, net -256 lines.
What Problem This Solves
Temp-workspace, staged-file, and directory-durability suites re-implemented the same support code: 23 successful-open observers and lifecycle fixtures copied across temp-workspace suites, hostile-error fixtures duplicated between the staged file and symlink settlement suites, repeated inert cleanup bindings, directory-durability error routes written out one by one, and a canonical-admission suite split off from root discovery to stay under the file-size limit.
User Impact
No user-visible change; tests only (
src/andnative/byte-identical).Why This Change Was Made
test/helpers/temp-workspace.ts,test/helpers/staged-errors.ts, andtest/helpers/cleanup-binding.tshold the shared observers, lifecycle fixtures, hostile errors, and cleanup bindings.pinDirectory(filePath)call become one test asserting both thenot-filecode and the error class.temp-workspace-missing-canonical.test.tsmerges intotemp-workspace-root-discovery.test.tswith its 22 cases unchanged.Net -256 lines.
Evidence
Expanded tests 481 → 480: only the merged ordinary-file pair; every other case keeps its name and body.
458 passed, 22 platform skips across the surviving files and every helper importer.
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