Skip to content

test(archive): consolidate PAX and TAR admission suites - #807

Closed
steipete wants to merge 1 commit into
mainfrom
steipete/deslop-r3-tests-archive
Closed

steipete wants to merge 1 commit into
mainfrom
steipete/deslop-r3-tests-archive

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Seven archive suites split one family each across separate files with the same backend matrix, native gate, resets, temp fixtures, and archive builders: four PAX suites (bounded metadata, security, decimal framing, raw admission) and three TAR admission suites (admission, GNU, ignored members).

User Impact

No user-visible change; tests and CI file selections only (src/ and native/ byte-identical).

Why This Change Was Made

archive-pax.test.ts and archive-tar-admission.test.ts now own their families with named nested suites that share one route registration, native setup and reset, encoded-archive creation, and destination preparation, while each family keeps its own fixtures, timeouts, inspection-count assertions, and rejection checks. The five absorbed files are deleted and the four CI lines that selected them by name are updated. Net -145 test lines.

Evidence

  • JSON reports before and after match all 2,048 case names and backend routes: 242 PAX, and 512 + 610 + 684 TAR.

  • With FS_SAFE_PAX_REQUIRE_NATIVE=1 (rebuilt binding) and without it: all cases pass (six 5 s timeouts under local load, cleared on isolated retry; the baseline showed the same pattern).

  • No remaining reference to the deleted filenames anywhere in the repository; survivors are 421 and 371 lines (under the 500-line limit).

  • 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.md updated when release-relevant

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

@steipete
steipete requested a review from a team as a code owner October 1, 2026 13:26
@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, 9:29 AM ET / 13:29 UTC.

ClawSweeper review

What this changes

The PR consolidates seven PAX metadata and TAR admission test suites into two files with shared setup, and updates four CI test selections.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a useful, bounded consolidation that remains absent from main. Comparing all seven original suites with the two survivors found no actionable coverage or CI-selection regression.

Priority: P3
Reviewed head: 26a6f80a7a7a88ce55f3e31ea0d8d9eb191df58f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused consolidation with preserved safety checks and no actionable defect found through source comparison.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied Repository State classifies the author as MEMBER, so the contributor runtime-proof gate is exempt. Only test ownership and CI selections change; no production authority or stored-data contract changes. Reported native/fallback test runs are supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied Repository State classifies the author as MEMBER, so the contributor runtime-proof gate is exempt. Only test ownership and CI selections change; no production authority or stored-data contract changes. Reported native/fallback test runs are supplemental validation.
Evidence reviewed 9 items Pinned scope: The verified base-to-head delta changes seven test paths and one workflow. src/ and native/ have no changes; the checkout matches the original PR head.
PAX coverage preserved: Read the complete survivor and all four original PAX suites. Bounded metadata, security policy, decimal framing, and raw admission retain their fixtures, extraction/read assertions, rejection codes, native gate, and resets.
TAR routes preserved: Read the complete survivor and all three original TAR suites. The shared route matrix retains the original ten backend/format combinations; each nested family selects its own compressed fixtures and preserves sentinel, filtering, rejection, native-call, and manifest-timeout assertions.
Findings None None.
Security None None.

How this fits together

fs-safe validates untrusted archive members before extracting files into guarded destinations. These suites check admission, metadata limits, filtering, and rejection behavior across fallback and native backends.

flowchart TD
  A[Archive fixtures] --> B[Shared test setup]
  B --> C[Fallback or native backend]
  C --> D[Archive admission and extraction]
  D --> E[Accepted files and bounded reads]
  D --> F[Rejected unsafe archives]
  E --> G[Safety assertions]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Suite consolidation 7 test files become 2; tests net -145 lines; production delta 0 Shared setup reduces duplication without growing production code.
Survivor sizes 421 and 371 lines Both consolidated suites remain below the repository's stated 500-line limit.

Technical review

Best possible solution:

Use the two consolidated family suites while preserving backend coverage, fail-closed assertions, and required-native CI enforcement.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR consolidates existing tests rather than reporting a runtime defect; validation claims were inspected but not rerun.

Is this the best way to solve the issue?

Yes: sharing setup within each archive family is a focused approach, and comparison with the originals found preserved fixtures, routes, and safety assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 167673bc7724.

Labels

Label changes:

  • add P3: This is test and CI 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: The supplied Repository State classifies the author as MEMBER, so the contributor runtime-proof gate is exempt. Only test ownership and CI selections change; no production authority or stored-data contract changes. Reported native/fallback test runs are supplemental validation.

Label justifications:

  • P3: This is test and CI 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: The supplied Repository State classifies the author as MEMBER, so the contributor runtime-proof gate is exempt. Only test ownership and CI selections change; no production authority or stored-data contract changes. Reported native/fallback test runs are supplemental validation.

Evidence

What I checked:

  • Pinned scope: The verified base-to-head delta changes seven test paths and one workflow. src/ and native/ have no changes; the checkout matches the original PR head. (26a6f80a7a7a)
  • PAX coverage preserved: Read the complete survivor and all four original PAX suites. Bounded metadata, security policy, decimal framing, and raw admission retain their fixtures, extraction/read assertions, rejection codes, native gate, and resets. (test/archive-pax.test.ts:20, 26a6f80a7a7a)
  • TAR routes preserved: Read the complete survivor and all three original TAR suites. The shared route matrix retains the original ten backend/format combinations; each nested family selects its own compressed fixtures and preserves sentinel, filtering, rejection, native-call, and manifest-timeout assertions. (test/archive-tar-admission.test.ts:21, 26a6f80a7a7a)
  • CI and required-native enforcement: Four workflow command lines remove absorbed filenames while retaining the survivor that now contains their tests. The unchanged native loader throws when FS_SAFE_PAX_REQUIRE_NATIVE=1 and the binding is unavailable. No remaining repository reference to the five deleted filenames was found. (.github/workflows/ci.yml:1361, 26a6f80a7a7a)
  • Still necessary on main and release: Both pinned main and v0.22.0 retain all five absorbed files, establishing that this consolidation is not already present in either inspected tree. (ef7b5a909bff)
  • Prior area contribution: Available main history records Peter Steinberger's prior bounded-PAX, TAR admission, ignored-record, and unified-parser work. Follow-history and blame could not complete because older blobs were unavailable through the configured remote; no source-line introduction attribution is claimed. (test/archive-tar-admission.test.ts, 895a9700fc73)

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.

steipete added a commit that referenced this pull request Oct 1, 2026
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.
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Landed on main as 59d4159 through the batch PR #816 (rebase merge, one commit per original PR), to avoid ten serial up-to-date CI cycles. Content is identical to this PR's reviewed diff.

@steipete steipete closed this Oct 1, 2026
steipete added a commit that referenced this pull request Oct 1, 2026
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.
@steipete
steipete deleted the steipete/deslop-r3-tests-archive branch October 1, 2026 17:08
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