Skip to content

[release/10.0][HTTP/SSL] Fix stress test#125128

Open
ManickaP wants to merge 1 commit intodotnet:release/10.0from
ManickaP:release/10.0
Open

[release/10.0][HTTP/SSL] Fix stress test#125128
ManickaP wants to merge 1 commit intodotnet:release/10.0from
ManickaP:release/10.0

Conversation

@ManickaP
Copy link
Member

@ManickaP ManickaP commented Mar 3, 2026

Customer Impact

  • Customer reported
  • Found internally

Fixes .NET version for testhost being older than the latest greatest daily build.

Regression

  • Yes
  • No

Testing

CI stress tests pipeline.

Risk

Low, test only change, no product code change.

Copilot AI review requested due to automatic review settings March 3, 2026 16:50
@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the HTTP and SSL stress-test MSBuild props to ensure a valid runtime framework version is chosen when building in Docker contexts where eng/Versions.props isn’t present, preventing failures due to an unset ProductVersion.

Changes:

  • Add a fallback ProductVersion value when it’s unset.
  • Default ProductVersion to $(NetCoreAppCurrentVersion).0 to allow roll-forward to the available testhost runtime.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/libraries/System.Net.Security/tests/StressTests/SslStress/Directory.Build.props Adds a Docker-safe fallback for ProductVersion to keep local targeting/runtime pack resolution working.
src/libraries/System.Net.Http/tests/StressTests/HttpStress/Directory.Build.props Mirrors the same ProductVersion fallback to keep HttpStress Docker builds aligned with the testhost runtime.

@ManickaP ManickaP changed the title [HTTP/SSL] Fix stress test [release/10.0][HTTP/SSL] Fix stress test Mar 4, 2026
@ManickaP
Copy link
Member Author

ManickaP commented Mar 4, 2026

@ManickaP ManickaP added the Servicing-approved Approved for servicing release label Mar 4, 2026
@ManickaP ManickaP requested a review from a team March 4, 2026 14:31
@ManickaP ManickaP marked this pull request as ready for review March 4, 2026 14:31
Copilot AI review requested due to automatic review settings March 4, 2026 14:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 9, 2026
Copy link
Member

@rzikm rzikm left a comment

Choose a reason for hiding this comment

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

LGTM

@karelz karelz added NO-REVIEW Experimental/testing PR, do NOT review it and removed Servicing-approved Approved for servicing release labels Mar 10, 2026
Copilot AI review requested due to automatic review settings March 11, 2026 09:52
@ManickaP
Copy link
Member Author

/azp run runtime-libraries stress-http

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

…sion mismatch

The stress test Docker pipeline installs the latest daily SDK from the 10.0
channel, which has advanced to targeting framework 10.0.6. However, the
release/10.0 branch builds runtime version 10.0.5. In Docker, the stress
test projects cannot import eng/Versions.props (repo root is unavailable),
so ProductVersion is empty and the SDK defaults to its own framework version
(10.0.6), causing a runtime mismatch at launch.

Fix by extracting PatchVersion in the build scripts and passing the full
ProductVersion (e.g., 10.0.5) as a Docker build arg through to dotnet build.
This ensures the runtimeconfig.json always requests the framework version
matching the locally-built runtime, regardless of SDK version drift.

Affects HttpStress and SslStress on both Linux and Windows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ManickaP ManickaP reopened this Mar 11, 2026
@ManickaP
Copy link
Member Author

/azp run runtime-libraries stress-http

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP
Copy link
Member Author

/azp run runtime-libraries stress-http

@azure-pipelines
Copy link

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 NO-REVIEW Experimental/testing PR, do NOT review it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants