Repository navigation
test(windows): prepare CIM before tests and sharing probes - #557
Merged
Merged
Conversation
stamp-build
Bot
force-pushed
the
agent/otter/windows-test-preparation
branch
from
October 30, 2026 15:21
3b72e27 to
9b198ab
Compare
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.
A fresh Windows runner exceeded five seconds before applying CPU load: an empty PowerShell command took 6.819 s, and the first CIM query timed out even after four empty commands. Later CPU-loaded queries finished within 1.39 s. An empty-shell warmup alone therefore does not establish that CIM is ready.
Vitest global setup and all six sharing-evidence entry points now perform one real CIM read before their existing test or measurement windows. Preparation has a 60 s limit, records total/query duration and native failure details, and fails if the observer's creation identity is missing. It discards the table; later reads and assertions still use their existing bounds and fail normally. Product code is unchanged.
The experiment script, both runs' selected measurements and interpretation are retained in experiments/windows-cim. The temporary investigation workflow is excluded. The report distinguishes the observed first-use delay from an unproved cause of the terminated CIM query and the separate Pi RPC cancellations.
Validation: CI=1 pnpm run check passed on Linux (2,533 tests and 18 mock behavior cases). Six preparation regressions cover non-Windows no-op, success, timeout, missing observer/identity and malformed output. Native Windows execution remains for this PR's CI. After merge, Cindy will rerun Qoder Windows resource evidence; this change does not itself fill that evidence gap.
Evidence: https://github.com/botiverse/oar/actions/runs/41065624954 and https://github.com/botiverse/oar/actions/runs/41067396304. Task #97.