Repository navigation
Use dynamic ports in delayed test apps - #69908
Merged
wtgodbe merged 1 commit intoOct 16, 2026
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The required frozen review evidence was unavailable, leaving approval checks incomplete.
No open issues 🎉
What changed in this PR
Updates delayed test applications to use ephemeral loopback ports, avoiding port conflicts during concurrent CI runs.
Changes:
- Configures both applications to bind to
127.0.0.1:0. - Updates the Validation client to use Kestrel’s assigned address.
| File | Description |
|---|---|
| src/Validation/test/Microsoft.Extensions.Validation.NativeAotTests/BasicMinimalApiWithValidation.cs | Uses an ephemeral port and discovers the client’s base address. |
| src/SignalR/server/SignalR/test/Microsoft.AspNetCore.SignalR.TrimmingTests/TestTypedClients.cs | Configures an ephemeral loopback port. |
Review effort: Balanced
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:46 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:46 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:47 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:48 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:49 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:50 — with
GitHub Actions
Inactive
Contributor
|
✅ No documentation PR was created. Confidence that documentation is needed: 2% No docs needed: the PR only changes test infrastructure to use dynamic ports. Signals showed no_signal. Documentation surfaces considered
|
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 23:50 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use dynamic ports in delayed test apps
Impact: Eliminates address-in-use failures when delayed SignalR and Validation test applications run concurrently on the same CI machine.
Use ephemeral ports in delayed test applications
Description
Configures the SignalR trimming app and the Validation trimming/NativeAOT app to bind to
127.0.0.1:0, then uses the address selected by Kestrel for their client requests.Validation:
source activate.sh && dotnet build src/SignalR/server/SignalR/test/Microsoft.AspNetCore.SignalR.TrimmingTests/Microsoft.AspNetCore.SignalR.TrimmingTests.proj -v:minimal— passed.source activate.sh && dotnet build src/Validation/test/Microsoft.Extensions.Validation.NativeAotTests/Microsoft.Extensions.Validation.NativeAotTests.proj -v:minimal— passed.AddressInUseExceptionand exit code 134.Related to internal CI build 3107295; no public issue.