Repository navigation
test: land ten reviewed test and tooling consolidations - #816
Conversation
) Collapse sync/async twin scenarios into rows, share the Root-read observer and Windows hostile-diagnostic harnesses, table the read-bypass rejections while keeping exact error codes, and delete five smoke tests strictly covered by stronger tests. Tests only; 250 to 246 expanded tests, net -363 lines.
…ptor cases (#806) Share one cfg(test) temp-path builder and the Windows test directory opener across 20 native test modules, replace six TAR codec fixture arrays with one helper, and parameterize the cancellation and descriptor-rejection twins. All 188 Rust test names are unchanged; Rust test code only, net -247 lines.
Fold the PAX security, decimal, and raw-admission suites into archive-pax.test.ts and the GNU and ignored-member suites into archive-tar-admission.test.ts, sharing one backend matrix and fixture setup while keeping every family's assertions. All 2,048 case names and routes are preserved; the CI lines selecting the removed files are updated. Net -145 test 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.
…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.
Merge five split Root test siblings back into their owners once their fixtures are shared, add shared no-replace adapter and selected-target admission helpers, and table writable-open collisions. 168 expanded tests before and after; tests only, net -267 lines and five fewer files.
…es (#811) Replace 29 copies of the bundled-addon probe with one helper that keeps optional and required-environment policies, share the native archive parity fixture, table permission diagnostics, API wrapper, home-path and queue layout cases, and delete two DACL cases strictly covered by a stronger test. Tests only; net -354 lines.
Merge the Windows locality-failure suite into the portable Windows security suite with shared setup and read spies, run workspace read contracts per sync/async variant from one body, share fallback-write cleanup and the FIFO-swap interceptor, table Root-open mode options, and drop one subsumed smoke test. Tests only; net -175 lines.
…#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.
|
🦞👀 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:59 AM ET / 15:59 UTC. ClawSweeper reviewWhat this changesThe branch combines ten test consolidations, shares TypeScript and Rust fixtures, and updates CI selections for absorbed archive suites. Merge readiness✅ Ready for maintainer review This remains a useful landing vehicle for work absent from the pinned main branch. No blocking defect was identified in the inspected consolidations, and GitHub confirms the author has repository admin access. Priority: P3 Review scores
Verification
How this fits togetherfs-safe guards filesystem operations on untrusted paths. Its TypeScript and native Rust tests exercise confinement, identity checks, archive admission, and cleanup across platform and backend variants. flowchart TD
A[Paths and archive fixtures] --> B[Shared test fixtures]
B --> C[Platform and backend cases]
C --> D[Guarded filesystem operations]
D --> E[Safety and cleanup assertions]
E --> F[CI validation]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the shared fixtures and explicit safety scenarios, preserving the ten constituent commits through the requested rebase merge. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing tests and reports no runtime bug; validation here was static and read-only. Is this the best way to solve the issue? Yes: shared fixtures and explicit scenario tables fit the existing test structure; sampled removals have stronger retained counterparts, although complete scenario equivalence was not independently verified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dee26f147147. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Ten reviewed test and tooling consolidation PRs were landing one at a time behind the strict up-to-date rule, costing a full CI cycle (17-27 minutes) per PR. This vehicle lands them together while keeping one commit per original PR on
main.User Impact
No user-visible change; tests and Rust test code only (
src/and productionnative/code unchanged).Why This Change Was Made
Each commit is the squashed diff of one already-reviewed PR, with that PR's title and summary, applied in queue order without conflicts. Land with rebase merge so
mainkeeps the ten separate commits; the individual PRs are then closed with a link to their landed commit.d1bd416f3deed1cef46cd7e948205cf2dec67ffd702a2f2b17b5770e523f4bb3151b0b5def0c7d0cEvidence
Every original PR was reviewed with test-count proofs (scenarios preserved; only explicitly mapped subsumed tests removed) and a Codex autoreview (P0-P2) before queuing.
The ten commits apply cleanly on current
main;tsc,lint:file-size,lint:fs-boundary, andgit diff --checkpass on the combined tree.test(native): share fixture helpers and parameterize codec and descriptor cases #806 (Rust test code) already passed all native lanes, including both Windows lanes and clippy, on its own CI run.
This PR's CI runs the full required matrix once for the combined change.
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