Skip to content

ci: run the canaries in the merge queue - #275

Merged
alexgrozav merged 4 commits into
mainfrom
ci-merge-queue-uxf-1072
Nov 25, 2026
Merged

alexgrozav merged 4 commits into
mainfrom
ci-merge-queue-uxf-1072

Conversation

@alexgrozav

@alexgrozav alexgrozav commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What changed

CI ran all 37 canary jobs on each push of a pull request that touched CANARY_PATHS. Those jobs use 213 of a compiler pull request's 325 runner-minutes, on an organisation that runs 20 jobs at a time.

This change runs them once, in a GitHub merge queue, on the commit main receives, and makes a miss block the merge. ADR-0123 records the decision and amends ADR-0073 and ADR-0084. The changes:

  • ci.yml runs on merge_group. A merge-group run runs every job a pull request runs, except Baselines.
  • The canaries move to the merge queue. There, Changes fetches the group's base_sha, diffs it against the group's head and runs the canaries on any path on CANARY_PATHS, as ADR-0073 decided. On a pull request, they run only when it changes the harness itself, a new list HARNESS_PATHS that sits inside CANARY_PATHS.
  • canary-paths.ts --event <name> decides every event, and fails on an event it has no rule for. With no --event, it prints the same answer as before, which pnpm test:full reads.
  • A new Merge gate job needs every other job and fails unless Changes succeeded and every other job succeeded or was skipped. It's the one check the merge queue requires, since a matrix job can't be required by name.
  • The canary list, the matrix, its shards, the timeouts, the quarantine lists and nightly.yml's run don't change. nightly.yml changes only in its header comment.

No framework's output changes.

After this merges, before any other merge, ruleset Default needs:

  • in Require a pull request before merging: required approvals 0, Code Owners review off, last-push approval off.
  • Require merge queue: Squash, build concurrency 1, groups of 1 to 5, wait time 0, status check timeout 60 min, only merge non-failing pull requests.
  • Merge gate added to the required status checks, beside Build and Format, lint & types.

Turning on the queue before this merges stalls every queued pull request, because main has no merge_group trigger yet.

Measurements

Time to merge-ready is the time from the run's start to Merge gate's end, or to the last job's end for a run before this change.

Run Jobs Runner-minutes Time to merge-ready
Before: a compiler PR, alone (45437744100) 71 325.3 20.2 min
After: a compiler-only PR, alone (45696977704) 35 108.7 9.3 min
After: a compiler-only PR beside this PR's full run (45691707423) 35 130.0 16.3 min
This PR's own run, every canary (45691706106) 72 338.6 27.1 min, beside the run above

The compiler-only runs came from a throwaway draft PR on top of this branch, now closed. A planted L1 canary miss turned Canaries (L1) and Merge gate red (45676439470), and its revert is this branch's head.

Checklist

  • The title follows Conventional Commits, as in feat(web): sell the next framework on the homepage.
  • pnpm format:check, pnpm lint, pnpm check-types and pnpm test pass.
  • Changes to a published package: a changeset from pnpm changeset (see .changeset/README.md).
  • Homepage changes: pnpm build, then pnpm --filter web lighthouse, still scores at least 0.95 in every category.

pnpm format:check, pnpm lint and pnpm check-types pass locally, with the harness's unit tests for the canaries, the path filter and the parity summary, and @unframework.dev/repo-tests. The rest of pnpm test ran in this pull request's CI, green on the final head. No published package changes, and the homepage doesn't change.

alexgrozav and others added 3 commits November 25, 2026 20:33
A pull request runs the canaries only when it changes the harness
(HARNESS_PATHS). The merge queue runs them on any path on CANARY_PATHS,
on the commit main receives, and Merge gate, which needs every other
job, blocks the merge on a miss. ADR-0123 records the decision and
amends ADR-0073 and ADR-0084.

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
This reverts commit f7b1319.

Co-authored-by: multica-agent <github@multica.ai>
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Visual report: ✓ passed

3 examples on 7 targets. Pixels: live, compared with the reference's capture in this run. Reference: vue. Commit e85118b.

Example react vue (reference) svelte solid angular qwik astro
examples/Buttons ✓ matched, 0 px ✓ published-reference ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px
examples/Card ✓ matched, 0 px ✓ published-reference ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px
examples/TextField ✓ matched, 0 px ✓ published-reference ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px ✓ matched, 0 px

The run uploaded the full report as the design-system-visual artefact, kept for 7 days. Download it, unzip it and open report.html.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://ci-merge-queue-uxf-1072.unframework.dev, https://ci-merge-queue-uxf-1072-unframework.uxfront.workers.dev (commit e85118b)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://da244dc0.unframework.dev, https://da244dc0-unframework.uxfront.workers.dev e85118b 2026-11-25T20:12:54.097Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c6fb401f.unframework.dev, https://c6fb401f-unframework.uxfront.workers.dev 782b29e 2026-11-25T19:47:31.078Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://46fac646.unframework.dev, https://46fac646-unframework.uxfront.workers.dev f7b1319 2026-11-25T18:35:59.520Z Visit the dashboard ↗

Co-authored-by: multica-agent <github@multica.ai>
@alexgrozav
alexgrozav marked this pull request as ready for review November 25, 2026 20:54
@alexgrozav
alexgrozav merged commit db008db into main Nov 25, 2026
143 of 145 checks passed
@alexgrozav
alexgrozav deleted the ci-merge-queue-uxf-1072 branch November 25, 2026 20:54
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