Repository navigation
fix(e2e): restart upgrade survivor after migration convergence - #120086
vincentkoc wants to merge 1 commit into
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: blocked before merge. Reviewed September 26, 2026, 5:41 PM ET / 21:41 UTC (Revision 12). ClawSweeper reviewWhat this changesThe branch adds a one-time retry for a specific migration-convergence refusal when Docker upgrade tests start a candidate Gateway, and adds helper mounts and tests for that path. Merge readiness⛔ Blocked before merge - 8 items remain Keep this maintainer draft open. Current main handles convergence during published-baseline startup, but does not demonstrably replace the manual candidate-start case. The linked successor remains a draft with failing hosted upgrade lanes, and the PR discussion explicitly keeps this branch pending diagnosis. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade-survivor harness installs and updates OpenClaw packages in Docker, then starts a candidate Gateway to check readiness and preserved state. Its startup result determines whether release validation proceeds to health and RPC checks. flowchart LR
A[Published baseline] --> B[Package update and Doctor]
B --> C[Candidate Gateway start]
C --> D{Startup result}
D -->|Ready| E[Health and state checks]
D -->|Convergence refusal| F[Bounded replacement start]
F --> C
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +242, Other +50. Total +292 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Diagnose the candidate readiness stall first. If a candidate restart is still required, put one bounded retry in the current harness lifecycle owner, drain the failed process tree, share one startup deadline, and verify a published-to-candidate package upgrade. Do we have a high-confidence way to reproduce the issue? No high-confidence current-main reproduction of the original exit-1 candidate refusal is available. Source establishes the branch's process-lifecycle and deadline defects, while the provided current-source package run stopped before the retry path. Is this the best way to solve the issue? No. A retry at the harness owner is plausible, but this implementation does not own failed descendants or one startup deadline, and its refusal trigger no longer matches current main's stated contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 047c88d1337e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
88f11ad to
895d15f
Compare
895d15f to
6b4a31b
Compare
Punchcard-Session: cobalt-valley-meadow-mg
6b4a31b to
a7fcee5
Compare
|
Closing as superseded after source and canonical-ancestry verification against live main
The earlier two same-product readiness failures remain unexplained. This closes the obsolete retry proposal, not a claimed fix for those waits. The original branch and evidence are preserved; no retry widening, timeout increase or assertion weakening. Related #120703 remains with its existing owner. |
Related: #119051
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where manual Docker upgrade-survivor candidate starts could receive the explicit migration-convergence refusal and the harness would fail immediately instead of restarting against the converged state.
Why This Change Was Made
This branch's upgrade-survivor launch path retries exactly once, and only when the first candidate gateway exits with status 1 and emits the exact migration-convergence refusal. The retry preserves state, config, port, environment, and arguments. It now covers both the manual survivor start and the pre-update candidate-auth start used by update-restart-auth; package self-update remains excluded.
User Impact
QA and release validation become reliable when a candidate needs one restart after migration convergence. Product runtime impact: 0.
Evidence
Retained historical branch proof:
895d15ff782299d27e5ad6b0bb66cd4ebeba372f.Current-main re-audit, September 26:
8977ea332fbf9ba0a8ddc6c75af4ad7f27cee82eand the published[email protected]package, source3928bad9badfcb6c7d140530435e806fb8092190.upgrade-survivor, passed the real package update, Doctor, config/state assertions and foreground candidate start without this PR's retry. One lane attempt, 215 seconds; startup 9 seconds; status 2 seconds; cleanup joined. Package integrity and npm installer companion checks also passed.3431f4cd2d8dbd6b936def2694ac27e19fa0256295cf4ada0f652ecf1c9ee520.Published-upgrade compatibility result, September 26:
2026.9.1to2026.9.2,base/manualcell on the same frozen tooling. One 231-second attempt; no timeout; cleanup joined.update-candidate, before the candidate Gateway start. Package installation, the swap and the updater's internal Doctor each returned 0, but the update returnedpost-update-plugins/post-plugin-doctor-invalid-config:plugins.load.pathsstill referenced the fixture's deliberately removedsurvivor-unavailable-path. The outer update success/recoverability assertion rejected that result.missing-load-path.shintentionally runs this fixture for base/manual. This is a historical package/fixture compatibility blocker, not proof of the original post-Doctor candidate-start refusal. The published trajectory remains unqualified; neither this failure nor the passing manual cell establishes whole-PR supersession.10911534530, SHA-256d3849b76cbb98bef20a889d626d482d424ffaef6790302083b52655e99e5e1d6. Existing artifact omissions remain explicit; no unavailable inner diagnostics are claimed.Current-source published-upgrade result, September 26:
5a27fda95008f6926b0c75d7a560524615694267as version2026.9.6, with frozen tooling8977ea332fbf9ba0a8ddc6c75af4ad7f27cee82e. Package SHA-256:07995e95dc505d00548e7469ca5493cb68e6d370e260f6d0560d90f8ba1ede16.2026.9.1to that source-built package,base/manual; no omitted lanes. One 586-second attempt, no outer timeout, cleanup joined. The owned temporary proof ref was removed and absence verified after completion.gateway-start: strict readiness polling exhausted while the candidate was still alive. It reached HTTP listening and sidecar startup, but the required ready marker did not appear. No candidate retry was attempted, and this did not reproduce the old exact exit-1 migration-convergence refusal.sidecars.model-auth; the encompassingsidecars.model-runtimecompletion was absent. Source places configured model-runtime snapshot publication at that boundary. This narrows investigation, not root-cause attribution.modelRuntime.stage,pendingAgentsordegradedstatus. Capture that existing status at the unresolved boundary in a justified diagnostic continuation before choosing a source repair; do not infer which inner await blocked from the last completed trace.d0931ccefcc25dae4853cc4ac1921c2ff5f58e51preserves the inspected convergence/refusal and upgrade-harness owners. New capture-lifetime, source-identity and retained-dependency changes are not a proven readiness fix or execution proof at that newer SHA.Diagnostic harness continuation, September 26:
4a7031afaf039df4584bac37ce44c3d1edca6df6, tree39509daf83bc2fe3f418e08e6f3b8475d5a81e96, adds one bounded direct-local/readyzand/startupzobservation before cleanup. It preserves the original readiness exit status, startup budgets and strict assertions. No application runtime change or retry was added.816174f20ba1produced two intended baseline failures at the missing-capture assertion and five candidate passes, with three filtered baseline cases. Sixteen changed-check stages passed, including root-test typechecking and scripts lint. The aggregate failed only on the new test helper's Promise rejection lint rule; that failed receipt remains preserved.2026.9.1to the same candidate,base/manualcell. Exact source and downstream admission passed; package integrity and npm installer checks passed. The unchanged product/package was reused from immutable artifact10912776972, producer run36261184406, attempt 1. One 659-second lane attempt, no outer timeout, no container OOM, joined cleanup. No product rebuild, retry or timeout increase./readyzand/startupzunavailable because each request timed out. The complete lane log reaches HTTP listening, thensidecars.model-auth, but no model-runtime completion. The nested 16-KiB Gateway capture is truncated earlier and is not the final startup trace. These observations establish HTTP unresponsiveness after listening; they do not identify an inner await, prove a deadlock or implicate credentials.Bounded wait-state diagnostic continuation:
b7cf39e2823daa6f279af5fd8e1c0ef21d955ff3, treeee76e30ea4dbd2a2442486a82141c2faa3544b92, adds/healthzafter the existing probes and bounded read-only Linux process/thread observations before and after them. It reuses the existing procfs observer, excludes arguments/environment/executable names/file-descriptor paths, and publishes through the existing redaction and size limits. Readiness status and cleanup ordering remain unchanged; no timeout increase, retry or product edit.4a7031afwith three unrelated cases filtered; all five candidate cases passed. The complete explicit four-path changed gate, Bash syntax, formatter and diff checks passed. All 212 pins and the complete tested tree match the final signed tooling commit after applying only the remote formatter delta. Independent P0-P2 review was clean, the fixture was removed, transport stayed unchanged, and the wrapper and lease completed successfully. This proves the diagnostic capture, not package readiness.10912776972, product5a27fda95008f6926b0c75d7a560524615694267, and package SHA-25607995e95dc505d00548e7469ca5493cb68e6d370e260f6d0560d90f8ba1ede16. The sole cell was published2026.9.1to candidate2026.9.6,base/manual: one 492-second attempt, no timeout, joined cleanup; startup 74 seconds, health/readiness one second each, status two seconds. Update, installed-package identity, Doctor, state/config survival, candidate startup and later probes/status passed. Expected plugin warnings and original artifact omissions remain explicit.Disposition: superseded, September 26.
95525d33eaea8b39b12fbca34b1f5624cb4a219b. Canonical #134002 /1c336870514b44e81c4ea0903031a30a35506889, #134410 /7f989bc446da6944530f8ac4edd8754f84f108e2, and #151607 /34c8ae00b678330a2bf531687efaae49e85e248care verified ancestors of that live main.missing-load-path.sh. Current candidate migration-identity refusals use exit 78, outside this helper's exact exit-1/text contract. The passing real package trajectory above supports retiring the obsolete proposal; no old retry is transplanted into current main.AI-assisted: yes. No agent transcript is included.
Punchcard-Session: cobalt-valley-meadow-mg