Skip to content

[release/10.0] Disable parallelisation on SslStreamTlsResumeTests - #137953

Merged
jkotas merged 2 commits into
dotnet:release/10.0from
lewing:lewing-backport-135751-to-10
Nov 20, 2026
Merged

jkotas merged 2 commits into
dotnet:release/10.0from
lewing:lewing-backport-135751-to-10

Conversation

@lewing

@lewing lewing commented Nov 19, 2026

Copy link
Copy Markdown
Member

Fixes Issue N/A; test-only backport of the fix for #133418.

main PR #135751

Description

Backport 7abf5fa to release/10.0. Add [Collection(nameof(DisableParallelization))] to SslStreamTlsResumeTests and compile the existing collection-definition helper into the test assembly. This prevents other test collections from interfering with the TLS session-cache state used across connections.

The three-line change is equivalent to main; the attribute is placed inside the existing .NET 10 #if DEBUG block. No product code changes.

Customer Impact

No direct product impact. TLS resumption test flakiness can fail servicing CI and delay unrelated changes.

Build 1690727 for #137930 failed NoClientCert_DefaultValue_ResumeSucceeds(sslProtocol: Tls12) on Ubuntu.2604.Amd64.Open with Expected True / Actual False at RunConnectionAsync. This backport is a candidate mitigation, not a proven fix for that failure: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1690727&view=ms.vss-test-web.build-test-results-tab&runId=47200416&resultId=153252

The source PR resolved #133418 (DifferentEncryptionPolicy_NoResume). Historical #103354 involved Ubuntu 18.04/OpenSSL and does not establish the cause of the current Ubuntu 26.04 failure.

Regression

No newly introduced product regression identified. This brings existing test isolation from main (merged October 14, 2026) to release/10.0.

Testing

  • ./dotnet.sh --version: 10.0.115, matching global.json.
  • ./dotnet.sh build src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj -c Debug -p:RuntimeConfiguration=Release -p:UseLocalTargetingRuntimePack=false -v:minimal: passed on macOS arm64; 0 warnings, 0 errors. Compiled net10.0-windows, net10.0-unix, net10.0-osx, net10.0-ios, and net10.0-browser variants against the installed SDK targeting pack.
  • git diff --check: passed.
  • The initial project build without -p:UseLocalTargetingRuntimePack=false failed because the local shared-framework targeting pack was not built. The successful command above uses the SDK reference pack instead.
  • An initial ./build.sh clr+libs -rc release baseline on main was stopped at the user's request; a runtime rebuild is unnecessary for this test-only change.
  • No tests were executed. The affected class is Debug-only and Windows/Linux-only; macOS compilation does not validate Windows/Ubuntu behavior or prove that the reported failure is fixed.

Risk

Low: only test scheduling and inclusion of the existing xUnit collection definition change. The collection runs without other parallel collections, which may increase test duration. Product binaries and public APIs are unchanged.

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 test collection serialization from dotnet#135751. Adapt attribute placement to the existing release/10.0 DEBUG block; no product changes.

(cherry picked from commit 7abf5fa)

Co-authored-by: Copilot App <[email protected]>
@lewing lewing added area-System.Net.Security test-bug Problem in test source code (most likely) labels Nov 19, 2026
@lewing
lewing marked this pull request as ready for review November 19, 2026 23:02
@lewing lewing added the Servicing-approved Approved for servicing release label Nov 19, 2026
@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.

1 similar comment
@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.

@lewing

lewing commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net.Security Servicing-approved Approved for servicing release test-bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants