Skip to content

test(release): reuse immutable registry fixture archives - #134804

Merged
steipete merged 3 commits into
mainfrom
codex/test-registry-archive-fixtures
Sep 1, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/test-registry-archive-fixtures

Conversation

@steipete

@steipete steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

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.

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs test/scripts/prepublish-plugin-registry-artifact.test.ts test/scripts/prepublish-plugin-registry-shell.test.ts
OPENCLAW_LOCAL_CHECK_MODE=full node scripts/check-changed.mjs --base 13d17fb10d1a78c18bcf2f75a4d5e36eba32b98c

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 04:24
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 1:16 AM ET / 05:16 UTC.

ClawSweeper review

What this changes

The PR caches immutable fixture tarball bytes and passes temporary Git identity settings per commit to reduce repeated setup in release-registry tests.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: 21570523741bd5b08127c4ade3e05063cb523331

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test-only cleanup with preserved validation coverage and no concrete correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR changes fixture setup; its relevant evidence is the retained owner-boundary test coverage rather than user-facing runtime proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only PR changes fixture setup; its relevant evidence is the retained owner-boundary test coverage rather than user-facing runtime proof.
Evidence reviewed 5 items Introduced fixture isolation: The helper caches only source bytes, writes them into each test's own artifact path, and leaves corruption/deletion tests operating on private files.
Existing contract remains exercised: The unchanged production owner still validates manifest identity, required packages, exact files, tarball hashes, and embedded package identity; the changed fixture continues to call it.
Mutation-sensitive cases retained: The test still tampers with a per-fixture tarball and separately asserts dirty-source rejection after the helper changes.
Findings None None.
Security None None.

How this fits together

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

Before merge

  • Resolve merge risk (P1) - Exact-head CI was still in progress in the supplied snapshot, so this review is not a merge-ready signal.
  • Complete next step (P2) - No concrete automated repair is needed; this protected maintainer PR awaits ordinary review and exact-head CI.
Agent review details

Security

None.

PR surface

Tests +7. Total +7 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 33 26 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 33 26 +7

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +33/-26 All changes are confined to one test fixture, with no runtime, package, configuration, or release-surface growth.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the cache local to fixture construction and merge only after the exact-head checks complete successfully.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

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

Labels

Label justifications:

  • P3: This is a bounded test-fixture efficiency and cleanup change with no 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: This maintainer-authored, test-only PR changes fixture setup; its relevant evidence is the retained owner-boundary test coverage rather than user-facing runtime proof.

Evidence

What I checked:

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the exact-head CI run to finish before merging.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-01T04:30:19.004Z sha 802255c :: needs maintainer review before merge. :: none

@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

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.

@steipete
steipete merged commit 63c53d7 into main Sep 1, 2026
156 checks passed
@steipete
steipete deleted the codex/test-registry-archive-fixtures branch September 1, 2026 05:23
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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