[AndroidSdk] Avoid warnings for emulator diagnostics - #12606
Open
jonathanpeppers wants to merge 1 commit into
Open
[AndroidSdk] Avoid warnings for emulator diagnostics#12606jonathanpeppers wants to merge 1 commit into
jonathanpeppers wants to merge 1 commit into
Conversation
The Android emulator writes informational netsimd startup messages to stderr. EmulatorRunner classified every stderr line as a warning, so a successful dotnet test could report dozens of warnings. Log stderr at verbose level instead. Actual emulator launch and boot failures continue to be reported by the boot result handling. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 282fdada-3869-4e70-b4be-b0b7037cd5db
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR adjusts logging in the Android SDK EmulatorRunner to avoid treating informational emulator stderr diagnostics (notably netsimd startup output) as MSBuild warnings, reducing warning noise during otherwise-successful test runs.
Changes:
- Demote emulator
stderrforwarding fromTraceLevel.WarningtoTraceLevel.VerboseinEmulatorRunner.LaunchEmulator().
File summaries
| File | Description |
|---|---|
src/Xamarin.Android.Tools.AndroidSdk/Runners/EmulatorRunner.cs |
Changes emulator stderr forwarding from warning-level to verbose-level to avoid warning spam in MSBuild output. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
rolfbjarne
approved these changes
Sep 1, 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.
Context
The Android emulator writes informational
netsimdstartup diagnostics to stderr.EmulatorRunnerclassified every stderr line as an MSBuild warning, causing a successful test run to report 35 warnings:Original CLI output
Fix
Log redirected emulator stderr at
TraceLevel.Verboseinstead ofTraceLevel.Warning. Actual launch and boot failures remain reported through the existing boot result handling.