You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(replay): fail fast on swallowed Compose masking errors in CI
Add an internal SentryReplayDebug.failFast switch (gated on the
io.sentry.replay.compose.fail-fast system property) that re-throws the
exceptions ComposeViewHierarchyNode normally swallows in fromComposeNode
and fromView. Enabled in the sentry-samples-android app so our
release/obfuscated builds running on real devices in CI crash instead of
silently degrading masking. Defaults off, so customers are unaffected.
Also guard the on-device ReplayTest against GitHub-hosted emulators,
which can't capture screenshots reliably.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/ReplayTest.kt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,23 @@ import kotlin.test.Test
8
8
importleakcanary.LeakAssertions
9
9
importleakcanary.LeakCanary
10
10
importorg.awaitility.kotlin.await
11
+
importorg.hamcrest.CoreMatchers.`is`
12
+
importorg.junit.Assume.assumeThat
13
+
importorg.junit.Before
11
14
importshark.AndroidReferenceMatchers
12
15
importshark.IgnoredReferenceMatcher
13
16
importshark.ReferencePattern
14
17
15
18
classReplayTest : BaseUiTest() {
19
+
@Before
20
+
funsetup() {
21
+
// we can't run on GH actions emulator, because they don't allow capturing screenshots properly
0 commit comments