[mobile] Skip DnsGetHostEntry_LocalHost test on Android#127420
[mobile] Skip DnsGetHostEntry_LocalHost test on Android#127420kotlarmilos merged 3 commits intomainfrom
Conversation
Android Helix machines have network interfaces with non-loopback addresses that are returned when querying localhost, causing this test to fail. The test assumes localhost resolves only to loopback addresses (127.0.0.1 and ::1), but Android emulators return actual network interfaces. This is consistent with existing skips on iOS, tvOS, and MacCatalyst for similar reasons. Fixes android-arm64 Release AllSubsets_Mono failure in build 1396313: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1396313 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger |
🤖 Copilot Code Review — PR #127420Note This review was generated by Copilot. Holistic AssessmentMotivation: The test Approach: The change adds a single Summary: Detailed Findings
|
|
@copilot extend |
…form Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/f795cf35-3bf1-4b28-978a-6d34276dcdb6 Co-authored-by: kotlarmilos <11523312+kotlarmilos@users.noreply.github.com>
Done in 88e4d2f. Replaced |
There was a problem hiding this comment.
Pull request overview
Updates System.Net.NameResolution functional tests to avoid Android-specific failures in DnsGetHostEntry_LocalHost_ReturnsFqdnAndLoopbackIPs by extending an existing platform-conditional suppression to include Android.
Changes:
- Extend the existing
[ActiveIssue(...)]platform mask forDnsGetHostEntry_LocalHost_ReturnsFqdnAndLoopbackIPsto includeTestPlatforms.Android.
Show a summary per file
| File | Description |
|---|---|
src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostEntryTest.cs |
Adds Android to the platform list for an ActiveIssue-based skip on a localhost/loopback assertion test. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
Note
This content was generated by GitHub Copilot.
Summary
Fixes
System.Net.NameResolution.Functional.Tests.GetHostEntryTest.DnsGetHostEntry_LocalHost_ReturnsFqdnAndLoopbackIPstest failure on Android by skipping the test on that platform.Background
The test assumes that resolving "localhost" returns only loopback IP addresses (
127.0.0.1and::1). However, on Android Helix machines (emulators), the DNS resolution for "localhost" returns actual network interfaces in addition to loopback addresses, causing the test to fail with assertions like:Related
Note
🔒 Integrity filter blocked 1 item
The following item were blocked because they don't meet the GitHub integrity level.
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter: