Repository navigation
chore(ci): Freeze first-party groups in the Uno.Sdk updater for 7.0 - #2240
MartinZikmund wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟡 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.jsongroup names to.github/sdk-update-exclude.jsonso the updater short-circuits those groups. - Preserve the existing JSON-with-comments format (compatible with the updater’s
JsonCommentHandling.Skipparsing) 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.
2ccb135 to
494ef79
Compare
morning4coffe-dev
left a comment
There was a problem hiding this comment.
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.
|
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
494ef79 to
eaf840e
Compare
GitHub Issue: relates to unoplatform/uno-private#2067
PR Type
What kind of change does this PR introduce?
What is the current behavior?
.github/workflows/uno-updater.ymlruns oncron: '0 */6 * * *'. It runstools/Uno.Sdk.Updateragainstsrc/Uno.Sdk/packages.json, opens a PR throughpeter-evans/create-pull-request, and then immediately callsenable-pull-request-automerge. There is no human gate on that path..github/sdk-update-exclude.jsonlisted 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:IsCompatibleWithUnoWinUItests a floor, not a ceiling. It reads theUno.WinUIdependency out of the candidate's nuspec and assertsUnoVersion >= 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.5declaresUno.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.Uno.Fonts.*,Uno.Resizetizer,Uno.Settings.DevServerandUno.Dsp.Tasksdeclare noUnodependency in their nuspec, soIsCompatibleWithUnoWinUIreturnstrueunconditionally.Uno.Sdk.Extrasis skipped outright, becauseRequiresValidationexcludes any id starting withUno.Sdk.minor+1upper bound is conditional. InNuGetApiClient.GetVersionAsyncit is applied onlyif (UnoVersion.HasValue && !UnoVersion.Value.IsPreview)— so on a prereleaseUno.Sdk.Privateline 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
majorUpgradeDisabledGroupslist inProgram.cscovers onlySkiaSharp,WasmBootstrap,MicrosoftLoggingConsole,WindowsCompatibilityandMaui— no first-party UI group.Evidence (Runtime)
I ran the updater itself against this branch's base, unmodified:
With the exclude list as it stands on
main, it resolvesUno.Sdk.Private6.8.0-dev.148 and then reports:That is a 6.8-dev
Uno.WinUIshipped alongsideUno.WinUI.Markup7.0.0-dev.5 andUno.UI.App.Mcp2.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 topackages.jsonis the intendedCorebump to6.8.0-dev.148.What is the new behavior?
The first-party groups are added to
.github/sdk-update-exclude.json, soUpdateGroupshort-circuits them and leaves their pinned versions alone.Exclusions are matched in
Program.csasExcludeConfig.Excluded.Contains(group.Group), against aHashSet<string>(StringComparer.OrdinalIgnoreCase)— an exact, case-insensitive match on thegroupname inpackages.json, not on a package id and not a prefix. Every added entry is a group name that exists in this branch'spackages.json.Groups added (14):
Themes,Toolkit,Extensions,CSharpMarkup,Resizetizer,UnoFonts,settings,hotdesign,AppMcp,sdkextras,CoreLogging,OSLogging,WasmBootstrap,Dsp.Deliberately not frozen:
Core— this is theUno.Sdk.Privateversion itself, already bounded byUpdaterBuildContext.MinVersion/MaxVersion. Freezing it would defeat the updater entirely.UniversalImageLoading—Uno.UniversalImageLoader, a repackaged third-party Android image loader on a dormant stable-only1.9.xline, not part of the 7.0 release train.Prism— third-party, and its packages do carry a realUno.WinUInuspec 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:
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