Skip to content

fix(ci): give tag-release a .NET 10 runtime for nbgv - #2168

Merged
agneszitte merged 1 commit into
release/stable/6.6from
dev/agzi/fix-tag-release-net10
Jul 17, 2026
Merged

agneszitte merged 1 commit into
release/stable/6.6from
dev/agzi/fix-tag-release-net10

Conversation

@agneszitte

Copy link
Copy Markdown
Member

Problem

The Tag Release step of the 6.6 production release failed with nbgv exit code 150, so the 6.6.29 git tag was never created (the packages did publish to nuget.org and the Uno feed — tag is the last step in the job).

Failed run: release/stable/6.6 CI, job Publish Nuget.org Production → Tag Release.

Root cause — runner-image drift

.github/actions/ci/tag-release/action.yml:

  • installed only .NET 9.0.300, then
  • ran the dotnet/nbgv action pinned to toolVersion: 3.6.139 (dotnet tool update -g nbgv --version 3.6.139).

The GitHub runner image now pre-ships nbgv 3.10.91, a .NET 10 build. dotnet tool update refuses to downgrade to 3.6.139:

The requested version 3.6.139 is lower than existing version 3.10.91.

so nbgv 3.10.91 ran — against a box with no .NET 10 runtime:

You must install or update .NET to run this application.
Framework: 'Microsoft.NETCore.App', version '10.0.0' ... found: 9.0.5
##[error]The process '/home/runner/.dotnet/tools/nbgv' failed with exit code 150

nbgv get-version aborts before git tag runs → no tag.

Fix

  • Install the .NET 10 runtime alongside 9.0.300 so nbgv can run.
  • Pin toolVersion to 3.10.91 so resolution is deterministic instead of relying on whatever the runner pre-installs.
  • Bump actions/setup-dotnet@v1 → v4 (also clears the Node-20 deprecation warning).

Notes

  • The missing 6.6.29 tag is being created manually out-of-band on the released commit (242715a), so this line is tagged regardless of the merge of this PR.
  • Same pinned-3.6.139 + .NET-9-only nbgv pattern exists in other CI actions in this repo (build / sign / sdk-update) and in sibling repos (e.g. uno.csharpmarkup, nuget.updater). They don't tag, so they didn't fail here, but the same drift could bite them — worth a follow-up sweep.

Related to https://github.com/unoplatform/private/issues/1076

The runner image now pre-ships nbgv 3.10.91 (a .NET 10 build). The
tag-release action installed only .NET 9.0.300 and pinned nbgv to
3.6.139 via `dotnet tool update`, which refuses to downgrade the
pre-installed tool. So nbgv 3.10.91 ran against a box with no .NET 10
runtime and aborted with exit 150, before `git tag` executed — the
6.6 packages published to nuget.org but the release tag was never
created.

Install the .NET 10 runtime alongside 9.0.300 and pin nbgv to 3.10.91
so version resolution is deterministic. Also bump setup-dotnet v1 -> v4.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@agneszitte
agneszitte merged commit 1f02cb1 into release/stable/6.6 Jul 17, 2026
54 of 69 checks passed
@agneszitte
agneszitte deleted the dev/agzi/fix-tag-release-net10 branch July 17, 2026 20:29
This was referenced Jul 25, 2026
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.

1 participant