Skip to content

MR-30: ci.yml with verify, nightly.yml, slow-checks.yml (draft, shadow) - #798

Closed
michaeljgrimm wants to merge 6 commits into
codex/mr-31-goldensfrom
codex/mr-30-ci
Closed

michaeljgrimm wants to merge 6 commits into
codex/mr-31-goldensfrom
codex/mr-30-ci

Conversation

@michaeljgrimm

@michaeljgrimm michaeljgrimm commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

MR-30, draft. Base is codex/mr-23a-root-gallery (MR-23a, opf#797: the wired workspace), not main; retarget to main once #797 has landed. It was first drafted on monorepo/import and rebased onto #797. The old workflows are untouched and keep running next to the new ones.

Design notes, the full job graph, the estimated timing budget and the MR-34 deletion list: docs/programs/monorepo/ci-design.md.

What is in it

  • .github/workflows/ci.yml: pull_request, push to main, workflow_dispatch; no merge_group, no labeled type (an unrelated label must not re-run, and so possibly replace, a required check; scope reads the labels when it runs). scope runs scripts/ci-scope.mjs; each package job is gated on its key of the scope output; the job verify needs all of them, runs always, and fails unless every job the scope selected succeeded (scripts/ci-verify.mjs: skipped by scope is success, skipped otherwise is failure). Concurrency cancels per pull request; a push to main is never cancelled and a red main opens the issue main-red.
  • .github/workflows/nightly.yml: Windows and macOS (CLI and core, installed candidates, PPTX with the native harness, editor playground), Node 22 and 26 over all six packages, packed-install on Linux, registry consumers, pnpm audit, platform residual (non-blocking), flake measurement (Sundays or on demand). Opens or updates the issue nightly-red, closes it when green, never blocks a PR. Also workflow_call: ci.yml calls it for the label full-ci, and MR-40's npm-publish.yml can call it as the pre-release gate (report: false).
  • .github/workflows/slow-checks.yml: Tuesday, dispatch, or the label slow-checks: full goldens with every slide kept, published matrix with the determinism grid, installed parity (ports of published-matrix.yml and installed-parity.yml). Issue slow-checks-red on a red schedule.
  • .github/actions/setup-workspace: pnpm, Node 24, store cache keyed by the lockfile, frozen install of the whole workspace (a filtered install would seed an incomplete cache), optional build of one package's dependencies. pnpm comes from npm inside the Playwright container (the old logs show pnpm/action-setup taking 2.5 to 5 minutes there).
  • Scripts: legs in ci-scope.mjs (the matrix per package and tier); scripts/ci-verify.mjs; scripts/ci-report-issue.mjs; --shard i/n for quarantine.mjs (browser suites) and run-checks.mjs (root checks); ci-test-shards.mjs --package render|pptx|editor. Tests: pnpm check:ci-workflows (shape of the workflows against the plan and ci-scope), plus additions to the existing suites.

Job graph

scope -> lint (static, checks 1/2, checks 2/2), gallery, core, cli, render (tests 1..4 + browser; contract tier tests 1..3), pptx (tests 1..4 + browser; contract 1..4), editor (tests 1..2, playground 1..4, browser; contract tests 1..2), integration, goldens, gallery-gates, pack-shape, slow (label full-ci) -> verify. A docs-only change runs scope, the 3 legs of lint and verify (5 jobs); an editor-only change 14; a render change 21; everything forced (tooling, lockfile, push to main, full-ci) 29.

Timing budget (estimate)

The first run on Actions (run 39775979434, before MR-23: only core and the CLI in the workspace, package jobs failed at their first test step) measured: scope 9 s, checkout 6 to 11 s, setup-workspace 7 to 15 s, core and CLI build 14 s, container init 26 s. With a six-package install assumed at 35 s, the fixed cost is about 1.3 min per host job and 1.8 min per Playwright-container job. Shards are sized from ci-test-weights.json (render 901 s, pptx 948 s, editor 157 s) and the editor playground suite (839 s). Estimated verify wall-clock: docs only about 3.4 min (target p50 2), leaf packages 6.3 to 8.1 (target 5), render or pptx 6.7 to 8.0 (target 7), core, gallery, spec 6.3 to 8.0 (target 8), forced about 8 (target 11); overall inside 5 to 8. The unmeasured long pole is integration (core's 13 engine tests, assumed 3 to 5 min). Remedies in order, if MR-32 measures a miss: build-once dist artifact, narrow or shard integration, a docs-only fast path in lint, sparse checkout.

Found on that run: pnpm --filter X run test exits 0 when X matches no package, so integration and gallery-gates "passed" without running anything. All script runs now use --fail-if-no-match (guarded by check:ci-workflows).

What must change once MR-23 lands

Listed in ci-design.md, section "What the workflows assume from MR-23": the workspace lists all seven packages with the plan's edges; pnpm --filter @openpresentation/integration run test exists (MR-23a's root test:integration already points at it); the root pack and registry scripts still exist and pack from the workspace; the package scripts the legs call; the variable-font gate's ../archive fixtures (the draft checks them out of the old repository into packages/archive); test/golden.mjs is part of test and test:contract (the goldens job repeats it; MR-31 may exclude it); release-plan.json stays until MR-34 for slow-checks.yml.

What MR-33, MR-34 and MR-40 delete

Nothing is deleted here. Next to the new files the old ones keep running: published-matrix.yml and installed-parity.yml (Monday) and flake-repeat.yml (nightly) overlap the new weekly and nightly jobs (the new slow-checks run Tuesday, the flake job Sundays). Per the plan: MR-33 deletes opf-ci.yml, ecosystem-ci.yml, cli-windows.yml, engines-range.yml, flake-repeat.yml and the action paths-changed; MR-34 deletes ecosystem-roll.yml, candidate-gallery-qualification.yml, published-gallery-control.yml, published-matrix.yml, installed-parity.yml and the actions candidate-gallery and candidate-gallery-stage; MR-31 deletes regenerate-core-golden.yml; MR-40 replaces release-train.yml, cli-publish.yml and the old npm-publish.yml with one npm-publish.yml; tracker-refresh.yml stays; ecosystem-refs is the frozen shim until MR-60. The imported packages' own .github/ (14 workflows and packages/gallery/.github/bootstrap-engines.json) is inert (GitHub reads only the root) and goes in the MR-23 cleanup commit; full file list in ci-design.md.

Verification

actionlint 1.7.12 clean on the three workflows and the action (not run: shellcheck); pnpm check:ci-workflows, check:ci-scope, check:ci-shards, check:ci-diet, check:runners, check:playwright-pin, pnpm check:changed and the full pnpm test (73 of 73 root checks, core and CLI suites) pass locally. Dry run of the scope on eleven change classes (docs, editor, CLI, render, pptx, core, spec and examples, gallery records, lockfile, full-ci, push) and of the shard planner on the real render, pptx and editor suites (--dry-run: every listed test in exactly one shard). Actions: the first run of ci.yml on this branch (run 39775979434) passed scope, expanded all matrices and ran the setup action in both host and container jobs; the package jobs fail as expected until MR-23, and the full run of any job is not verified.

Open questions

  1. Docs-only pull requests: the full root check suite costs about 3.4 minutes, the plan's target p50 is 2. Accept, or approve a docs-only fast path in lint (the checks check:changed maps)?
  2. pnpm audit moved from the required PR path to the nightly (a new advisory should not fail an unrelated pull request). OK?
  3. integration is selected by any package change because ci-scope's target graph makes it depend on all six; it imports core, render, pptx and the gallery. Narrow the edge so editor-only and CLI-only changes skip it?
  4. Labels: slow-checks (new, for pull requests) and full-ci; the issue labels nightly-red, slow-checks-red and main-red are created by the first issue (to verify). The old ecosystem-ci.yml nightly also uses main-red until MR-33.
  5. Checkout is the full tree in every job (6 to 11 s measured; the 340 MB docs/evidence is read by core, the CLI and lint). Sparse checkout is the last remedy, not the first.
  6. macOS concurrency: the nightly has 6 macOS jobs against a limit of 5; they queue by a few minutes.
  7. The imported .github/ removal is in MR-23 per plan section 2; confirm MR-34 only picks up what MR-23 leaves.

🤖 Generated with Claude Code

Update 2026-10-22 (coordinator decisions)

  • Docs-only change: lint has one docs leg (scripts/check-changed.mjs: Biome, check:text and the other mapped checks, no build), estimated about 2.3 min.
  • audit is a PR job when the lockfile or a package.json changed (not merely because a run was forced); the nightly audits every night.
  • integration depends on gallery, core, render and pptx only (its manifest says the same), so editor-only and CLI-only changes skip it (13 and 7 jobs). Test in ci-scope.test.mjs.
  • Labels nightly-red, slow-checks-red, slow-checks created (full-ci, main-red existed); ci-report-issue.mjs also creates the label before opening an issue.
  • Nightly editor playground on macOS in two shards: five macOS jobs, the account limit.
  • owner-steps.md O6: removing the queue and requiring verify is one edit.
  • Known, not mine: with the nested .github/ removed by MR-23a: root wiring and gallery (six packages, one version, workspace edges, integration) #797, package tests that read it (candidate-gallery-ci and its siblings, README finding 6) fail in the render and editor shards until MR-23 deletes them.

@michaeljgrimm
michaeljgrimm changed the base branch from monorepo/import to codex/mr-23a-root-gallery October 22, 2026 12:20
michaeljgrimm and others added 6 commits October 22, 2026 07:01
One required check `verify` aggregating scoped jobs driven by scripts/ci-scope.mjs
(lint, gallery, core, cli, render, pptx, editor, integration, goldens, gallery-gates,
pack-shape), Linux and the pinned Playwright image only, sharded from the RR-57 weights,
cancel-in-progress per pull request, no merge_group, no labeled trigger.

nightly.yml: Windows and macOS legs, Node 22 and 26, packed-install, registry consumers,
audit, platform residual, flake measurement; opens or updates the nightly-red issue; also
workflow_call for the release gate and the full-ci label. slow-checks.yml: full goldens,
published matrix with the determinism grid, installed parity.

Support: setup-workspace action, ci-verify.mjs (verdict), ci-report-issue.mjs, `legs` in
ci-scope.mjs, `--shard` for quarantine.mjs and run-checks.mjs, `--package` for
ci-test-shards.mjs, check:ci-workflows. Design notes, job graph, timing budget and the
MR-34 deletion list: docs/programs/monorepo/ci-design.md. No workflow is deleted here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…st from the first Actions run

pnpm exits 0 when a filter matches no package, so integration and gallery-gates passed
without running anything before MR-23. Timing budget revised with the numbers of run
39775979434 (scope 9 s, checkout 6-11 s, setup 7-15 s, container init 26 s).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…l creation, two macOS editor shards

Docs-only changes run one lightweight lint leg (check-changed: Biome, check:text and the
mapped checks, no build). pnpm audit is its own PR job when the lockfile or a package.json
changed (always in the nightly). integration depends on gallery, core, render and pptx
only, so editor-only and CLI-only changes skip it. ci-report-issue creates the label
before opening an issue. Editor playground on macOS in two shards (five macOS jobs).
owner-steps O6 says removing the queue and requiring verify is one edit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… MR-31

The renderer fetches its archived fixtures itself (no checkout step), pnpm build is every package, the packed-linux dry run is covered by pack:ecosystem, the platform-residual leg runs fetch-archive-fixtures, and ci-design.md's assumptions from MR-23 are now satisfied.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ests path, build:deps repeated in every shard)

check:ci-shards failed on the MR-23 stack: render, pptx and editor call node ../../scripts/run-tests.mjs and start with pnpm run build:deps.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@michaeljgrimm
michaeljgrimm changed the base branch from codex/mr-23a-root-gallery to codex/mr-31-goldens October 22, 2026 14:24
@michaeljgrimm

Copy link
Copy Markdown
Contributor Author

Landed on main through #808 (merge commit 62c4b26), which carries this PR's commits unchanged.

@michaeljgrimm
michaeljgrimm deleted the codex/mr-30-ci branch October 26, 2026 07:56
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