Repository navigation
fix(ci): keep fork embedded-agent shard alive on cold runners - #115035
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 3:48 AM ET / 07:48 UTC. ClawSweeper reviewWhat this changesThe PR extends the embedded-agent compact shard’s no-output and setup budgets for cold runners, increases its scheduling estimate so it stays isolated, and validates fork PR artifact SHAs with Bash rather than requiring ripgrep. Merge readinessThis is a focused, evidence-backed CI reliability fix with no blocking correctness finding. Keep it open for the assigned maintainer’s normal merge decision: the affected Priority: P2 Review scores
Verification
How this fits togetherThe compact CI planner groups Node test configurations into GitHub Actions jobs using runtime estimates and per-group environment settings. The embedded-agent suite is one unusually long serial test group; its watchdog and harness setup limits determine whether fork CI records progress or exits early. flowchart LR
A[Fork pull request] --> B[Compact CI planner]
B --> C[Embedded-agent test group]
C --> D[No-output watchdog]
C --> E[Harness setup]
D --> F[GitHub check result]
E --> F
A --> G[Review artifact metadata]
G --> F
Before merge
Agent review detailsSecurityNone. PR surfaceTests +12, Other +11. Total +23 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the narrow group-specific timeout and scheduling adjustment after rebasing or refreshing the merge result and confirming the remaining CI matrix; retain the isolation assertion so future planner changes cannot combine this cold-runner-heavy group with other work. Do we have a high-confidence way to reproduce the issue? Yes, from the supplied evidence and source diff: run the embedded-agent compact shard on a cold four-core fork-style runner and observe the prior 300-second no-output termination; the PR’s after-fix run and focused shard proof demonstrate the intended recovery path. Is this the best way to solve the issue? Yes. The patch fixes the failure at its two independent limits—the group watchdog and the heavyweight setup hook—while keeping the longer allowance and higher duration estimate confined to the one demonstrated cold-runner-heavy group. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fe19f8f54bb2. LabelsLabel 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 (1 earlier review cycle)
|
53c0232 to
b4b5313
Compare
|
Merged via squash.
|
…aw#115035) * fix(ci): unstick fork embedded-agent shard * test(ci): allow cold embedded harness setup
Related: #114777
What Problem This Solves
Fixes an issue where every fork pull request that falls back to the compact full Node matrix can fail
checks-node-compact-large-2on GitHub-hostedubuntu-24.04. Theagentic-agents-embeddedproject produces no reporter output while its first 157-test file runs, so cold four-core runners can cross the global 300-second no-output watchdog and exit 143 even though Vitest is still making progress.Why This Change Was Made
The embedded-agent whole-config group now carries a narrowly scoped seven-minute no-output budget and an honest 430-second compact-planner weight, which gives the known long first file enough cold-runner headroom and keeps the group in its own compact job. The same heavyweight file's setup hook now uses the matching seven-minute cap; the first fork proof got past the watchdog and exposed that separate five-minute hook limit. These changes do not widen either timeout for other shards. The PR also folds the fork-harness-safe Bash SHA validation from #114777 because that commit has not landed on
main.The diagnosis compared the last green four-core fork run with two failing fork runs and reproduced the project from a full Linux clone. The last green run was already silent for 269 seconds and completed the full project in 429 seconds; both failing runs reached the 300-second kill twice. A same-host timing bisect became progressively faster as filesystem state warmed and incorrectly pointed at an unrelated UI-only commit, while warmed current
mainfell from 220 seconds to 133 seconds for the heavyweight file. That rules out an attributable embedded-agent deadlock or deterministic product regression and identifies cold-runner/cache variance around a stale CI threshold.User Impact
Fork contributors can get a valid CI result again instead of an infrastructure-owned exit 143. There is no product runtime or user-visible behavior change.
Evidence
agentic-agents-embeddedafter two 300-second silent attempts.run.incomplete-turn.test.tsand finished the project in 428.55 seconds.beforeAlltimeout at 300 seconds. The follow-up aligns that hook with the group budget.openclaw/ci-gatewas green.tbx_01kyknt23rz9vp0xj501z7x0y1, run 30334202719.tbx_01kykte8vdabnkcbevcnrhd6g8, run 30339050739.pnpm check:changedpassed on Testboxtbx_01kykrap8r9a39rqps6gyzqfd7, run 30336707558.Rank-up Move Disposition
The optional refresh against current
mainis intentionally skipped. The branch is conflict-free, and the interveningmaincommits do not touch these four CI/test-harness files. OpenClaw's landing workflow treats behind-main drift as advisory and validates the actual merge result duringprepare-run; retaining the exact patch head also preserves the complete hosted fork proof above.AI-assisted: yes. I reviewed the implementation and the evidence above.
Rank-up moves