Repository navigation
fix(plugins): suspend unused install snapshot publication - #194456
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b83b50c71
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // Record the install-time closure for qualified lazy publication. Eager publication | ||
| // stays suspended until a startup reader can use the persisted artifact. |
There was a problem hiding this comment.
Update the install-persistence tests for suspended publication
With publication removed, both cases in src/plugins/plugin-source-snapshot-persistence.test.ts still expect persistPluginInstall() to publish a descriptor: lines 67–69 unconditionally parse the installed plugin's sourceSnapshot, which is now absent on their fresh installs. These cases will throw before reaching their digest and non-execution assertions. Update that production-boundary test to verify persisted digests and absent snapshots under the new contract, rather than updating only the preparation-helper tests. Root AGENTS.md explicitly requires updating consumer tests when behavior changes.
AGENTS.md reference: AGENTS.md:L82-L82
Useful? React with 👍 / 👎.
|
Merged via squash auto-merge.
|
) * fix(ci): clear inherited test budget and unused export failures Reconcile outstanding test-line debt from #194468, #194417, and #194464 with exact per-PR allocations. Shrink the scalar by the 37 test lines removed here so the effective ceiling equals 6559825. Remove the renderer test-only export introduced by #191935 and the digest helper orphaned by #194456. Route the ingress fixture through the production HTTP owner and retain install/persistence and worker loading proof. * test(gateway): specify the ingress fixture base path Supply the required empty controlUiBasePath to the production startup HTTP handler. The UI E2E typecheck passes; runtime behavior and test-line accounting are unchanged. * test(gateway): close failed ingress responses safely
…94456) * fix(plugins): suspend unused install snapshot publication * test(plugins): expect suspended snapshots in install persistence
…claw#194509) * fix(ci): clear inherited test budget and unused export failures Reconcile outstanding test-line debt from openclaw#194468, openclaw#194417, and openclaw#194464 with exact per-PR allocations. Shrink the scalar by the 37 test lines removed here so the effective ceiling equals 6559825. Remove the renderer test-only export introduced by openclaw#191935 and the digest helper orphaned by openclaw#194456. Route the ingress fixture through the production HTTP owner and retain install/persistence and worker loading proof. * test(gateway): specify the ingress fixture base path Supply the required empty controlUiBasePath to the production startup HTTP handler. The UI E2E typecheck passes; runtime behavior and test-line accounting are unchanged. * test(gateway): close failed ingress responses safely
Related: #187350. Follow-up to #189624.
What Problem This Solves
Managed plugin installs publish persistent source snapshots that startup does not consume, adding filesystem work and disk usage without a reader.
User Impact
Installs and updates stop publishing those unused snapshots. They still capture unexecuted source and record content/dependency-closure digests so a future reader can qualify lazy publication. Runtime startup continues to use fresh captures.
Why This Change Was Made
Suspend the install-time publication pass until a startup reader meets its security and performance gate. Keep the existing snapshot format, installed-index owner, rollback retention, reader custody, and retirement machinery for artifacts already created by main/nightly builds. No eager replacement or extra data deletion is introduced.
Current published stable tags v2026.10.10/v2026.11.1 and beta v2026.11.5-beta.1 exclude the original publisher commit and implementation paths. This changes no release artifact or fs-safe pin.
Evidence
The failing-first install-boundary regression observed two publication calls for two preparations; the suspended path must make zero while retaining matching content/closure digests and never evaluating plugin code. Existing artifact tests cover final-reader retirement and interrupted publication cleanup. All 35 focused install/artifact cases pass under the pinned runtime, including last-reader retirement, interrupted staging, owner changes, token replacement, and tamper rejection. Core and plugin-test type checks, scoped lint, formatting, and
git diff --checkpass. Independent P0–P2 review found no actionable issues. The change removes 41 net production lines with zero net test growth. The two real-install persistence cases also pass after replacing their old eager-publication expectations; they verify stable digests, normalized integrity, no snapshot artifacts/candidates, and no plugin execution across reinstall. The cached integration run took 18.1 s overall (7.6 s test execution); the initial CI run took 14.9 s for this file. Exact-head CI will be recorded before landing.The first CI head exposed exactly two stale persistence-test expectations that still required eager snapshots. They were reproduced locally and corrected to the new suspension contract; no production behavior was changed in that repair. Independent P0–P2 review of the repair is clean.