Repository navigation
ci(ui-tests): Cold boot the critical UI test emulator instead of caching the AVD - #6720
Merged
Merged
Conversation
…ing the AVD Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
romtsn
marked this pull request as ready for review
November 20, 2026 16:57
romtsn
requested review from
0xadam-brown and
runningcode
and removed request for
a team
November 20, 2026 16:57
markushi
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
The
UI Tests Criticalworkflow no longer caches the AVD snapshot. TheRun testsstep creates the AVD and cold boots the emulator itself.The
AVD cacheandCreate AVD and generate snapshot for cachingsteps are gone. So areInstall emulatorand thecmdline-toolsversion output, which only fed the cache key.android-emulator-runnerstill installs the emulator from the matrix channel. The cmdline-tools update stays, because it fixes avdmanager forandroid-37.x(ReactiveCircus/android-emulator-runner#482).disk-size: 4096Mmoves toRun tests, since that step now creates the AVD.💡 Motivation and Context
Cold booting is faster than restoring the cache. The numbers below are from the API 37 job of run 43046054690. The ~48s SDK and system image install is the same either way and left out.
Each image takes 2.4–4.1 GB of cache, and the
avd-*caches use about 24 GB of the repo's 50 GB Actions cache.📝 Checklist
🔮 Next steps
MAESTRO_DRIVER_STARTUP_TIMEOUT: 60000stays for that reason. If flakes go up after merging, add a wait-for-idle step rather than bringing the cache back.agp-matrix.ymluses the same AVD cache pattern (avd-api-30-x86_64-google_apis, ~1.6 GB) and is not changed here, because only the critical UI tests were measured.#skip-changelog
via roman.
--
View Session [Sentry]