Repository navigation
test(release): reuse immutable registry fixture archives - #134804
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 1:16 AM ET / 05:16 UTC. ClawSweeper reviewWhat this changesThe PR caches immutable fixture tarball bytes and passes temporary Git identity settings per commit to reduce repeated setup in release-registry tests. Merge readinessKeep this maintainer-labelled PR open for routine maintainer review. The test-only consolidation preserves isolated artifact files and the existing registry-validation paths; no actionable regression was found. Priority: P3 Review scores
Verification
How this fits togetherRelease validation packages selected plugins into an immutable registry artifact, then validates hashes, identities, and package sets before package and cross-platform scenarios consume it. This change affects only the disposable test-fixture setup that feeds those checks. flowchart LR
A[Test case inputs] --> B[Fixture archive helper]
B --> C[Private artifact file]
C --> D[Registry artifact creator]
D --> E[Manifest and tarball validation]
E --> F[Release-package test scenarios]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the cache local to fixture construction and merge only after the exact-head checks complete successfully. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes disposable release-test fixture setup, not a reported product failure. Is this the best way to solve the issue? Yes. Reusing immutable source bytes while writing a separate archive per fixture removes repeated setup without weakening the mutation-sensitive validation cases. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 82f4fd1f4ed7. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Verified exact reviewed head 2157052. CI run 33472540903 is successful, including the frozen-dependency build and Node matrix. The 20-case before/after artifact and shell proof, full local changed checks, refreshed Codex autoreview and native preparation all pass. Immutable tar bytes are reused while every artifact under validation remains private. This removes 15 repeated tar launches on non-Windows (14 on Windows) and the repeated fixture Git configuration processes. Production +0/-0; tests +33/-26. No archive mutation, hash/manifest validation, subprocess boundary or timeout was weakened. The UI build failure was resolved by a mechanical refresh containing main's template-comment cleanup; the original test patch is byte-for-byte unchanged. The earlier standalone local UI size pass used an older Web Awesome dependency and is not parity proof; the exact-head locked CI result is the evidence here. Read the latest full ClawSweeper review and Rank-up list: its requested wait for exact-head CI is satisfied, and no actionable findings remain. Named follow-up: deferred Gateway readiness diagnostics. An earlier run (33470860374, job 99740305530) hit the existing 30-second readiness bound in doctor-config-preflight.process.test.ts. That log did not identify the stalled startup phase. The current run is green, but that alone does not diagnose the earlier failure; no readiness condition or timeout has been changed in this PR. |
|
Merged via squash.
|
What Problem This Solves
Registry validation cases repeatedly pack identical archives and spawn Git configuration commands solely to seed disposable repositories.
Why This Change Was Made
Keep the original successful tar bytes for each fixed package payload, then write a private archive file for every case. Corruption and deletion remain isolated. Pass fixture identity and signing settings directly to each seed commit.
On non-Windows, validation-fixture tar creation drops from 18 to 3 and 15 Git configuration subprocesses disappear. Windows source counts are 14 tar creations and 12 Git configuration subprocesses removed. Real packaging and every validation extraction still run.
User Impact
Test-only. All 15 artifact and five shell sibling cases remain. Production +0/-0; tests +33/-26. No elapsed-time gain or Windows execution is claimed.
Evidence
All 20 selected cases pass before and after with identical labels/statuses. The real planned-package creator, dirty-source rejection, tamper/missing-file/identity validation, symlink and stdin entrypoints, noisy packaging output and both server endpoints with joined shutdown remain covered.
Full changed checks and Codex autoreview pass. Reviewed complete owners and lifecycle helpers, the original Windows/CLI/server/package-set regressions, and fixture mutation isolation; independent source review found no actionable issue.