Skip to content

Fixing BCIT and in app tests in CI#1048

Draft
franco-zalamena-iterable wants to merge 8 commits intomasterfrom
SDK-170-emulator-network-trace
Draft

Fixing BCIT and in app tests in CI#1048
franco-zalamena-iterable wants to merge 8 commits intomasterfrom
SDK-170-emulator-network-trace

Conversation

@franco-zalamena-iterable
Copy link
Copy Markdown
Contributor

Test

actions/setup-java@v1.4.3 was resolving java-version: 17 through the
deprecated AdoptOpenJDK API. Between Apr 21 and Apr 22 that resolution
shifted from 17.0.18 to 17.0.19, and the artifact returned for 17.0.19
makes sdkmanager exit immediately, breaking the emulator-runner action's
Install Android SDK step on every run since.

Upgrade setup-java to v4.8.0 with distribution: temurin so the JDK is
pinned to a deterministic Adoptium Temurin build, and replace the
deprecated gradle/wrapper-validation-action with gradle/actions/wrapper-validation@v4.
Applied to all three jobs (check, unit-tests, instrumentation-tests).

Co-authored-by: Cursor <cursoragent@cursor.com>
scripts/trace-bcit.sh and the integration-tests printBuildConfig Gradle task
were used for local replication while diagnosing SDK-170. They are not invoked
by CI. Removing them keeps the PR diff focused on what actually fixes the
in-app E2E job.

Co-authored-by: Cursor <cursoragent@cursor.com>
The previous CI run on macos-15-intel (2 cores / 3GB AVD on HVF) starved
system_server during cold boot. Logcat shows continuous ANRs in systemui,
nexuslauncher, gms.persistent, googlequicksearchbox, com.android.phone,
com.google.android.as, keychain, permissioncontroller — all before and
during the test. UiAutomator's wait then timed out with current package =
'android' (a system dialog) sitting on top of MainActivity, so btnInAppMessages
was unreachable.

Switching to ubuntu-latest with KVM acceleration gives the AVD real
hardware virtualization on a 4 vCPU / 16GB host, stopping the ANR storm
and letting the test see MainActivity within its 30s wait.

Co-authored-by: Cursor <cursoragent@cursor.com>
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