Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion modules/app-runner
Submodule app-runner updated 40 files
+3 −1 .github/workflows/app-runner.yml
+1 −1 .github/workflows/test-adb-provider.yml
+32 −15 .github/workflows/test-powershell-module.yml
+33 −0 app-runner/Private/AndroidHelpers.ps1
+5 −5 app-runner/Private/DeviceProviders/AdbProvider.ps1
+50 −9 app-runner/Private/DeviceProviders/DeviceProvider.ps1
+6 −7 app-runner/Private/DeviceProviders/LinuxProvider.ps1
+6 −7 app-runner/Private/DeviceProviders/MacOSProvider.ps1
+4 −2 app-runner/Private/DeviceProviders/MockDeviceProvider.ps1
+12 −1 app-runner/Private/DeviceProviders/PlayStation5Provider.ps1
+94 −40 app-runner/Private/DeviceProviders/SauceLabsProvider.ps1
+6 −3 app-runner/Private/DeviceProviders/SwitchProvider.ps1
+6 −7 app-runner/Private/DeviceProviders/WindowsProvider.ps1
+6 −4 app-runner/Private/DeviceProviders/XboxProvider.ps1
+9 −3 app-runner/Private/DeviceProviders/iOSSimulatorProvider.ps1
+191 −0 app-runner/Private/HttpRetry.ps1
+210 −0 app-runner/Private/RetryPolicy.ps1
+6 −3 app-runner/Public/Disconnect-Device.ps1
+33 −0 app-runner/Public/Export-DeviceSettings.ps1
+33 −0 app-runner/Public/Import-DeviceSettings.ps1
+6 −4 app-runner/Public/Start-Device.ps1
+69 −0 app-runner/README.md
+5 −0 app-runner/SentryAppRunner.psd1
+19 −13 app-runner/SentryAppRunner.psm1
+29 −0 app-runner/Tests/AndroidHelpers.Tests.ps1
+517 −0 app-runner/Tests/HttpRetry.Tests.ps1
+76 −0 app-runner/Tests/PowerReporting.Tests.ps1
+113 −0 app-runner/Tests/RetryPolicy.Tests.ps1
+174 −0 app-runner/Tests/SauceLabsRetry.Tests.ps1
+31 −0 sentry-api-client/Public/Get-SentryEventAttachments.ps1
+96 −0 sentry-api-client/Public/Get-SentryFeedback.ps1
+37 −0 sentry-api-client/Public/Get-SentryReplay.ps1
+42 −0 sentry-api-client/Public/Get-SentryReplayRecordingSegments.ps1
+110 −0 sentry-api-client/Public/Get-SentrySpans.ps1
+72 −0 sentry-api-client/README.md
+5 −0 sentry-api-client/SentryApiClient.psd1
+48 −0 sentry-api-client/Tests/Fixtures/SentrySpansResponses.json
+116 −0 sentry-api-client/Tests/SentryApiClient.Spans.Tests.ps1
+80 −0 sentry-api-client/Tests/SentryApiClient.Tests.ps1
+299 −8 utils/Integration.TestUtils.psm1
12 changes: 11 additions & 1 deletion test/IntegrationTest/Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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::"
}

Expand Down
Loading