Skip to content

ci(android): [experiment, do not merge] AGP matrix UI tests on API 30 google_apis - #6495

Closed
sentry-junior[bot] wants to merge 1 commit into
jr/ci/agp-matrix-api35-replayfrom
jr/exp/agp-matrix-api30-google-apis
Closed

sentry-junior[bot] wants to merge 1 commit into
jr/ci/agp-matrix-api35-replayfrom
jr/exp/agp-matrix-api30-google-apis

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Experiment for #6492, do not merge.

This is stacked on #6492. It switches the AGP matrix emulator from API 35 to API 30, using the regular google_apis image instead of the API 30 aosp_atd that main uses. The goal is to check whether PixelCopy, and with it the replay tests (ReplayTest, ReplaySnapshotTest, UserFeedbackUiTest with replay on), works on API 30 when the image isn't ATD.

On #6490, PixelCopy failed on API 30 aosp_atd with ERROR_SOURCE_NO_DATA and worked on API 35 google_apis.

Changes:

  • api-level: 35 → 30 in both emulator steps, plus the matching AVD cache key.
  • UPLOAD_REPLAY_SNAPSHOTS: false, so this branch doesn't upload snapshots to Sentry.

Close this once the AGP matrix result is in.

#skip-changelog

via roman.

--

View Session [Sentry]

…e_apis

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>

#skip-changelog
@sentry-junior
sentry-junior Bot added this pull request to stack #6496 November 6, 2026 12:42
@sentry

sentry Bot commented Nov 6, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@romtsn romtsn closed this Nov 6, 2026
sentry-junior Bot added a commit that referenced this pull request Nov 6, 2026
API 30 google_apis captures replay frames with PixelCopy (verified in
#6495) and avoids the Android 15 ART method-tracing crash that the
profiling tests hit on API 35.

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>
An error occurred while trying to automatically change base from jr/ci/agp-matrix-api35-replay to main November 6, 2026 14:17
romtsn added a commit that referenced this pull request Nov 6, 2026
…Sauce Labs UI job (#6492)

* ci(android): Run UI tests incl. replay on API 35 in AGP matrix, drop Sauce Labs UI job

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>

* ci(android): Pull replay snapshots even when the AGP matrix UI tests fail

android-emulator-runner runs each script line in its own shell and stops at
the first failing line, so a failing connectedReleaseAndroidTest skipped the
snapshot pull. Run the tests and the pull from one script that exits with the
tests' status.

#skip-changelog

* ci(android): Drop --daemon from the AGP matrix UI test run

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>

#skip-changelog

* ci(android): Run the AGP matrix UI tests on API 30 google_apis

API 30 google_apis captures replay frames with PixelCopy (verified in
#6495) and avoids the Android 15 ART method-tracing crash that the
profiling tests hit on API 35.

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>

* test(profiling): Run checkTimedOutProfile on emulators with a shorter timeout

The emulator skip was added in #3074 because the timed-out profile's
trace file was sometimes missing on emulators. Since #3478 timed-out
profiles are discarded and the test asserts no profile is sent, so it
no longer reads a trace file. Drop the skip, and add a test-only hook
to shorten the 30s profiling timeout so the test waits 5s instead of 35s.

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>

* test(uitest): Remove checkTimedOutProfile

The test only checks that a timed-out transaction profile is discarded,
which AndroidProfilerTest and AndroidTransactionProfilerTest already cover.
It was skipped on emulators, so nothing in CI ran it after the Sauce Labs
job was removed. Also reverts the test-only profiling timeout hook.

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>
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