Repository navigation
fix: bound the post-test process snapshot - #43
Merged
Merged
Conversation
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.
Summary
The post-test process snapshot can no longer hold a CI or Native leg for 35 minutes.
NativeProcesses.RunAsyncandRequireAsynctake an optional timeout. The snapshot passes two minutes. Every other caller keeps the old 30- or 35-minute bound.CommandLineproperty ran one WMI query per process. Now one CIM query,Get-CimInstance Win32_Process -Property ProcessId,CommandLine -OperationTimeoutSec 30, reads all command lines into a map keyed by process id. If that query fails or times out, the map stays empty and those rows get an empty command-line field. Linux and macOS keep$_.CommandLine. The JSON shape and theprocesses.txtline format are unchanged.ci.yml, six innative.yml) gettimeout-minutes: 5. They stayif: always()and blocking.snapshotbullet inhosting-and-packaging.mdand the process-snapshot sentence inquality-gates.md. Both files' dates move forward.Fixes #42.
Transport and protocol impact
None. Only repository tooling, its tests, the workflows and canon change.
Verification
SDK version: 10.0.404. Operating system: Windows x64, plus the hosted runners.
New tests in
NativeProcessSnapshotTests:RecordAsync_Should_Send_One_Two_Minute_PowerShell_Query: fails on the base (timeout 35 minutes, not 2) and passes after.RecordAsync_Should_Format_Null_CommandLine_As_Empty_In_Cpu_Order: a characterization test. It passes on the base; a mutant that formatsnullas the text "null" breaks it.RecordAsync_Should_Query_The_Real_Test_Host: runs the real query through the real runner and finds the test host's own process, with its command line on Windows and Linux. On the Windows x64 machine, the base query did not finish within the test's 150-second guard, which reproduces the stall.Focused suite: 5 of 5 passed. The Release build has no warnings. Slopwatch, the whitespace check and the style check are clean. actionlint 1.7.7 is clean on both workflows.
A real snapshot on Windows x64 finished in 26.8 s, with command lines for 700 of 897 processes.
The hosted
CIandNativeruns on this head cover the three CI operating systems and every snapshot step.The local check passed, or this change
is limited to Markdown and
LICENSE. (Build, focused tests, Slopwatch and format checks locally; the full suite runs in hosted CI.)No tests were skipped, weakened, retried or deleted to make checks pass.
Dependencies and documentation
No dependency change. Documentation:
docs/architecture/hosting-and-packaging.mdanddocs/engineering/quality-gates.md.Suppression inventory
None.
and have maintainer approval; no warning or audit protection was weakened.
trailers, co-author lines or session links.
Reviewer focus