Skip to content

Skip single-connect test on Apple mobile CoreCLR#130674

Merged
kotlarmilos merged 5 commits into
dotnet:mainfrom
kotlarmilos:pr/tvos-coreclr-connect
Jul 16, 2026
Merged

Skip single-connect test on Apple mobile CoreCLR#130674
kotlarmilos merged 5 commits into
dotnet:mainfrom
kotlarmilos:pr/tvos-coreclr-connect

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jul 14, 2026

Copy link
Copy Markdown
Member

Description

This skips SingleConnect_ExposeHandle_SecondAttemptThrowsPNSEOnUnix on Apple mobile CoreCLR because connecting to a bound but non-listening socket waits for the platform TCP timeout and causes the System.Net.Sockets.Tests work item to exceed the XHarness timeout. Other platforms and runtimes continue to run the test through an ActiveIssue attribute scoped to PlatformDetection.IsAppleMobile and PlatformDetection.IsCoreCLR.

Contributes to #124344.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 2b951d28-c99d-4820-9a3d-dbd6fa51fc74
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates System.Net.Sockets functional tests to avoid long/hanging multi-connect failure scenarios (notably on Apple platforms) by releasing PortBlocker’s shadow socket before attempting the “first address fails” connect path, and by running the affected scenarios in the existing non-parallel test collection to reduce endpoint contention.

Changes:

  • Moved multi-connect option preservation tests (keep-alive, linger, misc) into the existing Connect_NonParallel test base.
  • Updated the multi-connect “first failure” setup to dispose PortBlocker.SecondarySocket before attempting the failing connect.
  • Added ConnectCancellableTask_NonParallel so the non-parallel connect test matrix still covers the cancellable task helper.
Show a summary per file
File Description
src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs Moves multi-connect tests into non-parallel collection and releases PortBlocker shadow socket pre-connect to avoid OS-level TCP timeout hangs.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs Outdated
Comment thread src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs Outdated
@kotlarmilos
kotlarmilos marked this pull request as draft July 14, 2026 13:35
@kotlarmilos

Copy link
Copy Markdown
Member Author

/azp run runtime-ioslike

@azure-pipelines

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

kotlarmilos and others added 2 commits July 15, 2026 11:36
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a14ecc81-8876-41c9-96ab-ee684e029497
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a14ecc81-8876-41c9-96ab-ee684e029497
Copilot AI review requested due to automatic review settings July 15, 2026 10:10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a14ecc81-8876-41c9-96ab-ee684e029497

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs Outdated
Copilot AI review requested due to automatic review settings July 15, 2026 10:17
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a14ecc81-8876-41c9-96ab-ee684e029497

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs Outdated
Copilot AI review requested due to automatic review settings July 15, 2026 10:25
@kotlarmilos kotlarmilos changed the title Avoid socket multi-connect test timeouts Skip single-connect test on Apple mobile CoreCLR Jul 15, 2026
@kotlarmilos kotlarmilos added this to the 11.0.0 milestone Jul 15, 2026
@kotlarmilos

Copy link
Copy Markdown
Member Author

/azp run runtime-ioslike

@azure-pipelines

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@kotlarmilos

Copy link
Copy Markdown
Member Author

System.Net.Sockets.Tests passed on Apple mobile

@kotlarmilos
kotlarmilos marked this pull request as ready for review July 15, 2026 14:26
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 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.

@kotlarmilos
kotlarmilos merged commit 8823083 into dotnet:main Jul 16, 2026
98 of 105 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants