Repository navigation
fix(ci): prevent hosted TUI PTY starvation - #119339
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 7:03 PM ET / 23:03 UTC. ClawSweeper reviewWhat this changesThe PR runs the built local TUI PTY smoke after other artifact checks, documents the ordering, and guards the three wait boundaries in workflow tests. Regression provenancePossible regression — probable (reproduction; failure trace; reviewed change). No predecessor PR is attributed. Merge readinessNo blocking patch defect found. This is a focused, maintainer-owned CI repair with source-backed ordering coverage; keep it open for the current exact-head CI completion and maintainer merge decision. Priority: P2 Review scores
Verification
How this fits togetherThe build-artifacts CI job runs selected validation shards against the built CLI. Its TUI PTY smoke starts a real Gateway fixture, so it must not contend with other hosted-runner checks for process capacity. flowchart LR
A[Preflight selection] --> B[Build artifacts job]
B --> C[Parallel channel and core checks]
C --> D[First wait boundary]
D --> E[Hosted Gateway watch if selected]
E --> F[Gateway wait boundary]
F --> G[Built local TUI PTY]
G --> H[Artifact check results]
Decision needed
Why: The patch deliberately trades CI wall time for deterministic fixture capacity, and this maintainer-authored, protected workflow change requires a human merge decision. Before merge
Agent review detailsSecurityNone. PR surfaceTests +12, Docs 0, Config +3. Total +15 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep the three-stage scheduling model: finish sibling artifacts, run hosted Gateway watch when selected, then run the real-Gateway TUI PTY smoke alone with the guard preserving those boundaries. Do we have a high-confidence way to reproduce the issue? Yes. The linked report gives a concrete hosted-runner path, while current source shows the TUI local smoke was launched beside sibling checks before this patch; the PR body supplies isolated and serialized-run evidence. Is this the best way to solve the issue? Yes. The workflow owns this resource-scheduling boundary, and moving only the real-Gateway TUI lane behind existing waits preserves the selected checks and avoids masking contention through timeout or retry changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fb81d03d8eb2. 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
History |
Run the built local TUI PTY lane after the other artifact checks so its real Gateway fixture has exclusive process and event-loop capacity. Punchcard-Session: cobalt-brook-meadow-m9
4b819fa to
496ee23
Compare
|
Merged via squash.
|
Punchcard-Session: crisp-lantern-orchard-nv * origin/main: perf(memory): defer session backfill runtime (#119372) fix(ci): isolate built TUI PTY fixture (#119339) fix(commands): restore tool inventory for dynamic models (#119306) fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257) docs: add ChromeOS (Crostini) platform install guide (#107663) test(msteams): serve JWKS from in-process server in auth coverage (#119354) fix(qa): enable OpenAI for stored audio scenario (#119349) test(agents): realpath apply-patch temp dir fixture (#119353) test(slack): drop redundant .js-suffixed system-event mock (#119352) fix(exec): leave safe builtins unrewritten in enforced mode (#119351) fix(sessions): keep gateway responsive while large transcript archives are built (#112424) fix(tui): restore provider auth in installed local mode (#119283)
…time * origin/main: fix(ui): clear split-pane questions after answers and cancellations (#118787) fix(slack): authorize reaction and message reads before applying limits (#118736) fix(ci): isolate cache warmer configs (#119381) fix(slack): Fix bad escaping in slack tool commentary (#119373) feat(audit): add execution identity inspection (#117034) fix(fs): adopt fs-safe 0.5.2 untrusted filename sanitization (#119363) fix(ci): preserve release evidence across reruns (#119380) fix(telegram): keep commands responsive during Codex login perf(memory): defer session backfill runtime (#119372) fix(ci): isolate built TUI PTY fixture (#119339)
Run the built local TUI PTY lane after the other artifact checks so its real Gateway fixture has exclusive process and event-loop capacity. Punchcard-Session: cobalt-brook-meadow-m9
Closes #119327
What Problem This Solves
Fixes an issue where pull requests selecting the built local TUI PTY artifact lane could fail exact-head CI on GitHub-hosted runners even though the same TUI suite passed when run alone.
Four unrelated PR heads showed the same pattern: channel and core-support checks completed, then the real local Gateway fixture in the TUI suite stalled on request or connection deadlines. That leaves otherwise-correct contributor fixes unable to pass the native prepare/merge gate.
Why This Change Was Made
The built local TUI lane now runs after the other artifact checks and gets an explicit
wait_checksboundary. Self-hosted runners retain their existing parallel channel, core-support, and Gateway-watch work; GitHub-hosted runners retain their existing serialized Gateway-watch path.This does not change a timeout, assertion, retry, or product runtime. It gives the real Gateway fixture exclusive process and event-loop capacity, matching the workflow's existing hosted-runner treatment for Gateway watch.
User Impact
No product runtime behavior changes. Maintainers get reliable exact-head CI classification for TUI-touching pull requests instead of shared-runner starvation failures.
Production runtime LOC delta:
0.Evidence
Observed concurrent failures:
Isolated controls:
mainpassed 80/80 built local TUI tests, including the same failure cases: https://github.com/openclaw/openclaw/actions/runs/30941704238Focused validation:
node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts: 97 passed, 1 skippedactionlint: passedoxfmt --checkon all changed files: passedgit diff --check: passedbuild-artifacts: passedautoreviewwas attempted but its local Codex subprocess produced no review output; no clean autoreview result is claimed. The change was reviewed directly and is queued for exact-head ClawSweeper review.AI-assisted: yes. The maintainer reviewed the exact diff, failure signatures, history, and validation evidence.
Punchcard-Session: cobalt-brook-meadow-m9