Repository navigation
ci(templates): Prioritize release path; gate nuget.org on publish, advise on PRs (backport #2184) - #2187
Merged
agneszitte merged 1 commit intoJul 29, 2026
Conversation
…vise on PRs
Two related CI changes to the release path (backport to release/stable/6.6 after merge).
1) Prioritize release path over tests on merge builds
generate-test-matrix waits for build + the publish jobs, so on a push to
main/release the sign + publish jobs grab the hosted runners first and the
test matrix runs after publication. On PRs/schedule/dispatch the publish
jobs skip, so the skip-tolerant condition runs the matrix right after build.
2) Gate the nuget.org dependency check on publication only; advise on PRs
The check previously blocked every trigger on the full Uno.* closure being
public, which wrongly failed stable-release builds and PRs referencing
not-yet-published stable versions (stable packages are staged on the internal
feed and tested first, published to nuget.org only at the end). Now:
- verify_dependencies_dev gates publish_dev (push to main, full closure)
- verify_dependencies_prod gates publish_release_nuget_org (release, full
closure; runs publish_release_uno -> verify -> publish_nuget_org)
- report_dependencies (PRs) is non-blocking: it runs the check in report-only
+ prerelease-only mode and posts a resolvable inline comment for any dev
dependency not yet on nuget.org. Build/tests are unaffected (internal feed),
and internal-feed-only packages surface as advisories, not false failures.
Script (Verify-NuGetDependenciesOnNuGetOrg.ps1):
- Add -PrereleaseDependenciesOnly (verify only prerelease coordinates, direct +
transitive) and -ReportOnly / -ReportOutputPath (collect + emit JSON, no throw).
- Return the checks list with a unary comma so an empty/filtered result keeps its
List typing (a bare return enumerates to a scalar/null and breaks later .Add()).
- Splat params via hashtable in ci.yml (an array splat binds positionally).
New build/Report-MissingDependenciesOnPr.ps1:
- Groups missing packages by manifest line and posts idempotent (per version:line
marker), resolvable review-thread comments; never fails the job. -DryRun for
local validation.
Decouple build from the gate; drop verify_dependencies from generate-test-matrix.
Validation: 44/44 Pester; report-mode + poster DryRun + live gh api call; and a
temporary version bump confirmed report_dependencies posts a resolvable inline
comment on the PR (reverted).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
(cherry picked from commit 9e13652)
This was referenced Aug 7, 2026
This was referenced Aug 27, 2026
This was referenced Sep 4, 2026
This was referenced Sep 14, 2026
This was referenced Sep 21, 2026
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes two related CI changes to the release path. Both need to reach
release/stable/6.6for the 6.6 SR2 prod release (backport after merge).1. Prioritize release path over tests on merge builds
Problem
On a merge build (push to
main/release/**) the release path — Build → Sign → Publish — competes with the template test matrix (24×3 jobs) for hosted runners. In particularsign(windows-latest) queues behind the 24 Windows test jobs, so signing + publication only start once a runner frees up — delaying the release.Change
GitHub Actions has no native job priority, so it's expressed as a dependency:
generate-test-matrix(which every test job already depends on) is gated on the full release path — it waits forbuild+ the publish jobs before generating the matrix.Behavior
build → sign → publish*runs first (grabs the runners); the test matrix runs after publication. Release fast-forwards.push-only), so the skip-tolerant condition lets the matrix run right afterbuild— tests prioritized, no regression.2. Gate the nuget.org check on publication only; advise on PRs
Problem
The nuget.org dependency check (added in #2181) blocked every trigger on the full Uno.* closure being public. That's correct for dev, but wrong for a stable release: stable packages are built + signed + pushed to the internal feed and deeply tested first, and are published to nuget.org only at the very end. So a stable release build — or a PR bumping the SDK to not-yet-published stable versions (e.g. #2178) — failed on packages that are intentionally not public yet. A PR build doesn't even need nuget.org (it restores from the internal feed), so blocking it was guarding a non-problem.
Change — the blocking gate lives only where we publish
main)verify_dependencies_dev→ gatespublish_devrelease/**)verify_dependencies_prod→ gatespublish_release_nuget_org(runspublish_release_uno → verify → publish_nuget_org)report_dependencies(non-blocking)report_dependenciesruns the check in report-only + prerelease-only mode and, for any dev dependency not yet on nuget.org, posts a resolvable inline PR comment on the manifest line. The build/tests are unaffected (internal feed). This also future-proofs internal-feed-only packages: they surface as advisory comments, not false failures.Script (
Verify-NuGetDependenciesOnNuGetOrg.ps1)-PrereleaseDependenciesOnly— verify only prerelease-versioned coordinates (direct + transitive); stable versions skipped.-ReportOnly/-ReportOutputPath— collect missing deps and emit JSON without failing (for the PR advisory).return ,$list) so an empty/filtered result keeps itsListtyping.New
build/Report-MissingDependenciesOnPr.ps1Reads the report JSON, groups packages by manifest line, and posts an idempotent (hidden per-
version:linemarker), resolvable review-thread comment per line. Never fails the job;-DryRunfor local runs.Validation
Test-IsPrereleaseVersion,Select-ChecksForVerification,ConvertTo-MissingDependencyReport, prerelease-only transitive behavior).-DryRunlocates the correct line; the exactgh apireview-comment call posts + is resolvable.report_dependenciespost a resolvable inline comment (github-actions[bot], anchored on the manifest line, non-blocking); the temp change has been reverted.ci.ymlparses; job graph verified, no cycles;Verify Dependencies (dev publish)correctly skips on PRs.Related to https://github.com/unoplatform/private/issues/1102
This is an automatic backport of pull request #2184 done by [Mergify](https://mergify.com).