Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/dotnet-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ runs:
'--crashdump-type'
'Full'
'--hangdump-type'
'Full'
'Heap'
'--report-trx'
'--report-trx-filename'
'test_results_${{ inputs.result-id }}_{asm}_{tfm}_{arch}.trx'
Expand Down Expand Up @@ -120,7 +120,7 @@ runs:
'--crashdump-type'
'Full'
'--hangdump-type'
'Full'
'Heap'
'--report-trx'
'--report-trx-filename'
'test_results_${{ inputs.result-id }}_{asm}_{tfm}_{arch}.trx'
Expand Down
24 changes: 24 additions & 0 deletions .github/scripts/test-summarize-coverage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,30 @@ try {
'Runtime crash dump upload must run after a failed test coordinator.'
}

Invoke-Test 'bounds hosted runner hang dumps' {
$dotnetTestAction = Get-Content -Raw -LiteralPath $dotnetTestActionPath
Assert-Equal `
2 `
([regex]::Matches($dotnetTestAction, "'--hangdump-type'")).Count `
'Only the two standard test launch paths may configure hang diagnostics.'
Assert-Equal `
2 `
([regex]::Matches($dotnetTestAction, "'--hangdump'\s*\r?\n")).Count `
'Both test launch paths must enable hang diagnostics.'
Assert-Equal `
2 `
([regex]::Matches($dotnetTestAction, "'--hangdump-timeout'\s*'10m'")).Count `
'Both test launch paths must preserve the inactivity threshold.'
Assert-Equal `
2 `
([regex]::Matches($dotnetTestAction, "'--hangdump-type'\s*'Heap'")).Count `
'Both test launch paths must retain managed heap and stack diagnostics without mapped images.'
Assert-Equal `
2 `
([regex]::Matches($dotnetTestAction, "'--crashdump-type'\s*'Full'")).Count `
'Process crashes must retain full diagnostics independently of bounded hang capture.'
}

Invoke-Test 'captures Windows net10 test host diagnostics' {
$dotnetTestAction = Get-Content -Raw -LiteralPath $dotnetTestActionPath
$archiveTestResultsAction = Get-Content -Raw -LiteralPath $archiveTestResultsActionPath
Expand Down
Loading