Repository navigation
fix(release): retry converging survivor gateway startup - #120703
vincentkoc wants to merge 8 commits into
Conversation
Punchcard-Session: amber-workshop-workshop-36
Punchcard-Session: amber-workshop-workshop-36
Punchcard-Session: amber-workshop-workshop-36
6519148 to
c6495f5
Compare
Punchcard-Session: amber-workshop-workshop-36
Punchcard-Session: amber-workshop-workshop-36 * origin/main: (28 commits) perf(doctor): keep bundled doctor contract closures dependency-light (#120698) fix(elevenlabs): preserve repeated committed speech segments (#120792) fix(ai): fence Responses replay metadata (#120777) fix(ai): invalidate stale compaction replay (#120786) fix(telegram): clean up every failed webhook startup phase (#120788) fix(codex): preserve configured MCP tools in scheduled turns (#120366) fix(ui): show dev checkout commit lag in Updates (#120769) fix(agents): repair XML-polluted tool names (#113814) fix(discord): remove only the bot own reactions (#120785) fix(macos): complete ChatGPT subscription setup (#120782) fix(plugins): surface safe administrator install warnings (#120783) fix(release): keep upgrade survivor sessions fresh (#120778) fix(providers): preserve realtime tool-result delivery ownership (#120776) fix(plugins): retain incognito scope for embedded session ownership (#120215) fix(elevenlabs): surface realtime provider error events (#120772) fix(agents): preserve exact steering delivery ownership (#120770) fix(telegram): prevent session-count routing slowdown (#120774) fix(agents): preserve authoritative background process outcomes (#120754) test(process): make Linux adapter wiring portable (#120741) fix(diagnostics-prometheus): send Content-Length on metrics HEAD responses (#120212) ...
Punchcard-Session: amber-workshop-workshop-36 * origin/main: fix(discord): deduplicate directory peers across guilds (#120797)
|
@clawsweeper re-review Please review exact behavioral head The follow-up keeps PGID ownership but prevents zombie-only groups from blocking the generated systemctl shim: Local focused proof is recorded in the PR body. Exact-head hosted Docker validation is running at https://github.com/openclaw/openclaw/actions/runs/31287351417. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: blocked before merge. Reviewed October 3, 2026, 8:00 AM ET / 12:00 UTC (Revision 16). ClawSweeper reviewWhat this changesThe release upgrade-test harness retries a specific startup refusal once and tracks process groups so replacement gateways wait for surviving descendants. Merge readiness⛔ Blocked before merge - 6 items remain Keep open and blocked: all three prior findings remain on the pinned head. Related merged repairs cover parts of this area, but do not establish whole-PR supersession; maintainer authorship and the protected label also require owner handling. Priority: P2 Review scores
Verification
How this fits togetherUpgrade-survivor tests install and update OpenClaw packages, then start gateways and verify readiness and preserved state. Their process lifecycle helpers determine whether an old gateway has stopped before another starts. flowchart TD
A[Installed or upgraded package] --> B[Gateway launch]
B --> C[Readiness and exit checks]
C --> D{Exact convergence refusal}
D -->|Yes| E[Drain owned process group]
E --> F[One replacement launch]
D -->|No| G[Report readiness or failure]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +899, Other +208. Total +1107 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the current harness owners for any remaining candidate-start retry, with child settlement before supervisor exit, bounded cleanup, and preserved failure diagnostics. Do we have a high-confidence way to reproduce the issue? Yes, the patch defects have clear source paths: stop a managed supervisor with a TERM-resistant child, or exhaust readiness near the shared deadline. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? No, the pinned implementation is not yet the best fix: its outer stop timer races the lifecycle owner, and its cleanup and diagnostic paths violate the stated deadline contract. Reconcile the useful behavior with current main's canonical harness. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 063685e96d00. LabelsLabel changes: No label changes. Label 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 (15 earlier review cycles; latest 8 shown)
|
Punchcard-Session: amber-workshop-workshop-36
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This draft has had no commits since August and is still blocked on review findings; related repairs to the upgrade-survivor harness have landed separately. If the retry is still needed, please open a fresh PR against current main. |
Supersedes #120086
Related: #119051
What Problem This Solves
The upgrade-survivor convergence harness could begin its second gateway launch after the first leader exited but before every process-group descendant had actually stopped. A TERM-resistant descendant could still own port 18789, so the retry raced the old process group and failed with
EADDRINUSE. Zombie-only groups had the inverse failure mode:kill -0 -PGIDstayed successful after every live member had exited, blocking replacement forever.Why This Change Was Made
The architectural owner is the upgrade-survivor harness process-group lifecycle in
scripts/e2e/lib/upgrade-survivor/gateway-start.sh./proc/[0-9]*/statcontains a non-zombie member.This is the canonical replacement for #120086. It carries that PR's useful upgrade-survivor work forward on current
main, then repairs process-group ownership, zombie handling, and the retry race at their harness owner.User Impact
Release upgrade-survivor checks no longer retry a gateway while the previous process group still owns the port, and they no longer hang on zombie-only groups. Product runtime code is unchanged.
Signed Candidate And LOC
9d64b5e4b4583929c8be1d573f0e9cd2ad505246.ff0953acd59678d285018d701a0e92b6d84716db.Punchcard-Session: amber-workshop-workshop-36.origin/main: release harness+301/-93(net+208); tests+903/-4(net+899); product production0.ff0953...: release harness+30/-15(net+15); tests+187/-0; product production0.Evidence
origin/mainrefresh. Immediately afterward,origin/mainwas frozen at1fc9d158045fd48811d5a4aa9d3f63ad220b8cf2, the PR head remained9d64b5e4..., and the fresh merge-tree and path-overlap checks below passed. No replacement parent was dispatched.origin/main:77dce7f9e7b68ddf08f818df08a86044a95353e8.af9b872604bec8e3c6a41ba5f822032a38212a88: none.git diff --check origin/main...9d64b5e4...: passed.bash -n scripts/e2e/lib/upgrade-survivor/gateway-start.sh: passed.node scripts/run-vitest.mjs test/scripts/upgrade-survivor-gateway-start.test.ts: 15 passed, 3 platform skips. The new process-group drain cases are Linux-only and are covered by the targeted hosted lanes.update-run-package-self-upgradepassed;upgrade-survivor,root-managed-vps-upgrade,published-upgrade-survivor, andupdate-restart-authfailed. No rerun or cancellation was performed.upgrade-survivor,root-managed-vps-upgrade, andpublished-upgrade-survivorpass update, doctor, and survival, then fail at gateway start because every launch refreshes the stale configuredcodexplugin from@openclaw/codex, changing the plugin migration fingerprint.update-restart-authfails earlier inupdate-candidate: the restarted service is active but never becomes healthy, while port 18789 remains free, consistent with the same plugin-convergence blocker.EADDRINUSEor a process-group drain error. The exact manual-lane signature already existed on parentff0953acd59678d285018d701a0e92b6d84716dbin https://github.com/openclaw/openclaw/actions/runs/31287776949, so9d64b5e4b4583929c8be1d573f0e9cd2ad505246is not causal. Landing is parked on the canonical plugin inventory/fingerprint convergence repair.Punchcard-Session: amber-workshop-workshop-36
Punchcard-Receipt: pc1.cHVuY2hjYXJkLXNlcnZlci1yZWNlaXB0LXYxAGF0dF8wMUtaSjBGTjdNRktGSDFQNVBLNVA1UzgyMAB0bnRfMDFKMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAdXNyXzAxSjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxAGRldl9FMDNCQTNBOENDNzdGOUQ5QjFCRTI3RTE5MgB3cmtfMDFLWkFCN1pDVzBHRktKTVI5QTdKRjA2MlQAc2VzXzAxS1pGWE42TVBWRDRBMzM2VlZDWVdHUDQ1AGFtYmVyLXdvcmtzaG9wLXdvcmtzaG9wLTM2AG9wZW5jbGF3L29wZW5jbGF3AAAxMjA3MDMAYWIwOWEwYjk4NWM1ODcwNGI4NmVhZGNiYTVmM2Y3NTRhNTVkZmJhYjE5ZmNjMDg5OTViODU0YjlmMWZjOWEyMgBzaWduaW5nLXYxAHdITFBhRlZsSWZFRmN1UUFCeS1XaW5pV29lMTBpWGFLcFh2dzVTQjV6ZDRDTGhuZ3lqc0NVYk5MS2doQTMwQXZ6czQydkpvSGZIRUJiOXN0MkZvX0RBADIwMjYtMDgtMDlUMDA6NTk6MDYuMzU2WgA.prQiWR2Q_LVnNOy5Bj3gRq_lZj2tfCopEgEGNM1niTZXZ_tInSp3ui5qZFWlZkNqX42pqk1tUT0CUrBwjWHQDw
References OCF-120