Skip to content

[release/10.0] Correct NTLM server test availability on iOS - #138116

Merged
lewing merged 1 commit into
dotnet:release/10.0from
rzikm:rzikm/ios-ntlm-backport-10
Nov 24, 2026
Merged

lewing merged 1 commit into
dotnet:release/10.0from
rzikm:rzikm/ios-ntlm-backport-10

Conversation

@rzikm

@rzikm rzikm commented Nov 23, 2026

Copy link
Copy Markdown
Member

Fixes Issue N/A (test-applicability backport; related issue #137733 is not closed by this PR).

main PR #137801

Description

Backport merged main commit 6f7daef. Apple GSS advertises NTLM but cannot supply the default NTLM acceptor credentials used by these server tests, resulting in UnknownCredentials instead of ContinueNeeded for Negotiate, NTLM, and nTlM.

Exclude iOS from Capability.IsNtlmServerAvailable() and use the upstream Apple-platform comment. This corrects test applicability only; product behavior and assertions are unchanged.

Branch adaptation: release/10.0 predates the MacCatalyst correction in #137410. Its OperatingSystem.IsIOS() explicitly includes MacCatalyst (System.Private.CoreLib/src/System/OperatingSystem.cs), so the single new guard covers both iOS and MacCatalyst without a redundant separate guard. This is an adapted backport, not an exact cherry-pick.

Customer Impact

No product behavior change. Without this correction, affected Apple test runs report failures for an unsupported default-credential NTLM server scenario, adding CI noise and obscuring real regressions.

Regression

Test capability-detection correction, not a product regression fix. The release branch already contains the NTLM server capability helper and its unit/functional test consumers, but excludes only macOS.

Testing

Validated on Windows x64 using an isolated checkout mapped to T: and SDK 10.0.115 (matching global.json). Heavy builds/tests were serialized with the shared build mutex.

  • T:\build.cmd clr+libs -rc release: failed before changes, because the SDK's Git task does not support the shared repository's relativeworktrees extension (src/native/corehost/corehost.proj). No shared Git metadata was modified.
  • T:\build.cmd clr+libs -rc release /p:EnableSourceControlManagerQueries=false: passed, 0 warnings, 0 errors. The supported per-invocation source-control-query opt-out avoids that local SDK tooling incompatibility.
  • From T:\, T:\dotnet.cmd build src\libraries\System.Net.Security\tests\UnitTests\System.Net.Security.Unit.Tests.csproj /t:Test /p:RuntimeConfiguration=Release /p:EnableSourceControlManagerQueries=false: passed, 101 total, 100 passed, 1 skipped, 0 failed/errors. XML confirms ServerPackage_Supported_NTLM passed for all three inputs. Windows uses the separate Windows capability helper; this is control coverage, not execution of the changed Unix helper.
  • T:\dotnet.cmd run --project C:\Users\radekzikmund\.copilot\session-state\5eacbfe2-7004-42e4-bc10-70c972f1707f\files\capability-probe\CapabilityProbe.csproj: passed, 10/10 source-linked Unix-helper cases with simulated OS/native inputs. Before the fix, the same probe failed the iOS device, iOS simulator, and MacCatalyst cases (3/10 failures). After the fix, all three return false without native calls; macOS/browser/WASI exclusions and Linux/native-library controls remain unchanged. The probe is a local validation artifact, not a committed test or an Apple runtime run.
  • git diff --check: passed.

Platform limitation: actual iOS device/simulator and MacCatalyst execution was not run; an Apple runner is unavailable locally. No claim is made that simulation validates native Apple authentication behavior.

Risk

Low: one test-only capability guard and comment update. Existing assertions are preserved, supported non-Apple platforms retain coverage, and no shipping product code changes. The intentional effect is to stop scheduling tests requiring unavailable default NTLM acceptor credentials on iOS and MacCatalyst. Actual Apple execution remains for CI.

Note

This backport and pull request description were prepared with GitHub Copilot.

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

Backport dotnet#137801 (6f7daef). The release branch predates dotnet#137410; IsIOS also covers MacCatalyst, so one guard incorporates both test capability corrections without redundant checks.

Test applicability only; product behavior and assertions are unchanged.

Co-authored-by: Copilot App <[email protected]>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
11 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@rzikm

rzikm commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Test-only change => tell-mode

@rzikm
rzikm requested a review from a team November 23, 2026 14:13
@rzikm

rzikm commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

/ba-g Test failures are unrelated.

@lewing
lewing merged commit 59e8bf7 into dotnet:release/10.0 Nov 24, 2026
98 of 102 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants