@@ -143,7 +143,14 @@ jobs:
143143 yarn e2etest
144144 displayName: yarn e2etest
145145 workingDirectory: packages/e2e-test-app-fabric
146- timeoutInMinutes: 10 # Time to wait for this task to complete before the server kills it.
146+ # Time to wait for this task to complete before the server kills it.
147+ # When simulateCrashForTesting=true the app crashes immediately on startup, so a
148+ # 10-minute wait is just dead time. Drop to 2 min during simulation. REVERT this
149+ # to a single `timeoutInMinutes: 10` when removing the simulation parameter.
150+ ${{ if eq(parameters.simulateCrashForTesting, true) }}:
151+ timeoutInMinutes: 2
152+ ${{ if not(eq(parameters.simulateCrashForTesting, true)) }}:
153+ timeoutInMinutes: 10
147154
148155 # Always disarm the crash sentinel so it cannot leak to a rerun on
149156 # the same agent.
@@ -261,12 +268,21 @@ jobs:
261268 "$env:TEMP",
262269 "$env:windir\Temp"
263270 )
271+ # Exclude our own in-process dump folder so the C:\Users scan
272+ # (which traverses the C:\Users\All Users junction to ProgramData)
273+ # doesn't duplicate dumps that are already under in-process/.
274+ $inProcReal = (Resolve-Path -LiteralPath $inProc -ErrorAction SilentlyContinue)
264275 $found = @()
265276 foreach ($root in $searchRoots) {
266277 if (-not (Test-Path $root)) { continue }
267278 Write-Host "--- $root ---"
268279 $hits = Get-ChildItem -Path $root -Recurse -Include *.dmp,*.mdmp,*RNTesterApp*.* -ErrorAction SilentlyContinue -Force |
269- Where-Object { -not $_.PSIsContainer -and $_.LastWriteTime -gt (Get-Date).AddHours(-2) }
280+ Where-Object {
281+ -not $_.PSIsContainer -and
282+ $_.LastWriteTime -gt (Get-Date).AddHours(-2) -and
283+ ($null -eq $inProcReal -or -not $_.FullName.StartsWith($inProcReal.Path, [System.StringComparison]::OrdinalIgnoreCase)) -and
284+ $_.FullName -notlike '*\RNW-E2E-Dumps\*'
285+ }
270286 foreach ($h in $hits) {
271287 Write-Host (" {0,-10} {1}" -f $h.Length, $h.FullName)
272288 $found += $h
0 commit comments