Skip to content

[release/11.0.1xx] Disable NuGet audit in SDK test processes - #57178

Merged
nagilson merged 1 commit into
dotnet:release/11.0.1xxfrom
nagilson:backport-nugetaudit-11.0.1xx
Nov 17, 2026
Merged

nagilson merged 1 commit into
dotnet:release/11.0.1xxfrom
nagilson:backport-nugetaudit-11.0.1xx

Conversation

@nagilson

Copy link
Copy Markdown
Member

Backport of #56963 (6fe7842) to release/11.0.1xx.

NuGetAudit NU1903 warnings for Microsoft.DotNet.ILCompiler (#57002) are written to stdout of test-spawned dotnet processes and break exact-stdout assertions, e.g. DotnetProjectConvertTests.ProjectReference_RelativePaths (build 1680511, #57108), RunFileTests_CscOnlyAndApi.MSBuildGet_Consistent (#57132), NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_enabled.

Sets NuGetAudit=false in the SDK test environment, matching main. Test-only change; flows forward through the release merge chain to release/dnup.

Copilot AI balanced review requested due to automatic review settings November 17, 2026 18:38
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 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.

🟢 Approval recommended

No active review issues were identified for the change disabling NuGet auditing in test-spawned processes.

No open issues 🎉

What changed in this PR

Backports the test-environment fix from #56963 to release/11.0.1xx, preventing NuGet audit warnings from disrupting SDK tests that assert exact command output.

Changes:

  • Sets NuGetAudit=false in the shared environment for test-spawned processes.
  • Leaves repository restore auditing and production SDK defaults unchanged.
File Description
test/​Microsoft.NET.TestFramework/​SdkTestContext.cs Disables NuGet auditing in the SDK test process environment.

Review effort: Balanced

@nagilson
nagilson requested a review from a team November 17, 2026 19:16
@nagilson
nagilson enabled auto-merge November 17, 2026 19:16

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — b9dade6f Deployed Nov 17, 2026 by nagilson via pre_activation #14431
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.

4 participants