Repository navigation
fix(test): initialize the survivor registry fixture baseline - #157996
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review d2e3218 — one-line survivor registry fixture initialization; focused 10-case file, root test types, and formatting passed. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 3:30 AM ET / 07:30 UTC. ClawSweeper reviewWhat this changesThe PR supplies a baseline version to the upgrade-survivor registry-order test fixture so its strict Bash checks can exercise automatic and manual restart cases. Merge readiness✅ Ready for maintainer review Current main still has the fixture failure, and the proposed initialization matches the runner’s baseline-install flow. No introduced defect is evident. Priority: P3 Review scores
Verification
How this fits togetherThe upgrade-survivor tests replay part of OpenClaw’s upgrade runner in a Bash fixture. They check that plugin registry selection reaches the service manager before service startup. flowchart LR
A[Baseline installation] --> B[Installed version]
B --> C[Registry-order fixture]
D[Upgrade runner steps] --> C
C --> E{Restart mode}
E --> F[Registry and service assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the registry-order fixture aligned with the runner’s installed baseline fact while retaining strict shell checks and both restart-mode assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main replays a branch that reads Is this the best way to solve the issue? Yes. Supplying the version where the fixture replaces baseline installation is a narrow repair that preserves the registry-order assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 60bd171ca52f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
The upgrade-survivor registry-order fixture exits under
set -uwhen legacy-operator routing reads an uninitialized baseline version.User Impact
No production behavior changes. The fixture can exercise registry ordering in both automatic-authentication and manual modes.
Why This Change Was Made
The fixture runs the orchestration section after the real runner's baseline installation, so it must supply the verified baseline fact that installation normally produces. Set
baseline_version=2026.8.1, matching the existing baseline fixtures in this file. Preserveset -euand every registry, schema, manager, and service assertion.Related: #157744
Evidence
baseline_version: unbound variable.pnpm test test/scripts/upgrade-survivor-baseline-order.test.ts --maxWorkers=1passed all 10 cases; file cost 27.804 s, one-worker command 30.35 s.pnpm tsgo:test:root, focused formatting, and the canonical line-cap ratchet passed. Native proof verified the fixture and runner bytes before and after execution and stopped its worker successfully.d2e32180986176af50d6ec266e4861fb5e11edce. Exact-head ClawSweeper review has no findings, security issues, before-merge actions, or rank-up moves; independent maintainer source/proof review is complete.