Repository navigation
MR-23b: wire up packages/render - #801
Closed
michaeljgrimm wants to merge 10 commits into
Closed
michaeljgrimm wants to merge 10 commits into
michaeljgrimm wants to merge 10 commits into
Conversation
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>
This was referenced Oct 22, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MR-23b: slice of MR-23 (docs/programs/monorepo/README.md section 9, Phase 2),
packages/renderonly. Base iscodex/mr-23a-root-gallery(30befac); retarget when 23a merges. Seven small commits, touch onlypackages/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
npm run->pnpm run;run-tests.mjsis../../scripts/run-tests.mjs;check:runnersandcheck:changesdropped;check:fontsis onlynode test/font-licenses.mjs(the rootcheck:font-hotlinkscovers the hotlink guard). Newcheck:scripts(the moved check-syntax tests, run bytest) andbuild:deps(builds the gallery, then core;test,test:contract,test:goldenandgolden:updaterun it first, because neither has adist/in a fresh checkout and the suites import both through the workspace).test:variable-font-gateuses a new fetch script (below).check-syntaxtests moved out ofrun-tests.test.mjsintoscripts/check-syntax.test.mjs.test/browser-suites.jsoncommands arepnpm run.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 scriptsecosystem-pins.mjs,golden-ci-notify.mjs,golden-pinned-image.mjs,candidate-goldens.mjsstay (the plan assigns them to MR-31, "read before deleting; folded into one golden.yml") with a one-line header saying so..githubreaders. The list in the task namedfont-license.mjs,update-font-manifest.mjs,aptos-preview,font-licenses,open-fonts: those only matchraw.githubusercontent.comURLs, not the directory, and pass unchanged. The real readers were the workflow tests above and the MR-31 scripts.npm_execpath. Newscripts/workspace-pack.mjs(pnpm pack of render, core and gallery; npm throughscripts/package-manager.mjs; manifest read from the tarball).test/packed-install.mjsandscripts/check-next-bundle.mjsuse it: the packed manifest is read from the tarball (asserts noworkspace:;^<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.jsonis the one file compared against the tarball instead of the source, andnpm audit signaturesruns in a consumer that holds only the registry dependencies (it asks the registry for every installed name@version).update-font-manifest.mjsruns npm and tar throughspawnSpec.package-lock.jsonreaders. The remaining ones read a consumer's lock (packed-install,review-code-raster) or a historical file from an old commit (furniture-review); onlyfurniture-reviewrecorded the repository's lock and now recordspnpm-lock.yaml.probe-font-variants.mjsimportspackages/pptx;furniture-review.mjstakes the repository root as core and maps its opf-render predecessor commit through the commit-map (f2f2d51c -> d085377).test:variable-font-gateread../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.mjsfetches the two sparse paths from the frozen opf-render repository into the ignored repository-rootartifacts/render-archive/(not underpackages/, where the rootcheck:textwould scan the font binaries). The gate still verifies every SHA-256.packages/render/AGENTS.md(existing file) now points at the rootAGENTS.mdand 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.jsondescription updated. No changelog fragment (nosrc/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, actual70b9e5d4...(129 decks,examples), expected22ebe285.... Left to MR-31 as agreed;run-testsstops there, so I ran every command one by one: only those two fail.testsuite commands (130): the same two failures only.check:scripts,typecheck(263 files),validate,build:browser-checkpass.node scripts/quarantine.mjs run-suite browser|browser-fonts|rich --dir packages/renderpass;test:variable-font-gatepasses (macOS only; 356 retained rows).test:packedpasses (204 byte-matched files).test:next-bundlepasses (Next.js 16.4.0, Turbopack; network).probe-font-variants.mjsruns (0 gaps).update-font-manifest.mjs(no--vendor) leavessrc/font-manifest.jsunchanged.node scripts/run-checks.mjs: 71 of 71 pass (with the fetched archive outsidepackages/).pnpm check:changedshowstests pptxandtests editorfailing (MR-23c/d, expected) and one flakycheck:skill-commandsthat passes alone.test:variable-font-gateon Linux,furniture-review.mjsend to end (a Node 24 historical reproduction),update-font-manifest.mjs --vendor,workflow_dispatchin the Playwright container.Needs a root change (not in this PR)
pnpm packof core fails in the workspace withautoInstallPeers: 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 theworkspace:^of an optional peer throughnode_modules).test:packedandtest:next-bundleof render pack core, so they only ran here after I symlinkedpackages/javascript/node_modules/@openpresentation/opf-{pptx,render}by hand (untracked). Core's owntest:packedand 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.scripts/ci-test-weights.jsonstill has"golden-pinned-image.mjs"(and any other deleted render test names) forci-test-shards.mjs; MR-34 deletes that machinery.check:quarantineshould looppackages/*that havetest/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