[BootstrapTasks] add retry logic to <StartAndroidEmulator/>#10577
Merged
jonathanpeppers merged 1 commit intomainfrom Nov 7, 2025
Merged
[BootstrapTasks] add retry logic to <StartAndroidEmulator/>#10577jonathanpeppers merged 1 commit intomainfrom
<StartAndroidEmulator/>#10577jonathanpeppers merged 1 commit intomainfrom
Conversation
Context: https://devdiv.visualstudio.com/DevDiv/DevDiv%20Team/_build/results?buildId=12734439&view=logs&j=ac1a11c5-6d61-571c-5f0e-9a5f6f202a84&t=a6adf3be-39cf-544a-82ab-2177dae81ee6&l=13 The `Windows > Tests > Debugging` lane commonly fails due to emulator startup issues, such as: C:\a\_work\1\s\build-tools\scripts\TestApks.targets(76,5): error : Emulator failed to start: C:\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64-headless.exe: failed to initialize WHPX: Invalid argument [C:\a\_work\1\s\src\Xamarin.Android.Build.Tasks\Tests\Xamarin.Android.Build.Tests\Emulator.csproj] Build FAILED. Let's add some basic retry logic, and handle the `failed to initialize WHPX` message as a "retryable" error.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Context: https://devdiv.visualstudio.com/DevDiv/DevDiv%20Team/_build/results?buildId=12734439&view=logs&j=ac1a11c5-6d61-571c-5f0e-9a5f6f202a84&t=a6adf3be-39cf-544a-82ab-2177dae81ee6&l=13
The
Windows > Tests > Debugginglane commonly fails due to emulator startup issues, such as:Let's add some basic retry logic, and handle the
failed to initialize WHPXmessage as a "retryable" error.