Skip to content

test(vendor): avoid startup and certificate fixture timeouts - #539

Merged
stamp-build[bot] merged 2 commits into
mainfrom
agent/otter/vendor-startup-fixtures
Oct 30, 2026
Merged

stamp-build[bot] merged 2 commits into
mainfrom
agent/otter/vendor-startup-fixtures

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 →


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 check passed (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 only session/resume to use the ordinary limit made the first test fail at its 20-second deadline; product code was restored before the passing checks.

@stamp-build
stamp-build Bot force-pushed the agent/otter/vendor-startup-fixtures branch from d2756c0 to f081358 Compare October 30, 2026 01:03
@stamp-build
stamp-build Bot merged commit be99ea6 into main Oct 30, 2026
36 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/vendor-startup-fixtures branch October 30, 2026 01:23
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]>
@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