Skip to content

MR-23c: wire up packages/pptx - #799

Closed
michaeljgrimm wants to merge 4 commits into
codex/mr-23a-root-galleryfrom
codex/mr-23c-pptx
Closed

michaeljgrimm wants to merge 4 commits into
codex/mr-23a-root-galleryfrom
codex/mr-23c-pptx

Conversation

@michaeljgrimm

Copy link
Copy Markdown
Contributor

MR-23c (slice of MR-23 "Wire-up"): packages/pptx runs in the workspace. Base is codex/mr-23a-root-gallery (#797, 30befac); only packages/pptx/** changes, no root file. Four commits; merge with a merge commit or rebase, not a squash.

What changed

  • package.json. npm run -> pnpm run; test/test:contract call node ../../scripts/run-tests.mjs (per the MR-12 table in MR-12: shared scripts take a package directory #780); check:runners and check:changes dropped (root checks cover them). New build:deps (gallery, core, render, in that order: core's dts build needs the gallery's dist) that test, test:contract, test:packed and test:browser run first. New check:scripts (run by test) for the package's own scripts/*.test.mjs.
  • Deleted copies of shared scripts: changelog-fragments(+test), flake-repeat, publish-source, quarantine(+test), run-tests(+test), ci-evidence.{mjs,json}. The check-syntax tests moved out of run-tests.test.mjs into scripts/check-syntax.test.mjs. scripts/browser-suites.test.mjs never imported quarantine.mjs in this package, so it needed no change; browser-suites.json setup is pnpm run ....
  • Deleted workflow-contract tests that read the removed .github/: candidate-gallery-ci, ci-evidence, publish-source, publish-workflow-trust (not re-pointed; MR-40's two-workflow test covers the unified workflow).
  • package-lock.json readers.
    • scripts/verify-vendor.mjs reads the @node-projects/jszip integrity from the root pnpm-lock.yaml (scripts/pnpm-lock.mjs, dependency-free, with scripts/pnpm-lock.test.mjs).
    • The evidence that hashed this package's own lock (native-code|chart-colors|metric|quote|table-colors|text, native-evidence, footer-text-shape, compare-native-picture-edit-controls and its comparator) now records the sha256 of the package set pnpm-lock.yaml installs for packages/pptx (name@version + integrity of the whole closure, OS-independent), via test/helpers/lock-evidence.mjs. A directory that has its own package-lock.json (the isolated npm consumer of the native packed run) still hashes those bytes; the key names the kind. Evidence recorded before this (docs/evidence, a footer-text-shape baseline) hashes an npm lock and does not compare equal; I did not rewrite historical evidence.
    • The other ~12 files in the "19" list (native-picture, compare-native-picture, native-furniture-fixtures, native-font-edit-fixture, compare-published, keynote-*, scripts/keynote-qualification/*, packed-install's consumer lock) read the package-lock.json of a temporary npm consumer they create or are handed, not this repository's; they are unchanged.
  • npm_execpath users. provenance-interop and packed-bundle-browser run npm through scripts/package-manager.mjs. packed-install and packed-bundle-browser pack with pnpm pack (test/helpers/pack-workspace.mjs reads the manifest inside the tarball, asserts no workspace: spec and that sibling ranges are ^<version>), and install the tarballs of pptx, core, gallery (and render) into the isolated consumer instead of registry versions (0.26.0 is not on the registry). --legacy-peer-deps is used because the optional renderer peer at ^0.26.0 is unresolvable on the registry (ERESOLVE otherwise). The OPF_NATIVE_UNDERLINE_REGISTRY limitation is gone: core is the candidate now and the underline control runs.
  • Sibling-layout paths. color-ref-export.mjs reads docs/fixtures/color-references.opf.json from the repository root and fails when it is missing (the inline fallback is deleted). native-evidence.mjs finds the editor at ../editor.
  • Docs. The nested packages/pptx/AGENTS.md points at the root rules and keeps only package specifics (commands, lock evidence, packed checks, Windows and native PowerPoint rules); README "Development"/"Release Lane", CONTRIBUTING, DEPENDENCY-NOTES and test/QUARANTINE.md use pnpm and the root scripts.
  • .github readers: scripts/keynote-qualification/registry-runtime.mjs reads no .github/ file (it verifies a registry consumer and a pinned verifier checkout handed on its command line), so it is unchanged. The six RR-86 drafts are untouched (D20).

Local results (macOS arm64, Node 26.7, pnpm 10.33.2, network on)

  • pnpm --filter @openpresentation/opf-pptx test:contract: 164 scripts pass, browser-check bundle builds.
  • pnpm --filter @openpresentation/opf-pptx test (full): 167 scripts pass; check:scripts 6 tests pass.
  • test:packed (packed-install with registry-signature audit of the consumer, provenance-interop against published 0.11.6): pass. test:browser (browser-check, packed bundle in Chromium 156, 129 core examples byte-identical to Node): pass. validate, typecheck (318 files): pass.
  • Root: check:changes, check:quarantine (+ quarantine.mjs check --dir packages/pptx), check:font-hotlinks, check:versions, check:workspace-graph, check:pins, scripts/run-tests.test.mjs: pass.
  • Not run: Windows (native *.ps1, packed-install --native, PowerPoint), Node 22/26 legs, CI, scripts/quarantine.mjs run-suite browser (the same two commands ran directly via test:browser), test:compare-published, keynote registry qualification (need a supplied registry consumer).

Root changes this needs (not made here)

  1. pnpm pack fails in packages/javascript (ERR_PNPM_CANNOT_RESOLVE_WORKSPACE_PROTOCOL: core's optional peers on opf-pptx and opf-render are workspace:^ but not installed, autoInstallPeers: false). pack-workspace.mjs falls back, with a warning, to npm pack of a staged copy with the workspace specs resolved; MR-40's release step needs a real fix (for example devDependencies on the two engines that do not recreate the lockfile cycle, or resolving at publish).
  2. pnpm test:engines order: pptx's build:deps makes the three engine suites independent of the order they run in; if render/editor do not get the same, run render first.
  3. Root check:quarantine printed "Empty" without naming a package; confirm it loops packages/* with test/quarantine.json (I ran --dir packages/pptx by hand).
  4. npm child processes print Unknown env config "overrides"/"recursive"/... warnings: pnpm exports workspace settings as npm_config_*. Harmless; package-manager.mjs could drop those variables for npm.
  5. packages/pptx/scripts/published-core-gate.mjs and its test (RR-55 opf.requiresUnreleasedCore) are unchanged; they are MR-34 deletions.

🤖 Generated with Claude Code

michaeljgrimm and others added 4 commits October 22, 2026 05:06
…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>
…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>
…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>
…npm and the root release process

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-23c-pptx 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