Skip to content

test: land ten reviewed test and tooling consolidations - #816

Merged
steipete merged 10 commits into
mainfrom
steipete/deslop-batch
Oct 1, 2026
Merged

steipete merged 10 commits into
mainfrom
steipete/deslop-batch

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

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 production native/ 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 main keeps the ten separate commits; the individual PRs are then closed with a link to their landed commit.

Commit Original PR Net
d1bd416f #804 test: parameterize atomic, copy-fallback and move regression twins +520 / -958
3deed1ce #805 test: consolidate root, boundary and sync/async contract scenarios +301 / -664
f46cd7e9 #806 test(native): share fixture helpers and parameterize codec and descriptor cases +159 / -406
48205cf2 #807 test(archive): consolidate PAX and TAR admission suites +690 / -835
dec67ffd #808 test(lock): share Root-lock replacement and resolver harnesses +219 / -387
702a2f2b #809 test(temp): share workspace observation fixtures and merge split suites +514 / -770
17b5770e #810 test(root): merge split Root suites and share admission fixtures +948 / -1215
523f4bb3 #811 test: share native probe and parity fixtures and table diagnostic cases +282 / -636
151b0b5d #812 test: merge Windows security suites and table path contract twins +155 / -330
ef0c7d0c #814 test: consolidate atomic settlement, copy, ZIP and publication suites +1186 / -1748

Evidence

  • 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, and git diff --check pass 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.md updated when release-relevant

  • No credentials, private paths, private hosts, or sensitive contents included

)

Parameterize sync/async twin scenarios in the atomic, copy-fallback, and move regression suites over explicit rows that keep the real entry points, typed fault injectors, and throw-versus-rejection assertions. Test counts are identical in all nine files; net -438 lines.
)

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.
@steipete
steipete requested a review from a team as a code owner October 1, 2026 15:55
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 11:59 AM ET / 15:59 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: ef0c7d0c219f07372805c47fecc7ba2d8087a992

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent maintenance batch with supporting scenario-count evidence and no concrete blocking defect found in static inspection.
Proof confidence 🌊 off-meta tidepool Not applicable: GitHub verifies the author as repository admin, so ordinary contributor runtime proof is exempt; the patch changes test scaffolding and CI selections without altering production authority or stored-data contracts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: GitHub verifies the author as repository admin, so ordinary contributor runtime proof is exempt; the patch changes test scaffolding and CI selections without altering production authority or stored-data contracts.
Evidence reviewed 9 items Repository policy: Read the complete root AGENTS.md and CONTRIBUTING.md. No nested AGENTS.md or maintainer notes were found; preservation of security regressions and omission of maintenance-only changelog entries informed the review.
Pinned change scope: The introduced delta contains 143 files, 4,974 additions and 7,949 deletions. Production TypeScript, docs, package metadata and the lockfile have no changes; inspected Rust edits are test-scoped, including the cfg(test) support module.
CI archive selections: Four CI command lines remove absorbed PAX/GNU/ignored-suite filenames while retaining archive-pax.test.ts and archive-tar-admission.test.ts. Required-native environment gates remain in place.
Findings None None.
Security None None.

How this fits together

fs-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]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Change scope 143 files; 10 commits; net −2,975 lines The batch reduces duplicated test scaffolding while preserving separate constituent commits.
Production versus tests production +0/−0; tests +4,970/−7,945; CI +4/−4 The consolidation adds no production code and updates four test-selection commands.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is test and tooling maintenance with no introduced user-facing behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: GitHub verifies the author as repository admin, so ordinary contributor runtime proof is exempt; the patch changes test scaffolding and CI selections without altering production authority or stored-data contracts.

Label justifications:

  • P3: This is test and tooling maintenance with no introduced user-facing behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: GitHub verifies the author as repository admin, so ordinary contributor runtime proof is exempt; the patch changes test scaffolding and CI selections without altering production authority or stored-data contracts.

Evidence

What I checked:

  • Repository policy: Read the complete root AGENTS.md and CONTRIBUTING.md. No nested AGENTS.md or maintainer notes were found; preservation of security regressions and omission of maintenance-only changelog entries informed the review. (AGENTS.md:1, ef0c7d0c219f)
  • Pinned change scope: The introduced delta contains 143 files, 4,974 additions and 7,949 deletions. Production TypeScript, docs, package metadata and the lockfile have no changes; inspected Rust edits are test-scoped, including the cfg(test) support module. (native/src/lib.rs:9, ef0c7d0c219f)
  • CI archive selections: Four CI command lines remove absorbed PAX/GNU/ignored-suite filenames while retaining archive-pax.test.ts and archive-tar-admission.test.ts. Required-native environment gates remain in place. (.github/workflows/ci.yml:1342, ef0c7d0c219f)
  • Retained rejection observations: The shared read observer still asserts exactly one close and no read/readFile calls. Inspected Root race tables retain persistent replacement, restored replacement, and escaping leaf/parent alias scenarios. (test/helpers/root-read-observer.ts:32, ef0c7d0c219f)
  • Subsumed smoke coverage: The retained platform append-flag matrix checks absent O_NOFOLLOW as well as present O_NOFOLLOW/O_NONBLOCK combinations, supporting removal of the narrower flag smoke test. Permission tests also retain explicit empty-versus-null DACL expectations. (test/nonblocking-write-admission.test.ts:295, ef0c7d0c219f)
  • Verified author role: The collaborator permission endpoint reports steipete as repository admin, resolving the supplied association discrepancy and establishing the trusted-author proof exemption.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant