Repository navigation
[System.Net.Security] Isolate TLS resumption test credentials - #135689
tannergooding wants to merge 2 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 4 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones |
|
This "should" help with the test flakiness. |
|
Maybe we should do this for all tests in the test class, that rely on the session cache being in a particular state |
or run them in the non-parallel set? There is still cache inside schannel that we cannot control. |
There was a problem hiding this comment.
🟢 Approval recommended
The focused test-only change follows existing process-isolation patterns without altering assertions or non-Windows behavior.
0 open findings
What changed in this PR
Isolates the Windows TLS resumption test from process-wide Schannel credential-cache interference.
Changes:
- Runs the Windows test through
RemoteExecutor. - Preserves the existing Linux and unsupported-host path.
| File | Description |
|---|---|
SslStreamAllowTlsResumeTests.cs |
Extracts test logic and adds Windows process isolation. |
🧠 Review effort: Balanced
adamsitnik
left a comment
There was a problem hiding this comment.
The change LGTM, I leave it up to @tannergooding to decide whether he wants to change other tests or keep the PR focused on this particular flaky test.
|
Replaced by #135751 |
Fixes #133418
On Windows, run
DifferentEncryptionPolicy_NoResumein a child process so other TLS tests cannot evict its cached Schannel credentials between the initial handshake and the required resumption. The existing assertions and Linux path are unchanged.Validation: A controlled x86 cache-churn experiment reproduced the failure before isolation and passed afterward. Before merging current upstream
main, 35 targeted tests passed; the System.Net.Security suite had 5,310 tests, 0 failures, and 28 skips. Per request, tests were not rerun after the merge; the attempted build stopped before test execution because the local shared framework/targeting pack was unavailable. Windows Server 2016 validation remains outstanding.Note
This PR description was prepared with GitHub Copilot.