-
-
Notifications
You must be signed in to change notification settings - Fork 37
feat(examples): Add Paparazzi snapshot setup to instrumentation sample #1145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c0d0a21
951e483
d01af34
a05806d
aa263dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ jobs: | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
| java-version: '21' | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # pin@v4 | ||
|
|
@@ -46,3 +46,7 @@ jobs: | |
|
|
||
| - name: Build the Debug and Release variants | ||
| run: ./gradlew assemble | ||
|
|
||
| - name: Record and upload snapshots | ||
| if: env.SENTRY_AUTH_TOKEN != '' | ||
| run: ./gradlew :examples:android-instrumentation-sample:sentryUploadSnapshotsStagingDebug | ||
|
Comment on lines
+49
to
+52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The use of Suggested FixReplace the unsafe Prompt for AI Agent |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ import androidx.compose.ui.Alignment | |
| import androidx.compose.ui.Modifier | ||
| import androidx.compose.ui.draw.clip | ||
| import androidx.compose.ui.graphics.Color | ||
| import androidx.compose.ui.tooling.preview.Preview | ||
| import androidx.compose.ui.unit.dp | ||
| import androidx.navigation.NavController | ||
| import androidx.navigation.compose.NavHost | ||
|
|
@@ -62,6 +63,12 @@ class ComposeActivity : ComponentActivity() { | |
| } | ||
| } | ||
|
|
||
| @Preview | ||
| @Composable | ||
| fun HomeTextPreview() { | ||
|
Comment on lines
+66
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Calling Suggested FixTo prevent the crash, do not call Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| HomeText(rememberNavController(), RoundedCornerShape(50)) | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Preview composables may crash in Paparazzi rendering contextMedium Severity
Additional Locations (1)Reviewed by Cursor Bugbot for commit 951e483. Configure here. |
||
|
|
||
| @Composable | ||
| fun HomeText(navController: NavController, pillShape: RoundedCornerShape) { | ||
| BasicText( | ||
|
|
@@ -74,6 +81,12 @@ fun HomeText(navController: NavController, pillShape: RoundedCornerShape) { | |
| ) | ||
| } | ||
|
|
||
| @Preview | ||
| @Composable | ||
| fun DetailsTextPreview() { | ||
| DetailsText(rememberNavController(), RoundedCornerShape(50)) | ||
| } | ||
|
|
||
| @Composable | ||
| fun DetailsText(navController: NavController, pillShape: RoundedCornerShape) { | ||
| BasicText( | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Snapshot upload runs redundantly on all three OS matrices
Medium Severity
The new "Record and upload snapshots" step runs on all three matrix OSes (
ubuntu-latest,macos-latest,windows-latest) since it only guards onSENTRY_AUTH_TOKEN. Paparazzi snapshot rendering can produce platform-dependent output (e.g., font rendering differences), so uploading from all three OSes can result in non-deterministic snapshots overwriting each other in Sentry. This likely needs arunner.oscondition (similar to the existingpreMergestep) to restrict it to a single OS.Reviewed by Cursor Bugbot for commit c0d0a21. Configure here.