@cratis/pi 7.194.2 → 7.194.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md
CHANGED
|
@@ -32,6 +32,7 @@ dotnet test VSTest.Specs.csproj --configuration Release --no-build \
|
|
|
32
32
|
|
|
33
33
|
- This is the VSTest form. Microsoft.Testing.Platform projects use their own
|
|
34
34
|
crash and hang dump extensions and options (`--hangdump-type Mini`, `--crashdump-type Mini`); do not mix the two sets of switches.
|
|
35
|
+
- Always pass an explicit dump type. `--blame-hang-timeout` or `--blame-hang` alone defaults to a full dump of several GB; use `mini` (or `none`), and delete `TestResults/**/*.dmp` after reading the stack.
|
|
35
36
|
- Read the stack (for example `dotnet-dump analyze <file>` then `clrstack -all`), keep the text output, and delete the `.dmp` file. Use a full dump only for a named investigation that needs heap contents.
|
|
36
37
|
- Upload `TestResults` as an artifact with `if: ${{ !cancelled() }}`, so the dump
|
|
37
38
|
survives the failure.
|
|
@@ -255,6 +255,19 @@ speculative alternative grammars.
|
|
|
255
255
|
| Hang timeout | `--blame-hang --blame-hang-timeout 5min --blame-hang-dump-type mini` | `--hangdump --hangdump-timeout 5min --hangdump-type Mini` |
|
|
256
256
|
| Code coverage | `--collect "Code Coverage"` | `--coverage` |
|
|
257
257
|
|
|
258
|
+
Always set the dump type explicitly, to `mini` or `none`. These switches turn on
|
|
259
|
+
dump collection even when used alone, and the default dump type is **full**, a
|
|
260
|
+
whole-process memory dump of several GB per hung run: `--blame-hang`,
|
|
261
|
+
`--blame-hang-timeout`, `--blame-crash`, `--hangdump`, `--hangdump-timeout`,
|
|
262
|
+
`--crashdump`. For example `--blame-hang-timeout 90s` without
|
|
263
|
+
`--blame-hang-dump-type` writes a full dump. This applies to ad-hoc helper
|
|
264
|
+
scripts too, not only to commands you recommend.
|
|
265
|
+
|
|
266
|
+
When a script or command can produce dumps, send results to a temporary
|
|
267
|
+
directory (`--results-directory "$(mktemp -d)"`) or delete `TestResults/**/*.dmp`
|
|
268
|
+
after reading the stack, so dumps never accumulate in the repository tree or in
|
|
269
|
+
worktrees.
|
|
270
|
+
|
|
258
271
|
MTP report, dump, and coverage flags require their corresponding registered
|
|
259
272
|
extensions (`TrxReport`, `CrashDump`, `HangDump`, or `CodeCoverage`). Some
|
|
260
273
|
framework SDKs bundle common extensions; if a flag is unrecognized, inspect
|