Skip to content

Windows shards 2 and 3 hang in the nextest step past the 55 min step cap and 44 min watchdog, leaving no log #12092

Open

Description

@EffortlessSteven

Governing issue or accepted claim: #9272 (terminal Windows test verdict inside the job limit), related #12035.

Observed (run 41281026443, main f99cce6, dispatched 06:29Z):

  • Shards 1 and 4 completed green (nextest step 33 and 28 min).
  • Shards 2 and 3 entered Run workspace tests at 06:41Z and 06:39Z and were still in_progress at 07:48Z, 67+ minutes in. The step's timeout-minutes: 55 (~07:34Z) never ended the step, and the in-step watchdog (44 min, ~07:23Z) left no .watchdog or .processes artifact.
  • The run was cancelled at 07:54Z, at the 80 min job cap. Both shard jobs ended cancelled with the step in_progress, no Upload shard logs, and job logs return HTTP 404. Artifacts exist only for shards 1 and 4 and the doctests.

What this means: the stall reproduces on a run with the 9-of-10 nested-cargo timeouts already cleared (#12015) and the #12051 phase markers in place, but this time it is a whole-step hang, not a 360 s TIMEOUT row, and it produced no evidence. It matches the earlier run 39854834481 (shard 3 outlived GNU timeout and the step cap, cancelled with no log). #12035's phase markers cannot report from a run that loses its logs, so #12035 is not yet explained.

Not established: which test or process hung; whether the runner itself stopped reporting (step timers and the watchdog both failed to fire, which points at the runner or a process-tree wedge rather than at one test); whether shard assignment is deterministic (--partition count:N/4) so the same tests land in shards 2/3 each time.

Next justified actions (not done):

  1. Recover the hung tests by shard: dump cargo nextest list --partition count:2/4 and 3/4 and diff against the known-slow set.
  2. Make the evidence survive a wedge: stream nextest output to the step log (not only a file) and upload partial target/shard-N.log from a separate always-run step on a shorter job cap, so a cancelled shard still leaves a log.
  3. Run shards 2 and 3 with --no-capture/--test-threads reduced to see whether the wedge is concurrency-related.

I have not changed the workflow; filing first because the fix changes how the lane reports and should be reviewed against #9272's design.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SvmPmpYcZn1zoZdbHiqnzF

Activity

  1. coderabbitai commented on Nov 1, 2026

    @coderabbitai
    ⚠️ Possible Duplicate Issue(s)
    🔗 Related PRs

    #9812 - ci(windows): bound each shard with timeout so a stuck run still uploads its log [closed]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. added
    release-check
    status/needs-work
    on Nov 1, 2026
  3. EffortlessSteven commented on Nov 1, 2026

    @EffortlessSteven
    MemberAuthor

    Decision (coordinator relay, 08:05Z, recorded here and on #9272): go ahead with the diagnosability change because it is reversible and Windows qualification needs it. Scope: stream the nextest log, run Summarize and Upload under always(), leave pass/fail semantics unchanged. Draft PR: #12096. If a wedged runner stops reporting entirely, this cannot help and the next step is the shard-list diff in this issue.


    Generated by Claude Code

  4. EffortlessSteven commented on Nov 1, 2026

    @EffortlessSteven
    MemberAuthor

    Run 41295637804 (main fc03675, after #12096): shards 2 and 4 failed on ordinary test results, and Summarize failures and Upload shard logs ran and uploaded on both. Shard 4 shows the SLOW rows and the per-test timeout in the streamed log. That is native evidence the streaming and always() steps work for a failing shard on Windows. It is not yet evidence for a job-cap cancel: shard 1 was still running at last check (started 10:14Z). Keeping open until shard 1 either finishes or hits the cap and we can read what survives.


    Generated by Claude Code

  5. EffortlessSteven commented on Nov 1, 2026

    @EffortlessSteven
    MemberAuthor

    Native result for the job-cap case, run 41295637804 shard 1 (job 124816075930): cancelled at the 80 min job cap (11:28:06Z), and Summarize failures / Upload shard logs stayed pending. They never ran. Run workspace tests (shard 1 of 4) is still recorded as in_progress, so the 55 min step timeout and the 44 min in-step watchdog also did not end the step. No artifact was produced for this shard.

    So #12096's always() plus streamed log did not survive a job-cap cancel here. always() runs after a failed or step-cancelled step, but it does not run when the whole job is cancelled at its cap or when the runner stops reporting. This corrects the "intended, not yet observed" wording: it is now observed, and it does not help in this case. The streamed step output is the only possible survivor, and the job log is not retrievable through the API for this job (the live-log read returned nothing useful), so the hung test in shard 1 is still unnamed.

    What follows from it: the watchdog at 44 min did not fire or did not kill the process tree, and the step timeout at 55 min did not end the step. The wedge looks like it sits below bash (runner or process-tree level), which is the same shape as the earlier shards 2 and 3 whole-step hangs. Next: read shard 1's log in the Actions UI if retained, and compare against windows-watchdog-qualification.yml, which shows what the watchdog does natively. #12092 and #12035 stay open.


    Generated by Claude Code

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

    release-checkstatus/needs-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions