Skip to content

Make AVD start/delete commands more automation-friendly - #67

Merged
mattleibow merged 2 commits into
mainfrom
pr56c/06-g-avd-cli-enhancements
Feb 17, 2026
Merged

mattleibow merged 2 commits into
mainfrom
pr56c/06-g-avd-cli-enhancements

Conversation

@mattleibow

Copy link
Copy Markdown
Collaborator

Why this change matters

AVD lifecycle commands are often used in cleanup and automation paths where resilience is more important than strict failure behavior. This update makes start/delete operations safer and more controllable for CI and local tooling.

What’s included

  • Adds android avd delete --force to attempt a stop before delete and treat cleanup failures as non-fatal.
  • Adds android avd start --disable-animations to reduce runtime animation overhead on launched emulators.
  • Adds android avd start --cpu-threshold to optionally wait for guest CPU load to settle before proceeding.
  • Adds focused validation tests for the new AVD command settings paths.

Validation

  • dotnet build --configuration Release
  • dotnet test AndroidSdk.Tests/AndroidSdk.Tests.csproj --configuration Release --filter "FullyQualifiedName~CommandSettingsValidation_Tests"

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the AVD (Android Virtual Device) lifecycle commands to be more automation-friendly by adding optional flags that improve resilience and control in CI/cleanup scenarios.

Changes:

  • Adds --force flag to avd delete to attempt stopping a running emulator before deletion and suppress all errors (making it safe for cleanup scripts)
  • Adds --disable-animations flag to avd start to disable Android system animations on the emulator for faster UI tests
  • Adds --cpu-threshold flag to avd start to wait for guest CPU load to settle before returning, ensuring system readiness

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
AndroidSdk.Tool/AvdDeleteCommand.cs Adds --force option with error suppression and pre-delete emulator stop logic
AndroidSdk.Tool/AvdStartCommand.cs Adds --disable-animations and --cpu-threshold options with timeout budget management; removes unused System.Linq import
AndroidSdk.Tests/CommandSettingsValidation_Tests.cs Adds validation tests for the new command settings to ensure they pass validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AndroidSdk.Tool/AvdDeleteCommand.cs Outdated
@github-actions

Copy link
Copy Markdown

Test Results

92 tests   89 ✅  22m 14s ⏱️
 2 suites   3 💤
 2 files     0 ❌

Results for commit 8fd240b.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mattleibow
mattleibow merged commit 60f8d5f into main Feb 17, 2026
4 checks passed
@mattleibow
mattleibow deleted the pr56c/06-g-avd-cli-enhancements branch February 24, 2026 23:40
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.

2 participants