Skip to content

ci: cache emulator AVD for faster E2E boots#703

Merged
piotr-iohk merged 2 commits into
masterfrom
claude/cache-emulator-state-IbYlc
Jan 22, 2026
Merged

ci: cache emulator AVD for faster E2E boots#703
piotr-iohk merged 2 commits into
masterfrom
claude/cache-emulator-state-IbYlc

Conversation

@ovitrif

@ovitrif ovitrif commented Jan 22, 2026

Copy link
Copy Markdown
Collaborator

This PR adds AVD (Android Virtual Device) caching to E2E workflows to enable emulator "warm boots" instead of cold boots, reducing CI run times.

Description

  • Add actions/cache@v4 step to cache ~/.android/avd/* and ~/.android/adb* directories
  • Add snapshot generation step that runs only on cache miss to create the initial AVD snapshot
  • Change emulator option from -no-snapshot to -no-snapshot-save to load cached snapshots without overwriting them
  • Applied to both e2e.yml (main E2E tests) and e2e_migration.yml (migration tests) workflows

Expected impact:

  • Cold boot: ~60-90 seconds
  • Warm boot with cached snapshot: ~15-30 seconds
  • Savings: ~45-60 seconds per emulator start
  • With 6 shards, this could save 4-6+ minutes per E2E run on cache hits

Preview

N/A - CI workflow changes only

QA Notes

  1. Trigger E2E workflow manually on this branch
  2. Check logs for "AVD cache" step - should show cache miss on first run
  3. Verify "Create AVD and generate snapshot for caching" step executes
  4. Trigger E2E workflow again
  5. Verify "AVD cache" step shows cache hit
  6. Compare emulator boot times between runs
  7. Verify E2E tests still pass with the new configuration

@ovitrif ovitrif marked this pull request as ready for review January 22, 2026 00:34
@claude

claude Bot commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@ovitrif ovitrif requested a review from piotr-iohk January 22, 2026 05:02
@ovitrif

ovitrif commented Jan 22, 2026

Copy link
Copy Markdown
Collaborator Author

No idea if this actually does add a perf boost or it's detrimental to the speed instead, need to investigate with Claude.

@piotr-iohk piotr-iohk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ok

@piotr-iohk piotr-iohk merged commit e9bff4a into master Jan 22, 2026
14 checks passed
@piotr-iohk piotr-iohk deleted the claude/cache-emulator-state-IbYlc branch January 22, 2026 10:12
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.

3 participants