Skip to content

MR-23b: wire up packages/render - #801

Closed
michaeljgrimm wants to merge 10 commits into
codex/mr-23a-root-galleryfrom
codex/mr-23b-render
Closed

michaeljgrimm wants to merge 10 commits into
codex/mr-23a-root-galleryfrom
codex/mr-23b-render

Conversation

@michaeljgrimm

@michaeljgrimm michaeljgrimm commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

MR-23b: slice of MR-23 (docs/programs/monorepo/README.md section 9, Phase 2), packages/render only. Base is codex/mr-23a-root-gallery (30befac); retarget when 23a merges. Seven small commits, touch only packages/render/**; no lockfile change, no root change. Input: the "What MR-23b/c/d must fix" list of #797 and the per-sibling invocation table of #780.

What changed

  • package.json. npm run -> pnpm run; run-tests.mjs is ../../scripts/run-tests.mjs; check:runners and check:changes dropped; check:fonts is only node test/font-licenses.mjs (the root check:font-hotlinks covers the hotlink guard). New check:scripts (the moved check-syntax tests, run by test) and build:deps (builds the gallery, then core; test, test:contract, test:golden and golden:update run it first, because neither has a dist/ in a fresh checkout and the suites import both through the workspace). test:variable-font-gate uses a new fetch script (below).
  • Deleted local copies of the shared scripts: changelog-fragments(+test), flake-repeat, publish-source, quarantine(+test), run-tests(+test), ci-evidence.{mjs,json}, check-font-hotlinks(+test, allowlist). The check-syntax tests moved out of run-tests.test.mjs into scripts/check-syntax.test.mjs. test/browser-suites.json commands are pnpm run.
  • Workflow-contract tests deleted: candidate-gallery-ci, publish-source, publish-workflow-trust, ci-evidence, candidate-goldens, golden-pinned-image (all read the removed .github/, or the deleted ci-evidence script). The scripts ecosystem-pins.mjs, golden-ci-notify.mjs, golden-pinned-image.mjs, candidate-goldens.mjs stay (the plan assigns them to MR-31, "read before deleting; folded into one golden.yml") with a one-line header saying so.
  • .github readers. The list in the task named font-license.mjs, update-font-manifest.mjs, aptos-preview, font-licenses, open-fonts: those only match raw.githubusercontent.com URLs, not the directory, and pass unchanged. The real readers were the workflow tests above and the MR-31 scripts.
  • npm_execpath. New scripts/workspace-pack.mjs (pnpm pack of render, core and gallery; npm through scripts/package-manager.mjs; manifest read from the tarball). test/packed-install.mjs and scripts/check-next-bundle.mjs use it: the packed manifest is read from the tarball (asserts no workspace:; ^<core version>), core and the gallery are installed from their packed tarballs (0.26.0 is not on npm), the semver dependency is gone, package.json is the one file compared against the tarball instead of the source, and npm audit signatures runs in a consumer that holds only the registry dependencies (it asks the registry for every installed name@version). update-font-manifest.mjs runs npm and tar through spawnSpec.
  • package-lock.json readers. The remaining ones read a consumer's lock (packed-install, review-code-raster) or a historical file from an old commit (furniture-review); only furniture-review recorded the repository's lock and now records pnpm-lock.yaml.
  • Sibling-layout paths. probe-font-variants.mjs imports packages/pptx; furniture-review.mjs takes the repository root as core and maps its opf-render predecessor commit through the commit-map (f2f2d51c -> d085377).
  • test:variable-font-gate read ../archive, a second checkout of opf-render 343fb84 that the old CI made beside the package; that commit is not on main, so the import did not carry it. scripts/fetch-archive-fixtures.mjs fetches the two sparse paths from the frozen opf-render repository into the ignored repository-root artifacts/render-archive/ (not under packages/, where the root check:text would scan the font binaries). The gate still verifies every SHA-256.
  • Docs. packages/render/AGENTS.md (existing file) now points at the root AGENTS.md and drops the npm, package-lock, per-package CI and publish text; README and CONTRIBUTING development/release sections, test/QUARANTINE.md, test/golden/README.md, test/suites.json description updated. No changelog fragment (no src/ change).

Results (macOS, Node 26.7, pnpm 10.33.2)

  • pnpm --filter @openpresentation/opf-render test:contract: font licenses ok; 117 of 119 pass; the two failures are the golden digest (test/golden.mjs, test/golden-gate.mjs): Golden corpus changed, actual 70b9e5d4... (129 decks, examples), expected 22ebe285.... Left to MR-31 as agreed; run-tests stops there, so I ran every command one by one: only those two fail.
  • Full test suite commands (130): the same two failures only. check:scripts, typecheck (263 files), validate, build:browser-check pass.
  • Playwright (Chromium 156, local): root node scripts/quarantine.mjs run-suite browser|browser-fonts|rich --dir packages/render pass; test:variable-font-gate passes (macOS only; 356 retained rows).
  • test:packed passes (204 byte-matched files). test:next-bundle passes (Next.js 16.4.0, Turbopack; network). probe-font-variants.mjs runs (0 gaps). update-font-manifest.mjs (no --vendor) leaves src/font-manifest.js unchanged.
  • Root node scripts/run-checks.mjs: 71 of 71 pass (with the fetched archive outside packages/). pnpm check:changed shows tests pptx and tests editor failing (MR-23c/d, expected) and one flaky check:skill-commands that passes alone.
  • Not run: Windows, CI, the other two platform-residual legs, test:variable-font-gate on Linux, furniture-review.mjs end to end (a Node 24 historical reproduction), update-font-manifest.mjs --vendor, workflow_dispatch in the Playwright container.

Needs a root change (not in this PR)

  1. pnpm pack of core fails in the workspace with autoInstallPeers: false (MR-23a: root wiring and gallery (six packages, one version, workspace edges, integration) #797 decision 2): ERR_PNPM_CANNOT_RESOLVE_WORKSPACE_PROTOCOL ... "@openpresentation/opf-pptx" because this dependency is not installed (pnpm resolves the workspace:^ of an optional peer through node_modules). test:packed and test:next-bundle of render pack core, so they only ran here after I symlinked packages/javascript/node_modules/@openpresentation/opf-{pptx,render} by hand (untracked). Core's own test:packed and MR-40's release pack hit the same error. It needs an answer in the root wiring (for example pack-time resolution, or a peer range that pnpm can write without the link) before the packed suites can run in CI.
  2. scripts/ci-test-weights.json still has "golden-pinned-image.mjs" (and any other deleted render test names) for ci-test-shards.mjs; MR-34 deletes that machinery.
  3. check:quarantine should loop packages/* that have test/quarantine.json (plan: MR-12: shared scripts take a package directory #780), if it does not yet cover render.

Merge

Merge with a merge commit or rebase, not a squash (blame).

🤖 Generated with Claude Code

michaeljgrimm and others added 10 commits October 22, 2026 05:07
package.json: npm run becomes pnpm run, run-tests.mjs is the root script, check:runners and
check:changes are dropped (the root checks cover them), check:fonts no longer runs the local
hotlink guard (the root check:font-hotlinks scans every tracked file). The local copies of
changelog-fragments, flake-repeat, publish-source, quarantine, run-tests, ci-evidence and
check-font-hotlinks (with their tests and allowlist) are deleted; the check-syntax tests move
out of run-tests.test.mjs into scripts/check-syntax.test.mjs (pnpm run check:scripts).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
candidate-gallery-ci, publish-source, publish-workflow-trust, ci-evidence, candidate-goldens
and golden-pinned-image only checked the deleted per-package workflows and the deleted
ci-evidence script; the unified workflows are covered by root tests (MR-31, MR-40).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The render suites import core and the gallery through the workspace links, and neither has a dist
in a fresh checkout (dist/ is ignored outside render). build:deps builds the gallery and then core;
test, test:contract, test:golden and golden:update run it before the render build.

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

The test ran under npm (npm_execpath) against registry core and read raw dependency specifiers
from the source package.json, which are now workspace: ranges. It now packs render, core and the
gallery with pnpm pack (which writes the registry ranges), installs the three tarballs with npm
through scripts/package-manager.mjs, checks the packed manifest read from the tarball (no
workspace: specifier, ^<core version>), compares every other shipped file with its source, and
takes the semver check out (the gallery development dependency is workspace:*, an exact match).
npm audit signatures runs in a consumer holding only the registry dependencies, since the workspace
packages are not on the registry before their release.

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

Packing and installing helpers move to scripts/workspace-pack.mjs (pnpm pack of this package, core
and the gallery; npm through scripts/package-manager.mjs; the packed manifest read from the
tarball), shared by test:packed and test:next-bundle. check-next-bundle installs the workspace
tarballs (or a --tarball with the core range its own manifest declares); update-font-manifest runs
npm and tar through spawnSpec. Both run with pnpm run or plain node.

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

probe-font-variants imports packages/pptx; furniture-review treats the repository root as core,
maps the opf-render predecessor commit to its imported hash (commit-map) and records the
workspace lock instead of the removed package-lock.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AGENTS.md points at the root rules and drops the npm/package-lock/per-package CI and publish
text; README and CONTRIBUTING development and release sections use pnpm, the root changes/ and
the root release process; QUARANTINE.md, golden/README.md and suites.json use the root scripts
with --dir packages/render and say that the golden workflows were not imported (MR-31).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The gate read ../archive, a second checkout of opf-render 343fb84 that the per-package CI made
beside the package (a commit that is not on main, so the history import does not carry it). A
sibling directory means nothing in the workspace; scripts/fetch-archive-fixtures.mjs fetches the
two sparse paths from the frozen opf-render repository into the ignored artifacts/archive/
(shallow, blobless), and the gate still verifies the SHA-256 of every file it reads.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The root check:text scans every file under packages/render, including the fetched font binaries;
artifacts/render-archive/ at the repository root is ignored and not scanned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@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-23b-render 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