From 848f8eb34ca853c8bd2898dbb475f1e6e1d0d226 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Sun, 25 Oct 2026 07:19:25 +0100 Subject: [PATCH] Ignore App Hang events in the Crash Capture lookup --- modules/app-runner | 2 +- test/IntegrationTest/Integration.Tests.ps1 | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/app-runner b/modules/app-runner index 63d8c36b3..c8d126df8 160000 --- a/modules/app-runner +++ b/modules/app-runner @@ -1 +1 @@ -Subproject commit 63d8c36b34580b6b2bdac3311594d07e937773b8 +Subproject commit c8d126df8144b208d6fd11681e6aceb7e49949ee diff --git a/test/IntegrationTest/Integration.Tests.ps1 b/test/IntegrationTest/Integration.Tests.ps1 index 6e9f39c20..b76c225bb 100644 --- a/test/IntegrationTest/Integration.Tests.ps1 +++ b/test/IntegrationTest/Integration.Tests.ps1 @@ -142,6 +142,11 @@ BeforeAll { return $null } + # Nested event data comes from ConvertFrom-Json -AsHashtable + if ($Object -is [System.Collections.IDictionary]) { + return $Object[$Name] + } + $property = $Object.PSObject.Properties[$Name] if ($null -eq $property) { return $null @@ -483,7 +488,12 @@ if ($env:SENTRY_TEST_PLATFORM -ne "WebGL") { $eventId = Get-EventIds -AppOutput $script:runResult.Output -ExpectedCount 1 if ($eventId) { Write-Host "::group::Getting event content" - $script:runEvent = Get-SentryTestEvent -TagName "test.crash_id" -TagValue "$eventId" -TimeoutSeconds 300 + # A slow simulator can trip the 2s app-hang watchdog while the crash tag is already set. + $notAppHang = { + $exception = Get-EventList (Get-EventProperty $_ 'exception') 'values' | Select-Object -First 1 + (Get-EventProperty (Get-EventProperty $exception 'mechanism') 'type') -ne 'AppHang' + } + $script:runEvent = Get-SentryTestEvent -TagName "test.crash_id" -TagValue "$eventId" -Filter $notAppHang -TimeoutSeconds 300 Write-Host "::endgroup::" }