Skip to content

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

Merged
agneszitte merged 1 commit into
mainfrom
dev/agzi/verify-in-publish-jobs
Jul 29, 2026
Merged

agneszitte merged 1 commit into
mainfrom
dev/agzi/verify-in-publish-jobs

Conversation

@agneszitte

@agneszitte agneszitte commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

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

Copilot AI review requested due to automatic review settings July 29, 2026 02:59
@agneszitte

Copy link
Copy Markdown
Member Author

@Mergifyio backport release/stable/6.6

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.

Pull request overview

This PR adjusts the CI release/publish workflow so nuget.org dependency verification runs inside the relevant publish jobs (as an early step) rather than as separate prerequisite jobs, preventing stable-release merges from failing verification before the release approval/public publish phase.

Changes:

  • Removed the standalone dev/prod dependency verification jobs and moved the verification script into publish_dev and publish_release_nuget_org.
  • Kept production nuget.org publish behind the Production environment approval while ensuring tests are no longer blocked by that approval (by removing publish_release_nuget_org from the test-matrix gating).
  • Updated workflow documentation/comments to reflect the new gating and ordering intent.
Comments suppressed due to low confidence (2)

.github/workflows/ci.yml:149

  • This comment says the verify step is the “First step”, but Checkout runs before it. Consider rewording to “first post-checkout step” to match the actual step order.
    # First step: verify the full Uno.* dependency closure is on nuget.org before publishing there.

.github/workflows/ci.yml:199

  • This comment says the verify step is the “First step”, but the job performs Checkout first. Rewording to “first post-checkout step” avoids a misleading step-order claim.
    # First step: verify the full Uno.* dependency closure is on nuget.org before the public publish.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
@mergify

mergify Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

backport release/stable/6.6

✅ Backports have been created

Details

Copilot AI review requested due to automatic review settings July 29, 2026 03:04
@agneszitte
agneszitte force-pushed the dev/agzi/verify-in-publish-jobs branch from d315d63 to 916ac1d Compare July 29, 2026 03:04

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

.github/workflows/ci.yml:207

  • This step name says it publishes to the Uno feed, but it actually uses the nuget-org-publish action and the NuGet.org API key. Renaming it will avoid confusion when reading logs for release runs.
    - name: "Uno Feed Publish"

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]>
Copilot AI review requested due to automatic review settings July 29, 2026 03:10
@agneszitte
agneszitte force-pushed the dev/agzi/verify-in-publish-jobs branch from 916ac1d to 87f0fc5 Compare July 29, 2026 03:10
@agneszitte agneszitte changed the title ci(templates): Move nuget.org verify into the publish jobs (first step) ci(templates): Verify deps inside the publish jobs; release tests run before the public publish Jul 29, 2026

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@agneszitte
agneszitte merged commit 07734f2 into main Jul 29, 2026
14 of 86 checks passed
@agneszitte
agneszitte deleted the dev/agzi/verify-in-publish-jobs branch July 29, 2026 03:29
agneszitte added a commit that referenced this pull request Jul 29, 2026
….6/pr-2188

ci(templates): Verify deps inside the publish jobs; release tests run before the public publish (backport #2188)
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.

2 participants