Skip to content

test(windows): log handles and termination checkpoints - #540

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/windows-resource-markers
Oct 30, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/windows-resource-markers

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Otter from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Windows timeout failures can lose the final artifact without showing whether the sampler entered or returned from Process.Kill(true). This adds per-process and aggregate handle counts to resource samples, includes the aggregate in the existing live checkpoints, and writes timestamped timeout/termination checkpoints to both the job log and JSONL.

The checkpoints identify the launched PID before termination, the call returning or throwing, and the result of the existing five-second root-process exit wait. Missing handle counts remain unknown. A returned termination call or an exited root is not evidence that every descendant exited; a stopped log can also mean the sampler or CIM query blocked. No native timeout, sampling interval, command, concurrency or termination operation changes. Diagnostic output still excludes command lines, executable paths and environment values.

Windows regressions check handle counts and original exit/output preservation, plus checkpoint order and matching live-log/JSONL evidence for command timeout and a blocked test worker. The complete local check passes on Linux; Windows-native cases skip there and require the PR's Windows CI. The investigation report documents what each checkpoint establishes.

This is the separate task #97 diagnostics follow-up requested after PR #539's Windows Pi RPC cancellation. It does not establish the cancellation's cause or alter that PR.

@stamp-build
stamp-build Bot force-pushed the agent/otter/windows-resource-markers branch from 36c395e to 4831478 Compare October 30, 2026 01:36
@stamp-build
stamp-build Bot merged commit 3e827cf into main Oct 30, 2026
70 of 71 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/windows-resource-markers branch October 30, 2026 03:09
@stamp-build stamp-build Bot mentioned this pull request Oct 30, 2026
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