Skip to content

ci: Move 7.0 API-diff ignores to 6.6 baseline - #23812

Merged
ramezgerges merged 1 commit into
unoplatform:feature/breakingchangesfrom
ramezgerges:dev/ramez/fix-packagediff-66-baseline
Jul 20, 2026
Merged

ramezgerges merged 1 commit into
unoplatform:feature/breakingchangesfrom
ramezgerges:dev/ramez/fix-packagediff-66-baseline

Conversation

@ramezgerges

Copy link
Copy Markdown
Contributor

GitHub Issue: Internal — package-diff CI gate on feature/breakingchanges (7.0 breaking-changes rollout). No public issue; build/CI change per the template's "GitHub issue or internal" allowance.

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

The ValidatePackage API-diff gate started failing on feature/breakingchanges with ~3.8k "unignored" removed members. Root cause is not a new breaking change — it's the diff base advancing to the newly-published stable 6.6.166:

  • generatepkgdiff diffs the PR package against the latest stable NuGet and consults only the single <IgnoreSet> whose baseVersion matches the base's major.minor (now 6.6). It does not read lower sets cumulatively.
  • All the 7.0 breaking-change ignores accumulated during the rollout live under the 6.5 set, so once the base moved to 6.6.166 they stopped being consulted.

This PR relocates (moves, not duplicates) the 7.0 breaking-change entries that are still breaking against 6.6.166 from the 6.5 IgnoreSet to the 6.6 IgnoreSet, and drops 7 entries that were redundantly present in both sets. Pre-6.6 removals that already shipped/absorbed in 6.6.0 (Windows.* legacy/preview stubs, automation-peer namespace moves, WinRT interop projections) match nothing in the 6.6.166 diff and correctly stay in 6.5.

Verification — cross-referenced against the CI ApiDiff report (Uno.WinUI 6.6.166 → 7.0.0-dev.168):

  • New 6.6 set covers all 3838 reported removals — 0 unignored.
  • 6.5 set covers 0 of the reported removals; no fullName appears in both sets; no intra-set duplicates.
  • XML validated well-formed; member total 1815 → 1808 (only the 7 duplicates removed; the 71 relocated entries are preserved, with their per-entry comments and correct section placement).

Note: validated against the CI tool's own removal list, not a local generatepkgdiff run (the PR nupkg / 6.6.166 base can't be built in this environment). The green CI run on this PR is the runtime confirmation.

PR Checklist ✅

  • 🧪 N/A — CI-config change; correctness verified against the CI ApiDiff report (see above)
  • 📚 N/A — no API/behavior change
  • 🖼️ N/A — no visual change
  • ❗ Contains NO breaking changes (relocates existing whitelist entries; no code/API surface change)
  • 👀 Reviewed 2 other open pull requests

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Jul 20, 2026
@ramezgerges
ramezgerges requested review from Xiaoy312 and jonpryor July 20, 2026 14:19
@ramezgerges
ramezgerges enabled auto-merge July 20, 2026 14:21
@unodevops

Copy link
Copy Markdown
Contributor

The package-diff base advanced to the newly-published stable 6.6.166.
generatepkgdiff selects the single IgnoreSet whose baseVersion matches the
base package's major.minor and does NOT read lower sets cumulatively, so the
7.0 breaking-change ignores accumulated under the 6.5 set were no longer
consulted and the guard failed across Uno.WinUI, Uno.WinRT and Uno.Foundation
(e.g. "Removed type ... not found in ignore set").

Every entry in the 6.5 set is a 7.0 breaking change that is still present in
the 6.6.166 base (none shipped in a 6.6 stable), so the whole set is relocated
to the 6.6 IgnoreSet; the 6.5 set is left empty as that base is retired. Seven
entries that were redundantly present in both sets are de-duplicated.

Validated by running generatepkgdiff (1.1.0-dev.29) locally against the
6.6.166 bases (nuget.org) and the 7.0.0-dev.167 PR packages (CI artifact):
Uno.WinRT/Uno.WinUI/Uno.Foundation all exit 0 with the new set, vs exit 1
("not found in ignore set") for Uno.WinRT with the old set. XML validated;
no member lost (1815 -> 1808, the 7 de-duplicated).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@ramezgerges
ramezgerges force-pushed the dev/ramez/fix-packagediff-66-baseline branch from 5a62bdf to a78fccf Compare July 20, 2026 15:14
@unodevops

Copy link
Copy Markdown
Contributor

@ramezgerges
ramezgerges merged commit f5e3ac4 into unoplatform:feature/breakingchanges Jul 20, 2026
64 checks passed
@ramezgerges
ramezgerges deleted the dev/ramez/fix-packagediff-66-baseline branch July 21, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants