Skip to content

chore(ci): Freeze first-party groups in the Uno.Sdk updater for 7.0 - #2240

Closed
MartinZikmund wants to merge 1 commit into
mainfrom
dev/mazi/freeze-sdk-updater-7.0
Closed

MartinZikmund wants to merge 1 commit into
mainfrom
dev/mazi/freeze-sdk-updater-7.0

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: relates to unoplatform/uno-private#2067

PR Type

What kind of change does this PR introduce?

  • Build or CI related changes
  • Project automation

What is the current behavior?

.github/workflows/uno-updater.yml runs on cron: '0 */6 * * *'. It runs tools/Uno.Sdk.Updater against src/Uno.Sdk/packages.json, opens a PR through peter-evans/create-pull-request, and then immediately calls enable-pull-request-automerge. There is no human gate on that path.

.github/sdk-update-exclude.json listed only third-party groups (SkiaSharp, SvgSkia, WinAppSdk) — not one first-party group. Now that Uno Platform 7.0 packages are publishing to nuget.org, nothing left in the updater can tell a 7.0-only release apart from a servicing one:

  1. IsCompatibleWithUnoWinUI tests a floor, not a ceiling. It reads the Uno.WinUI dependency out of the candidate's nuspec and asserts UnoVersion >= unoWinUIVersion. NuGet dependency versions are minimums, and a package that moves to 7.0 keeps a 6.x floor. Uno.WinUI.Markup 7.0.0-dev.5 declares Uno.WinUI 6.7.0-dev.41, so it passes against a 6.x SDK. This check can never detect a package that has moved forward.
  2. Several first-party packages are never checked at all. Uno.Fonts.*, Uno.Resizetizer, Uno.Settings.DevServer and Uno.Dsp.Tasks declare no Uno dependency in their nuspec, so IsCompatibleWithUnoWinUI returns true unconditionally. Uno.Sdk.Extras is skipped outright, because RequiresValidation excludes any id starting with Uno.Sdk.
  3. The minor+1 upper bound is conditional. In NuGetApiClient.GetVersionAsync it is applied only if (UnoVersion.HasValue && !UnoVersion.Value.IsPreview) — so on a prerelease Uno.Sdk.Private line there is no upper bound whatsoever. Where it does apply, it bounds the dependency's own version numbering, which says nothing about Uno major compatibility.

The majorUpgradeDisabledGroups list in Program.cs covers only SkiaSharp, WasmBootstrap, MicrosoftLoggingConsole, WindowsCompatibility and Maui — no first-party UI group.

Evidence (Runtime)

I ran the updater itself against this branch's base, unmodified:

NBGV_SemVer2=6.8.0-dev.9999 dotnet run -c Release --project tools/Uno.Sdk.Updater \
  -- --exclude-file ".github/sdk-update-exclude.json"

With the exclude list as it stands on main, it resolves Uno.Sdk.Private 6.8.0-dev.148 and then reports:

Updated Group 'hotdesign' to version '1.23.0-dev.7'.
Updated Group 'UnoFonts' to version '2.10.0-dev.9'.
Updated Group 'CSharpMarkup' to version '7.0.0-dev.5'.
Updated Group 'AppMcp' to version '2.0.0-dev.1'.

That is a 6.8-dev Uno.WinUI shipped alongside Uno.WinUI.Markup 7.0.0-dev.5 and Uno.UI.App.Mcp 2.0.0-dev.1, and it would have auto-merged. This is not hypothetical — it is what the next scheduled run would have produced.

With this PR's exclude list applied, the same command logs Loaded 17 exclusion(s), Skipping '<group>' due to exclusion list. for all 14 new groups, and the only remaining change to packages.json is the intended Core bump to 6.8.0-dev.148.

What is the new behavior?

The first-party groups are added to .github/sdk-update-exclude.json, so UpdateGroup short-circuits them and leaves their pinned versions alone.

Exclusions are matched in Program.cs as ExcludeConfig.Excluded.Contains(group.Group), against a HashSet<string>(StringComparer.OrdinalIgnoreCase) — an exact, case-insensitive match on the group name in packages.json, not on a package id and not a prefix. Every added entry is a group name that exists in this branch's packages.json.

Groups added (14): Themes, Toolkit, Extensions, CSharpMarkup, Resizetizer, UnoFonts, settings, hotdesign, AppMcp, sdkextras, CoreLogging, OSLogging, WasmBootstrap, Dsp.

Deliberately not frozen:

  • Core — this is the Uno.Sdk.Private version itself, already bounded by UpdaterBuildContext.MinVersion/MaxVersion. Freezing it would defeat the updater entirely.
  • UniversalImageLoading — Uno.UniversalImageLoader, a repackaged third-party Android image loader on a dormant stable-only 1.9.x line, not part of the 7.0 release train.
  • Prism — third-party, and its packages do carry a real Uno.WinUI nuspec dependency.

This is a holding measure, not a permanent pin. Each group should be unfrozen individually as that library ships its 7.0-compatible release — not all at once.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Associated with an issue (GitHub or internal)

Other information

Existing entries and their explanatory comments are preserved, and the file keeps its JSON-with-comments style (the updater parses it with JsonCommentHandling.Skip).

🤖 Generated with Claude Code

https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6

@MartinZikmund MartinZikmund mentioned this pull request Sep 3, 2026
1 of 4 tasks
@MartinZikmund
MartinZikmund marked this pull request as ready for review September 3, 2026 08:20
Copilot AI lite review requested due to automatic review settings September 3, 2026 08:20

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.

🟡 Changes recommended

The PR description should include a fully-qualified GitHub issue link (e.g., Related to https://github.com/unoplatform/uno-private/issues/2067) to comply with the mandatory issue-linking format.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the Uno SDK updater exclusion list to temporarily freeze first-party package groups while Uno Platform 7.0 packages start publishing to NuGet, preventing the scheduled auto-merge updater workflow from silently pulling in incompatible major-version releases.

Changes:

  • Add 14 first-party packages.json group names to .github/sdk-update-exclude.json so the updater short-circuits those groups.
  • Preserve the existing JSON-with-comments format (compatible with the updater’s JsonCommentHandling.Skip parsing) and keep existing third-party exclusions intact.
File summaries
File Description
.github/sdk-update-exclude.json Adds a 7.0 “freeze” block of first-party group names to prevent unattended updater runs from bumping them across major versions.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@morning4coffe-dev morning4coffe-dev left a comment

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.

The freeze uses the updater's existing exact, case-insensitive group-name exclusion mechanism. I verified all 17 entries exist in the manifest, the 14 newly held groups are correctly named, and Core remains unfrozen. Existing exclusions are preserved and the file remains compatible with the JSON-with-comments reader. This is a scoped release hold, not a change to package compatibility inference or runtime behavior.

@mergify

mergify Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

The Uno.Sdk updater bot (.github/workflows/uno-updater.yml) runs every 6
hours and auto-merges its own PR, and its exclude list held no first-party
group. Nothing else in the updater can tell a 7.0-only release apart from a
servicing one:

- IsCompatibleWithUnoWinUI compares against the *minimum* Uno.WinUI version
  declared in the nuspec. Uno.WinUI.Markup 7.0.0-dev.5 floors at Uno.WinUI
  6.7.0-dev.41, so it passes on a 6.x SDK.
- Uno.Fonts.*, Uno.Resizetizer, Uno.Settings.DevServer and Uno.Dsp.Tasks
  declare no Uno dependency at all, and Uno.Sdk.* is skipped by
  RequiresValidation, so those are never checked.
- The minor+1 upper bound is applied only when the resolved Uno.Sdk.Private
  version is stable, leaving the prerelease line unbounded.

Running the updater against main today resolves CSharpMarkup to 7.0.0-dev.5
and AppMcp to 2.0.0-dev.1 while Core stays at 6.8.0-dev.148.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6
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.

3 participants