Skip to content
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

@brettchabot Cache Gradle Managed Devices emulator snapshot. #2115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brettchabot
Copy link
Collaborator

@brettchabot brettchabot commented Jan 22, 2024

It currently takes ~50 seconds on each CI run to boot the emulator
and save a snapshot.

This commit saves the snapshot to a github action cache, to save the
cost of booting on each run.

However, compressing and saving the snapshot to cache is also expensive (~30 seconds)
so we don't want to do this for every run. Ideally there would be a precise
mechanism for determining if the snapshot has changed. For now, just use a cache
key encorporating the date and the hash of the top level build.gradle file, so
the cache is generated every week.

@brettchabot brettchabot force-pushed the cache_snapshot branch 2 times, most recently from 8c59332 to eb0f902 Compare January 25, 2024 19:00
It currently takes ~50 seconds on each CI run to boot the emulator
and save a snapshot.

This commit saves the snapshot to a github action cache, to save the
cost of booting on each run.

However, compressing and saving the snapshot to cache is also expensive (~30 seconds)
so we don't want to do this for every run. Ideally there would be a precise
mechanism for determining if the snapshot has changed. For now, just use a cache
key encorporating the date and the hash of the top level build.gradle file, so
the cache is generated every week.
@brettchabot brettchabot changed the title Experiment with caching Gradle Managed Devices emulator snapshot @brettchabot Cache Gradle Managed Devices emulator snapshot. Jan 25, 2024
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.

None yet

1 participant