Repository navigation
MR-23e: root follow-ups; the wired monorepo is green - #803
Closed
michaeljgrimm wants to merge 32 commits into
Closed
michaeljgrimm wants to merge 32 commits into
michaeljgrimm wants to merge 32 commits into
Conversation
…opies and the workflow-contract tests package.json: npm run -> pnpm run, node ../../scripts/run-tests.mjs, drop check:runners and check:changes (root checks cover them), add check:scripts for the package's own check-syntax and browser-suites tests. Deleted: changelog-fragments(+test), flake-repeat, publish-source, quarantine(+test), run-tests(+test), ci-evidence(.mjs/.json) and the tests that read the removed .github/ (candidate-gallery-ci, ci-evidence, publish-source, publish-workflow-trust). The check-syntax tests move to scripts/check-syntax.test.mjs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
…copies of shared scripts and workflow-contract tests deleted package.json: npm run -> pnpm run; run-tests, check-font-hotlinks:built point at ../../scripts; check:runners, check:changes and check:font-hotlinks dropped (the root covers them); build:deps builds the gallery and core before the editor build, because dist/ is no longer tracked and the tests import it. The check-syntax tests move out of run-tests.test.mjs into scripts/check-syntax.test.mjs; the browser-suites test imports the root quarantine.mjs. Deleted: the sibling copies of changelog-fragments, flake-repeat, publish-source, quarantine, run-tests, check-font-hotlinks (+ tests and allowlist), ci-evidence, published-core-gate (opf.requiresUnreleasedCore is gone), and the workflow-contract tests that read the removed .github/ (candidate-gallery-ci, ci-evidence, publish-source, publish-workflow-trust, published-core-gate). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
dist/ is a copy of src/ plus the generated styles.css. The committed copy went stale in 0.25.1 (it lacked the source-pane and presenter changes), the registry lane rebuilds it from source (opf #794) and npm builds it at prepack. Untrack it and ignore it; the test scripts, test:contract and the playground now run `build:deps` and `build` first. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ore-gate test Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ck.json verify-vendor.mjs reads the @node-projects/jszip integrity from the root pnpm-lock.yaml. The native-*, footer-text-shape and compare-native-picture-edit* evidence records the sha256 of the package set pnpm-lock.yaml installs for packages/pptx (scripts/pnpm-lock.mjs, test/helpers/lock-evidence.mjs); an isolated npm consumer keeps hashing its own package-lock.json. native-evidence.mjs finds the editor at ../editor. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… installs the workspace candidates The test no longer needs npm_execpath (`pnpm run` sets it to pnpm's entrypoint): every npm, pnpm and tar call goes through the root spawnSpec. The editor is packed with `pnpm pack` and its packed manifest is read from the tarball (workspace: ranges are versions there; package.json is compared with the tarball's copy). The consumer installs the editor with the workspace candidates of gallery, core, renderer and PPTX converter, because 0.26.0 is not on the registry before the release; the lock assertions check the candidate tarballs' integrity, and `npm audit signatures` is recorded as skipped until every candidate version is published. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…points at the root rules Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lor-ref-export reads the real fixture test:packed and test:browser pack the candidate and its workspace siblings with pnpm pack (test/helpers/pack-workspace.mjs, which reads the manifest inside the tarball and refuses a workspace: spec), install the tarballs into the isolated npm consumer instead of registry versions, and run npm through scripts/package-manager.mjs instead of npm_execpath. build:deps builds gallery, core and render first. color-ref-export.mjs reads docs/fixtures/color-references.opf.json from the repository root and no longer falls back to an inline deck. 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>
…npm and the root release process 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>
…npm pack has nothing to resolve check:workspace-graph: a peer on a member is workspace:^ only when the package installs it through a workspace:* devDependency; core cannot (that closes core -> pptx -> core), so its peers are ^<member version>. check:versions keeps them and PEER_RANGES equal to the shared version. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…quarantine check-all, untracked render and pptx dist, npm env without pnpm settings - scripts/workspace-pack.mjs: one pnpm pack helper for the render, pptx and editor packed checks (no staged-manifest fallback); check:workspace-pack packs core for real. - Root build:packages (topological), package build:deps as <pkg>^... filters, gallery build:engines; core and the CLI build the gallery first. - quarantine.mjs check-all loops the root and every packages/<x> with a test/quarantine.json. - packages/render/dist and packages/pptx/dist are generated, not tracked. - spawnSpec drops the npm_config_* variables only pnpm understands when it spawns npm or npx. - releaseLane.githubRepository names OpenPresentation/opf with a directory (editor, render, pptx). - ci-test-weights.json loses the deleted tests; the redundant .gitignore line goes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…still use to packages/<x>; preview set includes the gallery Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… release-plan or candidate-gallery path in the local runs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… scripts run on the packages/ layout; the gallery is a workspace artifact Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…color-ref fixture path Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… files.mjs keeps the gate Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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-23e: root follow-ups after merging MR-23b (#801), MR-23c (#799) and MR-23d (#800) into MR-23a (#797). Base is
codex/mr-23a-root-gallery; the three merges are plain merge commits (disjoint package directories, no conflicts). Merge with a merge commit or rebase, not a squash. Draft.Fixes (the "root changes needed" of the four reports)
pnpm packof core. Core's optional peers on render and pptx are the concrete range^0.26.0(noworkspace:), and core keeps no devDependency on them (that would close core -> pptx -> core).pnpm packhas nothing to resolve; verified for all six packages.check:workspace-graph: a peer on a member isworkspace:^when the package installs it through aworkspace:*devDependency, else^<member version>.check:versionskeeps core's peers andPEER_RANGES(peers.ts) equal to the shared version (MR-40'srelease.mjs preparemust set them with the version).check:workspace-packpacks core for real.scripts/workspace-pack.mjs(pnpm pack, packed manifest read from the tarball, noworkspace:orcatalog:spec,assertLockstep) replaces pptx'stest/helpers/pack-workspace.mjs(with its staged-npm packfallback), the editor's staged manifests and render's tarball reader. The assertions are kept. Core's and the CLI'stest:packedandtest:packed:peersno longer usepack-cli-candidate, the release plan or the RR-55 peer gates in the local run: they install thepnpm packtarballs of the workspace.build:packages(pnpm -r --if-present run build, topological: gallery, core, render, pptx, then editor and CLI);buildis an alias;test:runstarts with it. Every package'sbuild:depsispnpm --filter "<pkg>^..." run build(what MR-30'ssetup-workspacealready does), so no hand-ordered list can drift; core and the CLI get one too (their builds no longer build dependencies inside); gallery'stest,typecheck,previews,check:previews,check:stabilityusebuild:engines(render and its dependencies; the gallery's engine-dependent gates need render's dist now that it is untracked);integrationusesbuild:deps.check:changedbuilds<pkg>...before a files-only run.check:quarantinerunsquarantine.mjs check-all: the root and everypackages/*withtest/quarantine.json(test with fixtures).--in browser-suites.json: none exists in render or pptx (checked); the doc lines that used-- argsare fixed.packages/<x>(used bypnpm testor MR-30's workflows):test-gallery-lazy-fontsandtest-gallery-script-fonts(now run their real-renderer branch),test/browser-suites.json(installed-browser),pack-ecosystem(the preview set includes the gallery at its own version;furniture-gallery.mjsexpects exactly that artifact),test-packed-ecosystem,test-installed-code,test-packed-browser,test-plain-whitespace-workflow,test-timeline-workflow,test-furniture-workflow,test-timeline-acceptance,test-readability-browser,test-metric-outline-browser,test-furniture-fields-browser,metric-outline-ink.test,test-code-layout-browser,test-metric-layout-browser,build-editor-demoand thebuild-*-browser/test-*-browserbundles it imports,build-rich-table-browser,published-matrix/engines-source, and the roottest:ecosystem/test:fonts/test:data/test:rich-text/test:layout/test:lists/test:pagination/test:image-treatments/test:placeholder-groups/test:gallery-transferscripts.test:galleryneeds the separate../pptx-gallerysite checkout and stays as is.packages/render/distandpackages/pptx/distuntracked (git rm --cached, a package.gitignoreeach, like the editor): both are plain copies ofsrc/that every suite rebuilds throughbuild:deps; the build reproduced every tracked file byte for byte, so nothing is lost, and pnpm's mode flip on render's bin no longer shows ingit status. Nothing in the golden test reads a committed dist (it builds first). The MR-31 worker should expect no committed dist.spawnSpecdrops thenpm_config_*variables only pnpm understands (overrides,recursive,verify-deps-before-run,fail-if-no-match, ...) fornpmandnpxchildren, so npm prints no "Unknown env config" warning; npm's own and user-set variables stay (test)..gitignoreline forpackages/editor/dist/styles.cssdropped;ci-test-weights.jsonloses the 12 deleted tests (golden-pinned-image.mjsand thecandidate-gallery-ci,publish-source,publish-workflow-trust,candidate-goldens,published-core-gateones).releaseLane.githubRepository(public API of the editor, and the same constant in render and pptx): now"OpenPresentation/opf", andreleaseLanegainsdirectory("packages/editor"and so on). Types are updated, READMEs sayOpenPresentation/opf(packages/<x>). Fragmentchanges/mr-23e-release-lane-repository.md(packages: [editor, render, pptx],changed).Results (fresh clone of this branch, macOS arm64, Node 26.7, pnpm 10.33.2)
pnpm install --frozen-lockfilepnpm lintpnpm typecheckpnpm test(core, CLI, gallery, integration, render, pptx and editor contract suites, allcheck:*), render golden digest excluded in the scratch clone onlyGolden corpus changed(MR-31), nothing elsetest:packedcore / CLI / CLI peers / render / pptx / editorpack:ecosystem,test:packed-ecosystem,installed-browsersuite,test:packed-browserdemo:editor,build-rich-table-browserAn earlier run of the same clone failed
check:reuse-buildandcheck:release-train(two tests that asserted the old script text); both are fixed in the branch and the fullnode scripts/run-checks.mjsthen passed 72 of 72 (51 s).Left (not in this PR)
pnpm testor MR-30's workflows):register-local-opf.mjs,local-opf-loader.mjs,link-ecosystem.mjs,audit-svg-contrast,review-*(accepted-text, chart-colors, content-cards, contrast-border, contrast-glyphs, font-corpus, gallery-artwork, metric-corpus, native-font-followup, native-quote-followup),font-shaping-probe/*,measure-font-candidates,measure-font-replacements,qualify-latin-fonts,probe-furniture-reimport,run-rich-text-browser,test-editor-lazy-fonts,test-editor-publication,test-pptx-publication,test-renderer-publication,registry-sibling-gate,build-registry-gallery-editor,published-matrix/installed-parity(copiesregister-local-opf),scripts/pack-cli-candidate.mjs(no longer used by the local runs), and thedocs/programs/**scripts that import../opf-*. The registry modes oftest-packed-ecosystem,test-installed-codeandpackages/cli/test/packed.mjs(--registry,release-plan.json, verification refs of the old repositories) still follow the old model: MR-34/MR-40.check-changed.mjsruns--filter <pkg>... build; MR-30'ssetup-workspacealready uses<pkg>^....test:next-bundle, the registry consumers,test:gallery(needs../pptx-gallery).🤖 Generated with Claude Code