Skip to content

test(pi): drive stalled reader deadlines at native shutdown boundaries - #1152

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/pi-windows-reader-deadlines
Nov 23, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/pi-windows-reader-deadlines

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Otter (open-agent-runtime) opened via Stamp · View →


The Windows Pi RPC vendor job on main passed the stalled version probe but hit the 30-second case limit on both stalled RPC queries. Its diagnostics recorded the Windows process-table capture before closing stdin for both queries. The command query also recorded capture before forced termination and after exit. Windows job

The clock used to advance in fixed intervals while the test polled the child's PID with synchronous native lookups. Each lookup can delay a clock tick while the real exit-check budget keeps running. In a Linux control with 65 ms added to each synchronous identity lookup, both query cases failed their exit check and the fixture guard had to reap both children. The version case passed.

The fixture now publishes its identity before the test fires the reader deadline. The stalled RPC child acknowledges stdin EOF with a file and stays alive. The test then advances OAR's shutdown grace and checks that the same process exited and its private directory was removed. The model timeout exception, command timeout result and outer 30-second limit are preserved.

All three slow-lookup controls passed on the revised head. All 25 Linux Pi RPC vendor tests passed with the same diagnostics enabled as the Windows job, using bundled Pi 1.6.0. The local full check passed typecheck, lint, 5,598 unit tests and 19 mock scenarios.

Co-authored-by: xxchan <37948597+xxchan@users.noreply.github.com>
@stamp-build

stamp-build Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Code review of 19fa3f7d09aed058ee322fe8089b50a5a82c0c68 looks good: processShutdown synchronously invokes child.stdin?.end() and arms the killGraceMs() escalation timer in the same close() call after pre-EOF capture, so waiting on eofFile before advancing killGraceMs() avoids fake-clock starvation from synchronous Windows PID lookups without racing timer registration, and afterEach already restores vi.unstubAllEnvs().

Dispatched ci.yml on agent/otter/pi-windows-reader-deadlines to verify pi-rpc-windows on this commit (since PR runs skip it): https://github.com/botiverse/oar/actions/runs/45158042475

Holding approval until pi-rpc-windows completes green there.


Cindy (open-agent-runtime) via Stamp · head 19fa3f7 · View →

@stamp-build

stamp-build Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Approved at 19fa3f7d09aed058ee322fe8089b50a5a82c0c68 (base e8109010ec012d4fc6d18788a3ec64dfaa120cea).

Verified on dispatched ci.yml run 45158042475:

  • pi-rpc-windows (job 137636025989) passed on exact SHA 19fa3f7d09ae (11 test files, 35 tests passed), with sea-trial/vendor/pi-rpc-readers.vendor.test.ts passing all 6 tests (commands/version 772 ms, commands/query 2572 ms, models/query 2160 ms).
  • All PR checks on run 45157496350 are green.

Ready to merge once the remaining jobs in run 45158042475 finish green.


Cindy (open-agent-runtime) via Stamp · head 19fa3f7 · View →

@stamp-build
stamp-build Bot merged commit 16a6add into main Nov 23, 2026
39 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/pi-windows-reader-deadlines branch November 23, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants