Skip to content

C#: Update integration tests to use SDK 10.0.201.#21589

Merged
michaelnebel merged 1 commit intogithub:mainfrom
michaelnebel:csharp/updateintegrationtests
Mar 26, 2026
Merged

C#: Update integration tests to use SDK 10.0.201.#21589
michaelnebel merged 1 commit intogithub:mainfrom
michaelnebel:csharp/updateintegrationtests

Conversation

@michaelnebel
Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel commented Mar 26, 2026

It appears that SDK 10.0.201 is installed on some of the runners, which causes spurious test failures. It appears that version 10.0.201 changes the location of CSHTML and RAZOR generated source files.

@github-actions github-actions bot added the C# label Mar 26, 2026
@michaelnebel michaelnebel force-pushed the csharp/updateintegrationtests branch from ce61a95 to 1d0f049 Compare March 26, 2026 16:41
@michaelnebel michaelnebel force-pushed the csharp/updateintegrationtests branch from 1d0f049 to 1a4f333 Compare March 26, 2026 17:07
@michaelnebel michaelnebel requested a review from mbg March 26, 2026 17:09
@michaelnebel michaelnebel marked this pull request as ready for review March 26, 2026 17:24
@michaelnebel michaelnebel requested a review from a team as a code owner March 26, 2026 17:24
Copilot AI review requested due to automatic review settings March 26, 2026 17:24
Copy link
Copy Markdown
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 C# integration tests to consistently run under .NET SDK 10.0.201, avoiding runner-dependent SDK selection that changes Razor/CSHTML generated file locations and causes flaky expected-output comparisons.

Changes:

  • Bump multiple integration-test global.json files from 10.0.100 (and one from 6.0.418) to 10.0.201
  • Refresh expected-output baselines (*.expected) to match SDK 10.0.201 behavior (updated ref pack versions, compiler args, and Razor generated paths)

Reviewed changes

Copilot reviewed 65 out of 65 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
csharp/ql/integration-tests/windows/standalone_dependencies/global.json Pin Windows standalone-deps integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/warn_as_error/global.json Pin POSIX warn-as-error integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_nuget_versions/global.json Pin NuGet-versions integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_nuget_no_sources/proj/global.json Pin NuGet-no-sources integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_nuget_config_fallback/global.json Pin NuGet-config-fallback integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_nuget_config_error_timeout/global.json Pin NuGet-config-timeout integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_nuget_config_error/global.json Pin NuGet-config-error integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_nuget/global.json Pin NuGet integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_nuget with_space/global.json Pin NuGet (path-with-space) integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_no_framework/global.json Pin no-framework integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_multi_target/global.json Pin multi-target integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies_multi_target/Assemblies.expected Update multi-target assembly baseline for SDK 10.0.201 (ref pack version/path changes)
csharp/ql/integration-tests/posix/standalone_dependencies_multi_project/global.json Pin multi-project integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies/global.json Pin standalone-deps integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/standalone_dependencies/Assemblies.expected Update standalone-deps assembly baseline for SDK 10.0.201
csharp/ql/integration-tests/posix/inherit-env-vars/global.json Pin inherit-env-vars integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/dotnet_test_mstest/global.json Pin dotnet test (mstest) integration tests to SDK 10.0.201
csharp/ql/integration-tests/posix/dotnet_test/global.json Pin dotnet test integration tests to SDK 10.0.201
csharp/ql/integration-tests/linux/standalone_dependencies_non_utf8_filename/global.json Pin non-UTF8 filename integration tests to SDK 10.0.201
csharp/ql/integration-tests/linux/diag_nuget_config_casing/global.json Pin diag NuGet config-casing integration tests to SDK 10.0.201
csharp/ql/integration-tests/linux/compiler_args/global.json Pin compiler-args integration tests to SDK 10.0.201
csharp/ql/integration-tests/linux/compiler_args/CompilerArgs.expected Update compiler-args baseline for SDK 10.0.201 (nowarn + pack/analyzer paths)
csharp/ql/integration-tests/all-platforms/standalone_winforms/global.json Pin winforms integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/standalone_winforms/Assemblies.expected Update winforms assembly baseline for SDK 10.0.201 (windowsdesktop ref pack version/path changes)
csharp/ql/integration-tests/all-platforms/standalone_slnx/global.json Pin slnx integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/standalone_resx/global.json Pin resx integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/standalone_failed/global.json Pin standalone-failed integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/standalone_dependency_dir/proj/global.json Pin dependency-dir integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/standalone_dependencies_net48/global.json Pin net48 standalone-deps integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/standalone_buildless_option/global.json Pin buildless-option integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/standalone/global.json Pin standalone integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/source_generator/global.json Pin source-generator integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/dotnet_run/global.json Pin dotnet run integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/dotnet_publish/global.json Pin dotnet publish integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/dotnet_pack/global.json Pin dotnet pack integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/dotnet_no_args_inject/global.json Pin no-args-inject integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/dotnet_build/global.json Pin dotnet build integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/dotnet_10/global.json Pin dotnet_10 integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/diag_recursive_generics/global.json Pin diag recursive-generics integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/diag_missing_xamarin_sdk/global.json Pin diag missing-xamarin-sdk integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/diag_missing_project_files/global.json Pin diag missing-project-files integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/diag_dotnet_incompatible/global.json Pin diag dotnet-incompatible integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml_standalone_net6/global.json Switch cshtml standalone “net6” test to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml_standalone_net6/Files.expected Update Razor generated file path baseline for SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml_standalone_flowsteps/global.json Pin cshtml flowsteps integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml_standalone_disabled/global.json Pin cshtml disabled integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml_standalone/global.json Pin cshtml standalone integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml_standalone/Files.expected Update Razor generated file path baseline for SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml/global.json Pin cshtml integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/cshtml/Files.expected Update Razor generated file path baseline for SDK 10.0.201
csharp/ql/integration-tests/all-platforms/conditional_compilation/global.json Pin conditional-compilation integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/blazor_build_mode_none/global.json Pin Blazor (build mode none) integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/blazor_build_mode_none/XSS.expected Update Blazor XSS baseline for SDK 10.0.201 (Razor output path changes)
csharp/ql/integration-tests/all-platforms/blazor_build_mode_none/Files.expected Update Blazor file baseline for SDK 10.0.201 (Razor output path changes)
csharp/ql/integration-tests/all-platforms/blazor_build_mode_none/BlazorTest/global.json Pin nested Blazor test project to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/blazor/global.json Pin Blazor integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/blazor/XSS.expected Update Blazor XSS baseline for SDK 10.0.201 (Razor output path changes)
csharp/ql/integration-tests/all-platforms/blazor/Files.expected Update Blazor file baseline for SDK 10.0.201 (Razor output path changes)
csharp/ql/integration-tests/all-platforms/blazor/BlazorTest/global.json Pin nested Blazor test project to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/binlog_multiple/global.json Pin binlog-multiple integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/binlog/global.json Pin binlog integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/autobuild_slnx/global.json Pin autobuild slnx integration tests to SDK 10.0.201
csharp/ql/integration-tests/all-platforms/autobuild/global.json Pin autobuild integration tests to SDK 10.0.201
Comments suppressed due to low confidence (1)

csharp/ql/integration-tests/all-platforms/standalone/global.json:1

  • The global.json files pin an SDK version but do not specify a rollForward policy. To reduce runner-to-runner variability (and make intent explicit), consider adding a rollForward setting (e.g., latestPatch to allow servicing updates within the same band, or disable if CI always installs the exact SDK). Applying this consistently across the integration-test global.json files makes SDK resolution behavior more predictable.

{
"sdk": {
"version": "6.0.418"
"version": "10.0.201"
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

This test folder is explicitly named cshtml_standalone_net6, but it now pins the SDK to 10.0.201 (previously 6.0.418). If this test is meant to validate .NET 6-era Razor/CSHTML behavior, consider keeping the 6.x SDK here (or renaming the test folder/test to reflect that it now runs under .NET 10), to avoid confusion and unintended coverage changes.

Suggested change
"version": "10.0.201"
"version": "6.0.418"

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copilot is correct

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is on purpose.

mbg
mbg previously requested changes Mar 26, 2026
Copy link
Copy Markdown
Member

@mbg mbg left a comment

Choose a reason for hiding this comment

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

Copilot's comment is correct -- also see my comment on the internal PR.

{
"sdk": {
"version": "6.0.418"
"version": "10.0.201"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copilot is correct

@michaelnebel michaelnebel requested review from hvitved and mbg March 26, 2026 18:03
Copy link
Copy Markdown
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

Thanks for fixing

@michaelnebel michaelnebel dismissed mbg’s stale review March 26, 2026 18:50

The .NET version was updated on purpose.

@michaelnebel michaelnebel merged commit c4c363d into github:main Mar 26, 2026
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants