Repository navigation
test(release): require live channel after restart - #127013
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 6:08 AM ET / 10:08 UTC. ClawSweeper reviewWhat this changesThe PR updates packaged release journeys to distinguish configured channels from running channels, wait for a new fixture WebSocket generation after restart, and preserve runtime fields in the fixture plugin’s status snapshot. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: current main still permits the post-restart check to pass from configuration alone, while this PR repairs that gap with a fixture-owned reconnect generation and a runtime-state assertion. No blocking defect was found in the patch; exact-head CI remains the normal merge gate. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe packaged release journey installs a temporary ClickClack channel plugin, starts and restarts the Gateway, and validates outbound and inbound messaging. The fixture exposes its connection generation so the journey can wait for the restarted channel before querying Gateway channel status. flowchart LR
A[Packaged release journey] --> B[ClickClack fixture]
A --> C[Gateway restart]
C --> D[New fixture connection]
D --> E[Channel status request]
E --> F[Running-account assertion]
F --> G[Release journey result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +186, Other +48. Total +234 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the fixture-owned generation synchronization and strict default-account runtime assertion, then merge after the exact-head release validation confirms the stronger invariant is stable. Do we have a high-confidence way to reproduce the issue? Yes. Current main starts the Gateway, then immediately accepts configured-channel status after restart; the PR body also records a packaged Testbox reproduction of the startup race. Is this the best way to solve the issue? Yes. Recording the connection generation at the fixture owner avoids both a fixed delay and the old cumulative socket-count false positive, while Gateway status supplies the runtime fact being asserted. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 814f193ef9d4. LabelsLabel 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 (10 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review Exact-head Testbox now passes after repairing the deterministic restart race without weakening the |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f91ac12 to
8e4c55f
Compare
|
Rebased onto current frozen Post-rebase evidence:
The prior unrelated compact-shard console-routing race is fixed on the rebased base. @clawsweeper re-review |
8e4c55f to
44c3d8b
Compare
44c3d8b to
cb5ed02
Compare
|
Rebased onto current |
cb5ed02 to
46f15e4
Compare
|
Land-ready proof for exact rebased head
The journey now distinguishes configuration from runtime health, waits for the restarted fixture's second WebSocket generation, and requires the default channel account to be running. |
|
Merged via squash.
|
* test(release): require live channel after restart * test(release): migrate upgrade channel assertion * test(release): assert channel runtime after restart * test(release): await restarted channel runtime * test(release): prove ClickClack reconnect generation * test(release): preserve fixture runtime status --------- Co-authored-by: Amp <[email protected]>
What Problem This Solves
The packaged release journey could pass after restarting the Gateway without proving that its configured ClickClack channel was actually running. A stricter first repair exposed a second issue: after restart, the journey waited only for Gateway readiness and could sample channel status before the restarted channel runtime had connected.
Why This Change Was Made
The journey now separates configuration proof from runtime proof:
channelAccounts.clickclack.default.running === true;The runtime invariant remains strict. The repair changes synchronization at the fixture owner rather than weakening the assertion or adding a timeout.
User Impact
Release validation now fails when a packaged upgrade leaves a configured channel stopped, and it does not false-fail merely because channel startup trails Gateway readiness. This protects the install → configure → restart → outbound/inbound journey that release users depend on.
Evidence
Exact rebased head:
46f15e4dd3e13d7dc26d0b6f17a9a8addcef4e48. The patch is byte-identical to the previously reviewed repair after rebasing onto currentmain.node scripts/run-vitest.mjs run test/scripts/release-user-journey-assertions.test.ts— 19/19 passed.node scripts/check-changed.mjs— passed on the exact rebased head.tbx_01m0hg2vxenhnya00wvcjng02dcompleted a real outbound/inbound round trip and then reproduced the post-restart startup race under the strict assertion.tbx_01m0hk4xbw4cqvm0f6789tsst8passed before the rebase.tbx_01m0yqksy3ny0qf1a0gkbf6hyvpassed package build/integrity, the bare Docker image build, andrelease-user-journeyin 76s; the delegated run completed in 8m37s.CI=1 NODE_OPTIONS=--max-old-space-size=4096 OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 OPENCLAW_DOCKER_ALL_LANES=release-user-journey pnpm test:docker:all.Authored by @steipete with Amp.