Repository navigation
Open
Description
Summary
On the windows-2025 leg of build-and-test, the hosted runner sometimes loses its connection to GitHub. The job then fails with this annotation: "The hosted runner lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error."
- It happened in 3 of about 17 Windows runs between 2026-11-06 and 2026-11-07.
- It never happened on
ubuntu-24.04ormacos-15. - Cause unproven. Nothing so far shows whether it comes from this repository's tests or from the hosted runner environment.
Failed runs
| Run | Event | Head |
|---|---|---|
| https://github.com/opencode-dotnet/opencode-mcp/actions/runs/42238388069 | pull_request |
dcd0262 |
| https://github.com/opencode-dotnet/opencode-mcp/actions/runs/42278171235 | merge_group |
9924f49 |
| https://github.com/opencode-dotnet/opencode-mcp/actions/runs/42299694531 | merge_group |
292cb69 |
All three were on the native AOT tooling change (#10). The change before it (b35876e) and every earlier pull request passed on Windows.
Observed shape
- In the third failure, the job's step list shows:
- "Test" completed successfully in about 1.5 minutes, with all 410 tests passed;
- "Upload test results" succeeded;
- "Post Checkout" then stayed in progress until the runner was lost, about 45 minutes later.
- The uploaded TRX files show no slow or hung test. The longest test took 17 s.
- The job logs are lost with the runner: the log endpoint returns "BlobNotFound". Only artifacts uploaded before the loss survive.
What was tried
- Diagnostic pull request diag: locate the intermittent Windows runner loss (do not merge) #11 (closed without merging) ran the same head on four Windows runners twice, 8 runs in total.
- The test step was split per test project, plus one solution step with the exact CI options (
--report-trx,--hangdump). - All 8 passed: https://github.com/opencode-dotnet/opencode-mcp/actions/runs/42285432900 and https://github.com/opencode-dotnet/opencode-mcp/actions/runs/42286435175
- The test step was split per test project, plus one solution step with the exact CI options (
- Local runs on Windows x64: 15 runs of the tools tests and 8 of the product tests, 23 in total, all passed.
- After a full CI-style run, the only processes left are idle MSBuild nodes from the build.
- Process snapshot in CI. Commit
e4ce852added "Record processes after tests" and "Upload process snapshot" tobuild-and-test. The steps record every process (CPU, working set, age, command line) right after the test step and upload the list as the artifactprocess-snapshot-<os>.- In the next queue run, https://github.com/opencode-dotnet/opencode-mcp/actions/runs/42306682270, the Windows snapshot lists no process started by the tests: no
dcp,OpenCode.Mcp,opencode-mcp, test host,pingorcreatedump. It lists only the build's MSBuild nodes andVBCSCompiler. - That run passed.
- In the next queue run, https://github.com/opencode-dotnet/opencode-mcp/actions/runs/42306682270, the Windows snapshot lists no process started by the tests: no
If it recurs
- Download the failed run's
process-snapshot-windows-2025artifact first. Compare it with the clean snapshot above, looking for processes started by the tests or for high CPU or memory. - Record the run link, the event and the head in this issue.
- If the snapshot shows a test-started process, fix its owner. If it is clean, the next step is to sample processes periodically during the test step.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Blind-Striker commentedon Nov 14, 2026
Another occurrence (2026-11-14): the hang is in the process-snapshot step
Run https://github.com/opencode-dotnet/opencode-mcp/actions/runs/43589599583 (attempt 1,
pull_request, headee7c3eb, pull request #24),Build and test (windows-2025), runnerGitHub Actions 1000011564:dotnet run --no-build tools/native.cs -- snapshot --output ...)What this adds to the earlier record:
snapshotsubcommand, after the tests had passed. In the third failure above, the step list stopped at "Post Checkout", which runs after the snapshot step, so the two may not be the same hang.timeout-minutes; only the job's 55-minute limit ends it. A hung snapshot therefore costs the full job time.Not known: what the snapshot step was waiting on (its log has no output after the step started). A step timeout would turn a hang into a fast, visible failure, but it would not explain the hang.
Blind-Striker commentedon Nov 14, 2026
Another occurrence (2026-11-14): stuck inside the Test step, past its own step timeout
Run https://github.com/opencode-dotnet/opencode-mcp/actions/runs/43610470221 (attempt 1,
pull_request, head26583a0, pull request #25), jobBuild and test (windows-2025)(132494273507):Teststarted at 15:32:03 UTC.Testwas still reported "in progress". Itstimeout-minutes: 35had not ended it, and no step after it had started.Nativerun (all six native and acquisition legs), passed. The same tree passed the full local check on Windows x64 (862 tests).A step that outlives its own
timeout-minutespoints at the runner, not at a test: a hung test would have been ended by the step timeout or by the test session's own guards. This matches the summary above ("The hosted runner lost communication with the server"). The run was cancelled at 16:10 and the failed job rerun.That is two Windows hangs on one day, in different places (after the tests on #24, inside the Test step here).
Blind-Striker commentedon Nov 20, 2026
Monitoring update (2026-11-20)
Since #43 merged (
3ef9a4f, 2026-11-15T23:52:07Z, bounding the process snapshot step and its CIM query), there have been 38 non-cancelledci.ymlruns througha86c7b8(run https://github.com/opencode-dotnet/opencode-mcp/actions/runs/44711773315):windows-2025runner losses or snapshot hangs.Lint, whileBuild and test (windows-2025)succeeded.Keeping this issue open for passive monitoring in case the runner communication loss recurs.