Skip to content

Scope package-id telemetry flag to actual packages (#7576) - #7581

Merged
nkolev92 merged 1 commit into
release/7.9.xfrom
dev-nkolev92-cherrypick-7576-7.9.x
Jul 21, 2026
Merged

nkolev92 merged 1 commit into
release/7.9.xfrom
dev-nkolev92-cherrypick-7576-7.9.x

Conversation

@nkolev92

Copy link
Copy Markdown
Member

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3889

Description

Cherry-pick of #7576 onto release/7.9.x.

The AnyPackageIdContainsNonAlphanumericDotDashOrUnderscoreCharacters restore telemetry flag scanned every node in the flattened dependency graph, including project nodes. A project's name (or, for unresolved references, its project file path containing \ and :) tripped the check, so the signal was dominated by false positives from projects rather than real package ids.

The fix restricts the check to LibraryType.Package nodes, so only actual package ids are considered.

Tests cover the three misfire cases: an unresolved package, a non-existent project reference (NU1104), and a project reference with a non-ASCII name.

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 21, 2026 18:33
@nkolev92
nkolev92 requested review from jebriede and zivkan July 21, 2026 18:33
@nkolev92
nkolev92 merged commit 977537e into release/7.9.x Jul 21, 2026
8 of 18 checks passed
@nkolev92
nkolev92 deleted the dev-nkolev92-cherrypick-7576-7.9.x branch July 21, 2026 19:14
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