Repository navigation
fix(ci): keep PTY tests observable and wait for completed turns - #117405
Conversation
b4d02b1 to
b9d20a3
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 10:40 AM ET / 14:40 UTC. ClawSweeper reviewWhat this changesThis PR gives the TUI pseudo-terminal test project the established long-running watchdog budget, emits GitHub Actions annotations alongside verbose output, and shortens shutdown only for the isolated local-TUI test child. Merge readinessThe patch is a focused, source-backed repair for the TUI PTY CI project: current Priority: P2 Review scores
Verification
How this fits togetherThe Vitest wrapper selects a project config and injects watchdog settings into the test process. The TUI PTY project runs real terminal fixtures; its reporter output and child-only shutdown behavior determine whether CI exposes progress and finishes the fixture promptly. flowchart LR
A[CI TUI PTY job] --> B[Vitest wrapper]
B --> C[Project timeout selection]
C --> D[TUI PTY test project]
D --> E[Verbose and GitHub reporting]
D --> F[Local TUI child fixture]
F --> G[Bounded shutdown]
E --> H[Observable CI outcome]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceTests +2, Other +1. Total +3 across 4 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the config-specific 300-second watchdog and child-only shutdown override, then merge only after the exact head has completed its required CI gates. Do we have a high-confidence way to reproduce the issue? Yes, from source: invoking Is this the best way to solve the issue? Yes. Adding the already-established long-running budget at the wrapper’s project-selection owner and keeping the shutdown grace inside the isolated fixture is narrower and safer than changing global timeouts or production shutdown defaults. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 133a8a627429. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
b9d20a3 to
6506524
Compare
|
Maintainer decision: accept the TUI-PTY-only no-output watchdog increase from 120s to 300s. This project permits 150s tests, 300s matches the existing GitHub CI budget, and verbose per-case/GitHub annotation reporting plus completed-turn/idle waits preserve progress and hang visibility. The bounded 500ms child-process grace fixes the reproduced local shutdown hang. On the exact current head, check-test-types and the required openclaw/ci-gate are green. |
6506524 to
ab37627
Compare
…up-ownership-20260801 * origin/main: fix(gateway): trim audit.list exact-match filter ids (openclaw#110847) fix: harden plugin import-boundary guards and remove dead scanner (openclaw#117386) fix(ci): keep PTY tests observable and wait for completed turns (openclaw#117405) fix(plugins): resolve marketplace aliases without recursive cycles (openclaw#117440) fix: break command recovery import cycle (openclaw#116947) fix: clear offscreen command recovery fix: fence command recovery ownership fix: scope failed command recovery fix(plugins): fail closed on ambiguous uninstall targets (openclaw#117406)
…claw#117405) Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit deabae4)
…claw#117405) Co-authored-by: Peter Steinberger <[email protected]>
…up-ownership-20260801 * origin/main: fix(gateway): trim audit.list exact-match filter ids (openclaw#110847) fix: harden plugin import-boundary guards and remove dead scanner (openclaw#117386) fix(ci): keep PTY tests observable and wait for completed turns (openclaw#117405) fix(plugins): resolve marketplace aliases without recursive cycles (openclaw#117440) fix: break command recovery import cycle (openclaw#116947) fix: clear offscreen command recovery fix: fence command recovery ownership fix: scope failed command recovery fix(plugins): fail closed on ambiguous uninstall targets (openclaw#117406)
Summary
This repairs the shared required TUI CI failure currently blocking otherwise reviewed changes, including #117355 and #117381. The original commit author, author date, and commit subject are preserved.
Real failure and verification
120000ms silent-output timeout instead of the required300000ms.133826ms withtimed out waiting for PTY exit: the fixture allowed 4 seconds, while the normal local shutdown grace is 120 seconds plus its 2-second hard-exit allowance.8576ms after setting the existing test-child-onlyOPENCLAW_TUI_LOCAL_RUN_SHUTDOWN_GRACE_MS=500.test/scripts/run-vitest.test.tswatchdog suite, core-test and root-test typechecks, all core and script lint shards, and the complete scoped changed/security/plugin/dependency/dead-code gates.a1a0a1bc4905f0cdc582c17357613866507c95f151e348a2c827fe32008850cd; complete final remote proof exited successfully.