Skip to content

CI: intermittent Windows runner loss after the test step (cause unproven) #13

Open

Description

@Blind-Striker

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.04 or macos-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

If it recurs

  1. Download the failed run's process-snapshot-windows-2025 artifact first. Compare it with the clean snapshot above, looking for processes started by the tests or for high CPU or memory.
  2. Record the run link, the event and the head in this issue.
  3. 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.

Activity

  1. Blind-Striker commented on Nov 14, 2026

    @Blind-Striker
    ContributorAuthor

    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, head ee7c3eb, pull request #24), Build and test (windows-2025), runner GitHub Actions 1000011564:

    Step Result
    Build success, 11:21:57 to 11:23:15
    Test success, 11:23:26 to 11:24:55
    Upload test results success
    Record processes after tests (dotnet run --no-build tools/native.cs -- snapshot --output ...) still in progress at 11:51, 27 minutes after it started; the run was cancelled then and the job rerun

    What this adds to the earlier record:

    • The job did not lose its runner this time; it hung inside a step of this repository, the snapshot subcommand, 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.
    • The snapshot step has no step-level timeout-minutes; only the job's 55-minute limit ends it. A hung snapshot therefore costs the full job time.
    • The ubuntu and macOS legs of the same run passed in under 3 minutes each.

    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.

  2. Blind-Striker commented on Nov 14, 2026

    @Blind-Striker
    ContributorAuthor

    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, head 26583a0, pull request #25), job Build and test (windows-2025) (132494273507):

    • Build and the native tool build succeeded; Test started at 15:32:03 UTC.
    • At 16:10 UTC, 38 minutes later, Test was still reported "in progress". Its timeout-minutes: 35 had not ended it, and no step after it had started.
    • The ubuntu-24.04 and macos-15 legs of the same run, and the same head's Native run (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-minutes points 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).

  3. Blind-Striker commented on Nov 20, 2026

    @Blind-Striker
    ContributorAuthor

    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-cancelled ci.yml runs through a86c7b8 (run https://github.com/opencode-dotnet/opencode-mcp/actions/runs/44711773315):

    Keeping this issue open for passive monitoring in case the runner communication loss recurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions