Repository navigation
Commit 4200689
Collect a hang dump on the wedging Windows PowerShell CI leg
The `windows-latest` `CI Tests` leg still intermittently rides its
`timeout-minutes` cap to a cancelled run even after #2318's skips. Pulling
the test-result artifacts from the last two hung runs shows they stop right
after `TestE2EPwsh` and never emit a `TestPS51` `.trx`, so the wedge is now
in the net462 / Windows PowerShell 5.1 unit leg — not the E2E server path
#2318 skipped. The earlier assumption in #2323 that `TestPS51` was unaffected
no longer holds, and `dotnetTestArgs` had no `--blame-hang`, so a stuck unit
host produced no dump and no test name; it just burned the hour.
This doesn't skip anything — it instruments CI so the next hang is actionable:
- Add `--blame-hang --blame-hang-timeout 10m --blame-hang-dump-type full` to
the CI `dotnet test` invocations (gated to `GITHUB_ACTIONS`, so local runs
are byte-identical). Any single test that wedges past 10 minutes is dumped
and its host tree terminated, failing the leg fast and naming the test.
- Install ProcDump (best-effort) on the Windows leg. VSTest's built-in hang
dumper only handles .NET Core hosts, so dumping the net462 host needs
ProcDump, which isn't on the runner image. A download failure only warns.
- Upload `**/*.dmp` and `**/*_Sequence.xml` alongside the `.trx`.
Caveat: if the wedge is in host startup/discovery rather than a running test,
the per-test timer may not fire — but `_Sequence.xml` still shows how far
discovery got. Once a hung run names the net462 test, we can give it the same
targeted treatment as #2307 and #2314 instead of skipping the whole leg.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0515a5f commit 4200689
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
55 | 76 | | |
56 | 77 | | |
57 | 78 | | |
| |||
79 | 100 | | |
80 | 101 | | |
81 | 102 | | |
82 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
0 commit comments