Skip to content

Suppress advertising manifest messages unless verbosity is diagnostic#55276

Draft
marcpopMSFT with Copilot wants to merge 6 commits into
mainfrom
copilot/grab-real-commits-for-main
Draft

Suppress advertising manifest messages unless verbosity is diagnostic#55276
marcpopMSFT with Copilot wants to merge 6 commits into
mainfrom
copilot/grab-real-commits-for-main

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Port of the first 5 commits from #51560 (targeting release/10.0.4xx) onto main, without the accumulated merge commits.

Changes

  • WorkloadManifestUpdater — adds a displayManifestUpdates bool parameter; advertising manifest messages (e.g. AdManifestPackageDoesNotExist) are only emitted when true
  • Workload commands (install, update, list) — pass displayManifestUpdates based on whether verbosity is diagnostic; all other verbosity levels suppress these messages
  • CommonOptionsExtensions — adds IsDiagnostic() extension on VerbosityOptions
  • NuGetPackageDownloader — makes _validationMessagesDisplayed static so "Skipping NuGet package signature verification." appears at most once per process, not once per downloader instance
  • Tests — new ItSuppressesMessagesWhenDisplayManifestUpdatesIsFalse; updated HideManifestUpdatesWhenVerbosityIsMinimalOrNormal to include --verbosity:detailed; renamed ShowManifestUpdatesWhenVerbosityIsDetailedOrDiagnosticShowManifestUpdatesWhenVerbosityIsDiagnostic with only the diagnostic data row

Conflicts resolved during cherry-pick: using directives in CommonOptionsExtensions.cs (main had added three additional usings post-branch); xUnit [Fact]/[Theory]/[InlineData] test attributes converted to MSTest equivalents.

Copilot AI and others added 5 commits July 14, 2026 18:59
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Changed _validationMessagesDisplayed flag from instance-level to static to ensure
"Skipping NuGet package signature verification." message appears only once across
all NuGetPackageDownloader instances during workload operations, rather than once
per instance.

Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
@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.

@marcpopMSFT

Copy link
Copy Markdown
Member

@copilot fix the failed build:
D:\a_work\1\s\test\dotnet.Tests\CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs(360,27): error CS0103: The name '_testAssetsManager' does not exist in the current context [D:\a_work\1\s\test\dotnet.Tests\dotnet.Tests.csproj]

I believe it should be TestAssetsManager instead.

@marcpopMSFT

Copy link
Copy Markdown
Member

Tested in codespace. Confirmed that we don't see the advertising manifest messages anymore in manifest mode unless diag verbosity is used.

…in ItSuppressesMessagesWhenDisplayManifestUpdatesIsFalse

Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>

Copilot AI commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix the failed build:
D:\a_work\1\s\test\dotnet.Tests\CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs(360,27): error CS0103: The name '_testAssetsManager' does not exist in th...

Fixed in 617537c — changed _testAssetsManager to TestAssetsManager in the new test method.

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