Repository navigation
test(qa): prove packaged plugin lifecycle transitions - #118973
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:11 PM ET / 22:11 UTC. ClawSweeper reviewWhat this changesThe PR expands the packaged plugin Docker lifecycle scenario to assert disabled/loaded runtime state and installed-version records after each lifecycle transition. Merge readinessThis maintainer-owned QA PR is still necessary: current main verifies runtime load only after install, while this branch verifies observed runtime state after disable, re-enable, upgrade, and downgrade. No blocking correctness or security finding was found; retain it for ordinary maintainer review and the exact-head merge gate. Priority: P3 Review scores
Verification
How this fits togetherQA Lab routes this scenario through a shared Docker adapter into a packaged OpenClaw install. It drives plugin lifecycle commands, then compares persisted install/config state and fresh runtime inspection output before reporting the scenario result. flowchart LR
A[QA scenario] --> B[Shared Docker lane]
B --> C[Packaged OpenClaw]
C --> D[Plugin lifecycle commands]
D --> E[Fresh runtime inspection]
E --> F[Config and install record checks]
F --> G[QA result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +100, Other +7. Total +107 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused packaged-Docker regression coverage after the normal maintainer review confirms the current merge result. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression proof rather than reporting a user-facing failure; its body supplies an after-fix packaged Docker scenario result. Is this the best way to solve the issue? Yes. Extending the existing packaged Docker lifecycle lane is the right owner boundary because it observes fresh runtime loading rather than only persisted config or install records. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a2e0eea58cda. 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)
|
|
Merged via squash.
|
What Problem This Solves
The packaged plugin lifecycle scenario did not prove runtime state after every lifecycle transition, and six plugin lifecycle coverage IDs had no primary owner.
Why This Change Was Made
The existing Docker matrix now inspects runtime state after install, disable, re-enable, upgrade, and downgrade. Update proof separately verifies successful command execution and the resulting SQLite install record, installed package version, canonical managed npm root, and loaded runtime state.
The scenario primarily covers:
plugins.activation-runtimeplugins.docker-lifecycle-suitesplugins.enable-and-disable-lifecycleplugins.lifecycle-package-updateplugins.lifecycle-update-runplugins.smoke-tests-lifecycleCLI repair and setup coverage remains secondary. Failed-update rollback policy is intentionally out of scope.
User Impact
No production behavior changes. Maintainers get stronger packaged regression proof for plugin activation, enable/disable, update, downgrade, and uninstall behavior.
Evidence
node scripts/run-vitest.mjs test/e2e/qa-lab/plugins/plugin-lifecycle-probe.e2e.test.ts- 10/10 passedOPENCLAW_BUILD_PRIVATE_QA=1 pnpm build- passed on retained Blacksmith TestboxOPENCLAW_QA_REF=db58fac4af7441201086ca089caf2a67b4b1b53d pnpm openclaw qa suite --scenario plugin-lifecycle-probe --output-dir .artifacts/qa-e2e/plugin-lifecycle-probe-exact-head- 1/1 passed; all six IDs recorded as primaryOPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 pnpm check:changed- passed all lanes on the same retained Testbox