Skip to content

ci(templates): Verify deps inside the publish jobs; release tests run before the public publish (backport #2188) - #2189

Merged
agneszitte merged 1 commit into
release/stable/6.6from
mergify/bp/release/stable/6.6/pr-2188
Jul 29, 2026
Merged

agneszitte merged 1 commit into
release/stable/6.6from
mergify/bp/release/stable/6.6/pr-2188

Conversation

@mergify

@mergify mergify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Problem

The nuget.org dependency verification was a separate job on each publish path (verify_dependencies_dev / verify_dependencies_prod). On a stable release merge build this misbehaves: verify_dependencies_prod ran automatically right after the internal-feed publish and failed, because stable dependencies (e.g. Uno.Themes/Toolkit) are intentionally not on nuget.org until the end of the release — see the failed Verify Dependencies (pre-publish) on the #2178 merge build.

The verification should instead live inside the respective publish job as its first step (after checkout), so it runs exactly when we publish — and on a stable release that means after the release approval, by which point the dependency stables are public.

Change

  • publish_dev (push to main): first step (after checkout) verifies the full Uno.* closure on nuget.org, then publishes the -dev packages. Automatic (no approval). needs: sign — separate verify_dependencies_dev job removed.
  • publish_release_nuget_org (push to release/**): first step (after checkout) verifies the full closure, then publishes + tags. Behind the Production approval. Separate verify_dependencies_prod job removed; needs: publish_release_uno.
  • generate-test-matrix no longer waits on publish_release_nuget_org, so the release test matrix runs right after the internal-feed publish and not during the wait for the public-publish approval.
  • report_dependencies (the non-blocking PR advisory comment) is unchanged.
  • Cleanup from review: renamed the job display name to Publish NuGet.org Production, and the mislabeled Uno Feed Publish step in that job to nuget.org Publish (it invokes the nuget.org publish action).

Behaviour by trigger

Trigger Verify Approval Where verify runs
PR advisory only (resolvable comment) — report_dependencies
push main (dev publish) full closure, blocking none (automatic) first step of publish_dev
push release/** (public publish) full closure, blocking yes (release approval) first step of publish_release_nuget_org

Stable release flow (two approval gates)

Both release publishes keep environment: Production, so each is its own approval gate:

  1. Build → Sign
  2. [approval 1] → Publish Uno Production (internal feed)
  3. Tests run against the internal packages (right after step 2)
  4. [approval 2] → Publish NuGet.org Production — first step re-verifies the closure on nuget.org, then publishes + tags

Tests (step 3) and the public-publish approval (step 4) are independent, so the matrix runs during the window before we go public — the point being that testing takes time. The nuget.org verify runs only after approval 2, when the dependency stables are already public (published in order).

The dev publish (main) is intentionally not approval-gated — dev packages publish continuously.

Validated: ci.yml parses; job graph has no dangling needs and no cycles; verify is the first post-checkout step of both publish jobs; generate-test-matrix needs [build, publish_dev, publish_release_uno]. Scripts untouched (Pester 44/44 unchanged).

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


This is an automatic backport of pull request #2188 done by Mergify.

The nuget.org dependency verification was a separate job on each publish path
(verify_dependencies_dev / verify_dependencies_prod). On a stable release the
prod verify ran automatically right after the internal-feed publish and failed,
because the stable deps are not on nuget.org until the end of the release.

Fold the verification INTO the publish jobs as their first step instead:
- publish_dev (push to main): verify the full closure, then publish the -dev
  packages. needs: sign (the separate verify_dependencies_dev job is removed).
- publish_release_nuget_org (push to release/**): verify the full closure, then
  publish. Kept behind `environment: Production` (the release approval), so the
  check runs only when we are actually ready to publish the stable packages --
  by then the dependency stables have been published in order. The separate
  verify_dependencies_prod job is removed; needs: publish_release_uno.

generate-test-matrix no longer waits on publish_release_nuget_org, so the test
matrix is not blocked by the release approval; it still waits for build +
publish_dev / publish_release_uno (internal-feed) to keep the merge-build
release path prioritized on the runners.

report_dependencies (the non-blocking PR advisory) is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
(cherry picked from commit 87f0fc5)
@agneszitte
agneszitte merged commit dc6da17 into release/stable/6.6 Jul 29, 2026
4 of 5 checks passed
@agneszitte
agneszitte deleted the mergify/bp/release/stable/6.6/pr-2188 branch July 29, 2026 03:30
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