Repository navigation
test(vendor): avoid startup and certificate fixture timeouts - #539
Merged
Merged
Conversation
stamp-build
Bot
force-pushed
the
agent/otter/vendor-startup-fixtures
branch
from
October 30, 2026 01:03
d2756c0 to
f081358
Compare
stamp-build Bot
added a commit
that referenced
this pull request
Oct 30, 2026
<!-- stamp:review:v1 --> <sup><img src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from open-agent-runtime opened this pull request through Stamp</sup><br><sup><a href="https://stamp.build/review?receipt=prc_69721218ee4bcdaced6b9352a0f2cd99"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp →</a></sup> --- <!-- /stamp:review:v1 --> 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. Co-authored-by: Otter <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slow CI machines could fail before reaching the behavior under test: the Kimi hook fixture limited initialization to two seconds, and the Claude configuration fixture generated an RSA certificate within a twenty-second command limit.
Raise Kimi's ordinary request limit to 20 seconds while keeping it below the 24-second hook and 32-second session-opening limit. Both new sessions and cold resume must therefore use the opening limit to pass. The cleanup case uses a 45-second hook; existing assertions and both 120-second test limits remain. Use EC P-256 for Claude's local TLS certificate and include exit code, signal, timeout and native error details on setup failure. Its twenty-second command limit is unchanged.
The two failing macOS logs only show initialization exceeding two seconds, not its exact duration. Retained traces show complete startup, including installation and initialization, taking up to 6.505 seconds in the inspected samples; the new request limit has more than three times that margin. Sources: PR537 attempt and main a554107.
Validation:
CI=1 pnpm run checkpassed (2,485 unit tests and 18 mock behavior cases). Both revised Kimi 2.4.0 hook cases and six Claude 2.1.312 configuration/refresh cases passed against isolated local providers on Linux. Temporarily forcing onlysession/resumeto use the ordinary limit made the first test fail at its 20-second deadline; product code was restored before the passing checks.