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, 9:29 AM ET / 13:29 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherfs-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
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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.
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.
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/andnative/byte-identical).Why This Change Was Made
archive-pax.test.tsandarchive-tar-admission.test.tsnow 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.mdupdated when release-relevantNo credentials, private paths, private hosts, or sensitive contents included