Skip to content

Commit 2965b6f

Browse files
[ci-scan] Skip DnsGetHostAddresses_LocalhostSubdomainWithTrailingDot on Android (refs #127965) (#127983)
## Reasoning The test `DnsGetHostAddresses_LocalhostSubdomainWithTrailingDot_ReturnsLoopback` fails on Android because the Android emulator DNS resolver returns link-local and globally-routable IPv6 addresses for `.localhost` subdomain queries (`foo.localhost.`, `bar.test.localhost.`) instead of loopback addresses. This is a platform DNS resolver behavior difference (Android does not honor RFC 6761 §6.3 for subdomains of localhost), not a .NET product bug. The `[ActiveIssue]` annotation on `TestPlatforms.Android` is the correct narrowly-scoped muting for this failure. **KBE verification (four questions):** 1. Same test? Yes — `DnsGetHostAddresses_LocalhostSubdomainWithTrailingDot_ReturnsLoopback`. 2. Same failure signature? Yes — `Assert.All() Failure: ... Expected loopback address but got: fe80::...`. 3. Same OS? Yes — Android. 4. Same architecture? Yes — all Android architectures (arm64, x64, x86). ## Impact on platforms - runtime-extra-platforms (def 154) + android-arm64 Mono + Windows.11.Amd64.Android.Open + no stress + exit code 1 - runtime-extra-platforms (def 154) + android-x64 Mono + Windows.11.Amd64.Android.Open + no stress + exit code 1 - runtime-extra-platforms (def 154) + android-arm64 CoreCLR + Windows.11.Amd64.Android.Open + no stress + exit code 1 - runtime-extra-platforms (def 154) + android-x64 CoreCLR + Windows.11.Amd64.Android.Open + no stress + exit code 1 ## Errors log ``` [FAIL] System.Net.NameResolution.Tests.GetHostAddressesTest.DnsGetHostAddresses_LocalhostSubdomainWithTrailingDot_ReturnsLoopback(hostName: "foo.localhost.") Assert.All() Failure: 6 out of 7 items in the collection did not pass. [1]: Item: fe80::cc6b:b5ff:fe9c:4dde%30 Error: Expected loopback address but got: fe80::cc6b:b5ff:fe9c:4dde%30 ``` ## First build it occurred First seen in build [1411505](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1411505) (2026-05-07) within the scanned window. Also present in [1413202](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1413202). This is computed within the scanned window and may not be the true origin. ## Linked issue Linked KBE: #127965 > [!NOTE] > <details> > <summary>🔒 Integrity filter blocked 19 items</summary> > > The following items were blocked because they don't meet the GitHub integrity level. > > - [#125901](#125901) `search_pull_requests`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#122311](#122311) `search_pull_requests`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#114055](#114055) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#120891](#120891) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#84006](#84006) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#112841](#112841) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#83317](#83317) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#51317](#51317) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#86416](#86416) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#90084](#90084) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#77241](#77241) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#115319](#115319) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#93768](#93768) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#96506](#96506) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#90803](#90803) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - [#126682](#126682) `search_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". > - ... and 3 more items > > To allow these resources, lower `min-integrity` in your GitHub frontmatter: > > ```yaml > tools: > github: > min-integrity: approved # merged | approved | unapproved | none > ``` > > </details> > Generated by [CI Outer-Loop Failure Scanner](https://github.com/dotnet/runtime/actions/runs/25587406882/agentic_workflow) · ● 35.9M · [◷](https://github.com/search?q=repo%3Adotnet%2Fruntime+%22gh-aw-workflow-id%3A+ci-failure-scan%22&type=pullrequests) <!-- gh-aw-agentic-workflow: CI Outer-Loop Failure Scanner, engine: copilot, version: 1.0.40, model: claude-opus-4.6, id: 25587406882, workflow_id: ci-failure-scan, run: https://github.com/dotnet/runtime/actions/runs/25587406882 --> <!-- gh-aw-workflow-id: ci-failure-scan --> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 371e08c commit 2965b6f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libraries/System.Net.NameResolution/tests/FunctionalTests/GetHostAddressesTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ public async Task DnsGetHostAddresses_LocalhostAndSubdomain_BothReturnLoopback()
308308
}
309309

310310
// RFC 6761: Localhost subdomains with trailing dot should work (e.g., "foo.localhost.")
311+
[ActiveIssue("https://github.com/dotnet/runtime/issues/127965", TestPlatforms.Android)]
311312
[Theory]
312313
[InlineData("foo.localhost.")]
313314
[InlineData("bar.test.localhost.")]

0 commit comments

Comments
 (0)