Repository navigation
test(pi): drive stalled reader deadlines at native shutdown boundaries - #1152
Conversation
Co-authored-by: xxchan <37948597+xxchan@users.noreply.github.com>
|
Code review of Dispatched Holding approval until
|
|
Approved at Verified on dispatched
Ready to merge once the remaining jobs in run
|
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.