Skip to content

[release/11.0] Disable parallelisation on SslStreamTlsResumeTests - #138225

Closed
lewing wants to merge 1 commit into
release/11.0from
lewing-backport-135751-release-11-0
Closed

lewing wants to merge 1 commit into
release/11.0from
lewing-backport-135751-release-11-0

Conversation

@lewing

@lewing lewing commented Nov 24, 2026

Copy link
Copy Markdown
Member

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

main PR #135751

Description

Test-only backport of 7abf5fa. Adds [Collection(nameof(DisableParallelization))] to SslStreamTlsResumeTests and compiles the existing common DisableParallelization.cs into the test project, so other tests can't interfere with the TLS session-cache state used across connections. release/11.0 no longer has the #if DEBUG wrapper around the class, so only the attribute line was applied there. No product code changes. (release/10.0 equivalent: #137953.)

Customer Impact

None; test-only. Reduces TLS resumption test flakiness in servicing CI. #138078 hit SslStreamTlsResumeTests.NoClientCert_DefaultValue_ResumeSucceeds(sslProtocol: Tls13); this is a plausible mitigation, not a proven fix for that failure.

Regression

No.

Testing

  • ./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 with SDK 11.0.100 (matches global.json): passed on macOS arm64, 0 warnings, 0 errors (windows, unix, osx, ios, android, browser TFMs).
  • Tests not run: the class is Windows/Linux-only and the change only affects scheduling.

Risk

Very low. Test-only; the class now runs serially, same as main and release/10.0.

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.

Note

This PR description was generated with GitHub Copilot.

The class relies on session-cache state across connections. Running it
outside parallel test collections prevents other tests in the assembly
from interfering with that state.

## Validation
- `./build.sh clr+libs -rc release`
- Targeted TLS resumption tests: 32 passed.
- Full System.Net.Security test project: 5,116 passed, 8 skipped, 0
failed.

Resolves #133418

> [!NOTE]
> This PR description was prepared with GitHub Copilot.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rzikm <32671551+rzikm@users.noreply.github.com>
(cherry picked from commit 7abf5fa)

# Conflicts:
#	src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamAllowTlsResumeTests.cs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@lewing lewing added test-bug Problem in test source code (most likely) area-System.Net.Security labels Nov 24, 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.

@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 added the Servicing-approved Approved for servicing release label Nov 24, 2026
@steveisok
steveisok self-requested a review November 24, 2026 19:38
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