Skip to content

[Failing test]: WithUrlsTests causes Windows runner loss #20579

Closed as not planned

Description

@radical

Is there an existing issue for this?

  • I have searched the existing issues

Build information

Build: https://github.com/microsoft/aspire/actions/runs/36590093084

Build error leg or test failing: H5-WITHURLS on windows-latest

Related aggregate investigation: #20567

Fill in the error message template

Error Message

The runner stops communicating while Aspire.Hosting.Tests.WithUrlsTests is executing. The test step remains in progress, later steps never start, and the job is cancelled by the server-side timeout. Logs for the lost runner are unavailable, so there is no reliable test assertion or stack-trace signature.

{
  "ErrorMessage": "",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Error details

Error Message:
The Windows runner stops communicating during the test step. GitHub eventually cancels the job at the server-side timeout.

Stack Trace:
Unavailable because the lost runner does not upload its logs or dumps.

A concurrent controlled run used 72 fresh Windows runners per arm:

  • Full Hosting partition 5: 4/72 runner losses (3 during tests and 1 after tests completed).
  • WithUrlsTests only: 6/72 in-test runner losses.
  • Partition 5 excluding WithUrlsTests: 0/72 runner losses across the remaining 499 test cases.

The isolated class was significantly less stable than the remainder (one-sided Fisher exact p ≈ 0.014). Earlier class-only reproduction also lost 3/36 runners: https://github.com/microsoft/aspire/actions/runs/36502312509.

Standard output

Standard Output
No final standard output is available for affected jobs. Heartbeat output and test logs stop together when the runner is lost, and post-job artifact upload never runs.

Activity

  1. added
    needs-area-label
    on Sep 29, 2026
  2. joperezr commented on Sep 29, 2026

    @joperezr
    Member
    🤖 Aspire triage pass — 2026-09-29 16:34 UTC

    Area: area-testing
    Kind: flaky-test
    Repro: yes-large — see lines 38–44 of the issue body
    Affected version(s): current main CI (package version not reported; latest shipped: 13.5.4)
    Severity: S3 — the test class intermittently loses Windows runners and diagnostics, while excluding the class avoids the observed losses

    Urgency: 🟡 vNext — recommend milestone 13.6
    Reason: statistically supported and actionable CI instability for the active release train; it does not meet the servicing bar

    Suggested owner(s): Mitch Denny (@mitchdenny) (score 3), backup Sébastien Ros (@sebastienros) (score 3)
    Evidence:

    Confidence: medium
    Needs human?: no

  3. radical commented on Sep 29, 2026

    @radical
    MemberAuthor

    [automated] Current runner-loss investigation update:

    • Generic VM resource exhaustion is now strongly disfavored: physical memory, commit, kernel pools, handles, processes, and threads remained healthy immediately before runner losses.
    • The leading mechanism is stale Windows parent-PID reuse during DCP teardown. Lost-runner watchdog samples captured winlogon retaining a dead parent PID that was later reused by a DCP-launched process or descendant. DCP's Windows process-tree walk trusts that PPID relationship, so it can incorrectly include the older system process in the tree it terminates.
    • We tested a custom DCP guard that preserves descendant cleanup but skips an alleged child when the child started before its alleged parent. A real child cannot predate its parent.
    • Across two completed 108-runner matrices, unguarded DCP had 6 runner losses in 144 jobs (bundled: 2/72; custom stock: 4/72), while guarded DCP had 0 losses in 72 jobs. The custom-stock arm controls for the custom/unsigned binary itself.
    • The losses occurred while different WithUrlsTests methods were active, which points to repeated DCP lifecycle exposure rather than one defective test method.

    A third independent 108-runner matrix is currently running: https://github.com/microsoft/aspire/actions/runs/36623574515. The guard result is encouraging but not yet final proof; this run will improve the comparison and may capture additional stale-PPID evidence.

  4. radical commented on Sep 29, 2026

    @radical
    MemberAuthor

    [automated] The third matrix completed and strengthened the guard result:

    Across all three independent matrices:

    DCP treatment Runner losses Jobs
    Bundled 3 108
    Custom stock 8 108
    All unguarded 11 216
    Start-time guard 0 108

    The one-sided Fisher exact comparison of unguarded versus guarded is p = 0.0106. At the contemporaneous unguarded loss rate of 5.1%, observing 0 losses in 108 guarded jobs has probability about 0.35%.

    This run also produced another direct stale-PPID sample before a runner disappeared: winlogon retained parent PID 7888; that PID was later reused by conhost under a test project process. Resources remained healthy in the final heartbeat.

    The next focused experiment will make the guarded DCP write every rejected impossible parent/child relationship to an artifact. Because the guarded runner survives, this should directly show whether the intervention is filtering winlogon at the exact DCP process-tree traversal, rather than only changing the failure rate.

  5. radical commented on Sep 29, 2026

    @radical
    MemberAuthor

    [automated] The shared DCP mechanism, combined three-matrix results, scope caveat, and next steps are now tracked on the umbrella runner-loss issue:

    #20567 (comment)

    This issue remains the focused WithUrlsTests reproducer/containment record. The guarded-DCP evidence here does not yet establish that the same intervention resolves the separate Hosting-1 shard losses.

  6. davidfowl commented on Nov 5, 2026

    @davidfowl
    Collaborator

    Retiring: the last observed occurrence of this failure was 2026-09-29 (more than 20 days ago). This is administrative cleanup, not a claim that the failure is fixed. If it recurs, please reopen or file a new report.

    🤖 Posted by AspireAgent (AI Agent)

  7. added
    ci-stale-retired
    on Nov 5, 2026
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

    area-testingci-stale-retiredfailing-testneeds-area-labeltriage:bot-seen

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions