Repository navigation
fix(ci): full heartbeat admission proof no longer times out - #120955
Conversation
|
Codex review: found issues before merge. Reviewed August 9, 2026, 2:38 AM ET / 06:38 UTC. ClawSweeper reviewWhat this changesThe PR gives one cold full-stack heartbeat reply-admission test a named 240-second Vitest case budget instead of the generic 120-second deadline. Merge readinessKeep open for protected maintainer handling. The scoped timeout is the right test-only fix; one P3 cleanup should inline its one-use helper before normal exact-head CI completion. Priority: P3 Review scores
Verification
How this fits togetherHeartbeat processing turns queued system events into agent reply work, then removes only the events consumed by that agent. This regression test exercises that reply-admission and cleanup path for multiple agents sharing a global event queue. flowchart LR
A[Queued heartbeat events] --> B[Heartbeat runner]
B --> C[Reply admission]
C --> D[Agent reply stack]
D --> E[Event ownership filter]
E --> F[Selected-event cleanup]
F --> G[Full-stack regression test]
Decision needed
Why: The remaining change is mechanically small, but the protected maintainer label requires explicit human handling rather than automated closure or merge guidance. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the named timeout constant and comment, but pass it directly as this test’s Vitest timeout so the full-stack boundary stays covered without adding a parallel test API. Do we have a high-confidence way to reproduce the issue? No independent current-head run was performed in this read-only review; source confirms the 120-second default and the PR body records before/after runs for this isolated case. Is this the best way to solve the issue? Yes, scoping the larger timeout to this cold full-stack case is better than changing the global Vitest budget; inline the standard per-test form rather than retain a one-use wrapper. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4c2d8d8adb39. 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
|
|
@clawsweeper re-review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
a2790be to
7bc31fb
Compare
|
@clawsweeper re-review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What Problem This Solves
Fixes an issue where the full-runtime heartbeat reply-admission regression could hit Vitest's generic 120-second case ceiling while it was still actively progressing through the production reply stack. This failed otherwise healthy Node CI and blocked unrelated pull requests.
Why This Change Was Made
The test intentionally keeps the real heartbeat,
getReplyFromConfig, reply-agent, admission, and registry-cleanup wiring. It now uses a named 240-second budget scoped only to this one cold full-stack case; no product timeout or runtime behavior changes.The regression was introduced with the test in #119817 (authored by @licheer-zte, merged by @sallyom). Replacing the runtime seam with a faster mock would weaken the integration contract, so the production path remains unchanged.
User Impact
No user-visible product change. Maintainers get reliable CI coverage for global heartbeat event ownership without false timeouts on cold or loaded runners.
Evidence
git diff --checkpassed.oxfmt --check src/infra/heartbeat-runner.reply-admission.test.tspassed.Local
check:changedguards all passed through the core-test typecheck. The typecheck then hit two unrelated stale-worktree dependency errors (packages/terminal-core/src/ansi.tsarity and missing@openclaw/session-url-contract/parse); exact-head CI uses a fresh dependency snapshot and is the authoritative type gate.