Skip to content

Test against .NET 11.0.1xx only and disable SDK Next integration tests by default since we're only targeting 11.0.1xx now. - #7549

Merged
nkolev92 merged 1 commit into
devfrom
dev-nkolev92-test11xOnly
Jul 16, 2026
Merged

nkolev92 merged 1 commit into
devfrom
dev-nkolev92-test11xOnly

Conversation

@nkolev92

@nkolev92 nkolev92 commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes:

Progress: https://github.com/NuGet/Client.Engineering/issues/3874

Description

Test/CI configuration change only (no product code) in preparation for the 7.9 branch. Moves Dotnet.Integration.Test onto the .NET 11.0.1xx SDK and turns the SDK Next test legs off by default so they don't gate PRs while SDK Next does not exist. Nothing is deleted — SDK Next remains easy to re-enable.

Pipeline

  • eng/pipelines/pr.yml — Added a new RunSdkNextTests pipeline parameter (default false) and gated the three Dotnet.Integration.Test ... (SDK Next) stages (Windows / Linux / MacOS) on it, combined with the existing per-OS switches. The stages stay in the file and can be re-enabled by flipping the parameter.

SDK install / configure

  • build/DotNetSdkTestVersions.txt — Slimmed the test SDK/runtime matrix: removed the standalone 8.0 and 9.0 runtime installs and the 10.0.4xx SDK daily; now installs the 10.0 shared runtime (-Channel 10.0 -Runtime dotnet) and the 11.0.1xx SDK daily (-Channel 11.0.1xx -Quality daily).
  • configure.sh — Fixed the read loop that parses DotNetSdkTestVersions.txt: the continuation guard referenced an undefined $line, so the last line was dropped when the file had no trailing newline. It now guards on $CliArgs.

Test project targeting

  • test/NuGet.Core.FuncTests/Dotnet.Integration.Test/Dotnet.Integration.Test.csproj — Added a TestSDKNext property (default false) that controls whether the sdkNext target framework is built, added an IsEscrowMode guard to the TFM conditions, and adjusted LatestNETCoreTargetFrameworkMajorVersion (now latest major + 1) so the "next framework" math lines up with 11.x being latest.
  • test/NuGet.Core.FuncTests/Dotnet.Integration.Test/TestConstants.cs — Bumped ProjectTargetFramework: net10.0 → net11.0 (current SDK) and net11.0 → net12.0 (SDK Next).

Test assertion cleanup (only 11.0.1xx is exercised now)

  • test/NuGet.Core.FuncTests/Dotnet.Integration.Test/DotnetWhyTests.cs — Removed the now-dead #if SDK_CURRENT branches across the why tests, keeping the current dotnet nuget why expected output.
  • test/NuGet.Core.FuncTests/Dotnet.Integration.Test/PackCommandTests.cs — PackCommand_PackageIdWithNonAsciiCharacters_NU5052 now always asserts the NU5052 warning is present (dropped the #if SDK_NEXT split).
  • test/NuGet.Core.FuncTests/NuGet.Signing.CrossFramework.Test/CrossVerifyTestFixture.cs — Bumped the manually-specified net472 SdkVersion from 10 to 11.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@nkolev92
nkolev92 requested a review from a team as a code owner July 8, 2026 21:37
@nkolev92
nkolev92 requested review from jebriede and kartheekp-ms July 8, 2026 21:37
@nkolev92 nkolev92 changed the title Test against .NET 11.0.1xx only and disable SDK Next integration tests by default Test against .NET 11.0.1xx only and disable SDK Next integration tests by default since we're only targeting 11.0.1xx now. Jul 8, 2026
@nkolev92
nkolev92 marked this pull request as draft July 8, 2026 23:02
@nkolev92
nkolev92 force-pushed the dev-nkolev92-test11xOnly branch from f215ff6 to 2a49d1d Compare July 13, 2026 17:16
@nkolev92
nkolev92 marked this pull request as ready for review July 15, 2026 16:27
…s by default since we're only inserting into NET 11 right now
@nkolev92
nkolev92 force-pushed the dev-nkolev92-test11xOnly branch from 76adf4b to 837fc20 Compare July 15, 2026 16:30
@nkolev92
nkolev92 enabled auto-merge (squash) July 15, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants