Skip to content

ci: Add Android 37 emulator to critical UI test matrix (JAVA-647)#5775

Open
runningcode wants to merge 1 commit into
mainfrom
claude/android-37-ci-emulators-2d3528
Open

ci: Add Android 37 emulator to critical UI test matrix (JAVA-647)#5775
runningcode wants to merge 1 commit into
mainfrom
claude/android-37-ci-emulators-2d3528

Conversation

@runningcode

@runningcode runningcode commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

📜 Description

Add an API level 37 (Android 17) emulator to the critical UI integration test matrix.

This is possible with the workaround from ReactiveCircus/android-emulator-runner#482 (originally identified by jpcottin in yschimke/okhttp).

💡 Motivation and Context

Resolves JAVA-647. Keep CI emulator coverage current with the latest Android platform so the critical UI tests catch regressions on Android 17 alongside the existing API 31/33/35/36 runs.

💚 How did you test it?

CI — all matrix rows including API 37.0 pass on this PR.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

🤖 Generated with Claude Code

#skip-changelog

@sentry

sentry Bot commented Jul 16, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.49.0 (1) release

⚙️ sentry-android Build Distribution Settings

@runningcode
runningcode force-pushed the claude/android-37-ci-emulators-2d3528 branch from ba6feb7 to f6da396 Compare July 16, 2026 15:51
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 322.57 ms 386.68 ms 64.11 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5b1a06b 352.27 ms 413.70 ms 61.43 ms
2124a46 319.19 ms 415.04 ms 95.85 ms
ad8da22 314.52 ms 352.47 ms 37.95 ms
d15471f 304.55 ms 408.43 ms 103.87 ms
0ee65e9 317.37 ms 366.50 ms 49.13 ms
2195398 351.77 ms 433.22 ms 81.45 ms
ee747ae 358.21 ms 389.41 ms 31.20 ms
abfcc92 309.54 ms 380.32 ms 70.78 ms
8558cac 306.16 ms 355.24 ms 49.09 ms
d15471f 310.26 ms 377.04 ms 66.78 ms

App size

Revision Plain With Sentry Diff
5b1a06b 0 B 0 B 0 B
2124a46 1.58 MiB 2.12 MiB 551.51 KiB
ad8da22 1.58 MiB 2.29 MiB 719.83 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
0ee65e9 0 B 0 B 0 B
2195398 0 B 0 B 0 B
ee747ae 1.58 MiB 2.10 MiB 530.95 KiB
abfcc92 1.58 MiB 2.13 MiB 557.31 KiB
8558cac 0 B 0 B 0 B
d15471f 1.58 MiB 2.13 MiB 559.54 KiB

Previous results on branch: claude/android-37-ci-emulators-2d3528

Startup times

Revision Plain With Sentry Diff
14354b8 322.69 ms 387.90 ms 65.21 ms
e9230fa 316.91 ms 365.65 ms 48.74 ms
ce0e7f1 318.11 ms 360.71 ms 42.61 ms

App size

Revision Plain With Sentry Diff
14354b8 0 B 0 B 0 B
e9230fa 0 B 0 B 0 B
ce0e7f1 0 B 0 B 0 B

@runningcode
runningcode force-pushed the claude/android-37-ci-emulators-2d3528 branch 5 times, most recently from 9e9523d to 5fdaa59 Compare July 21, 2026 13:19
@runningcode runningcode changed the title ci: Add Android 37 emulator to critical UI test matrix ci: Add Android 37 emulator to critical UI test matrix (JAVA-647) Jul 21, 2026
@linear-code

linear-code Bot commented Jul 21, 2026

Copy link
Copy Markdown

JAVA-647

Add an API level 37 (Android 17) emulator to the critical UI test matrix.
API 37 ships only as a minor-versioned image, so the api-level is "37.0"
(the platform and system image packages are android-37.0, not android-37)
and only as google_apis_ps16k; there is no plain google_apis image.

The runner's preinstalled avdmanager is too old to parse the minor version
and writes target=android-0 into the AVD config, so the emulator clamps to
API 3 and boots misconfigured. Update cmdline-tools before creating the AVD,
and key the AVD cache on the tools version to invalidate broken caches.

Workaround from ReactiveCircus/android-emulator-runner#482.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@runningcode
runningcode force-pushed the claude/android-37-ci-emulators-2d3528 branch from 5fdaa59 to e89fc0c Compare July 21, 2026 13:22
@runningcode
runningcode marked this pull request as ready for review July 21, 2026 13:23

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e89fc0c. Configure here.

id: cmdline-tools
run: |
SDK="${ANDROID_HOME:-${ANDROID_SDK_ROOT:-/usr/local/lib/android/sdk}}"
yes | "$SDK/cmdline-tools/latest/bin/sdkmanager" --install "cmdline-tools;latest" > /dev/null

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pipefail breaks cmdline-tools update

High Severity

The new Update SDK cmdline-tools step runs yes | sdkmanager under GitHub Actions' default bash -eo pipefail. When sdkmanager finishes and closes the pipe, yes exits with a non-zero SIGPIPE status, so the pipeline fails and the step aborts before the latest-2 swap and AVD cache key output. That blocks every matrix row, including the previously green API 31/33/35/36 jobs.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e89fc0c. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhmm but they're green so its working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant