Skip to content

MR-23f: check:changed build race; gallery editor vendoring from packages/editor - #807

Closed
michaeljgrimm wants to merge 10 commits into
codex/mr-34-retirefrom
codex/mr-56-fixes
Closed

michaeljgrimm wants to merge 10 commits into
codex/mr-34-retirefrom
codex/mr-56-fixes

Conversation

@michaeljgrimm

@michaeljgrimm michaeljgrimm commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Two follow-ups found while verifying MR-50 and MR-52 (stacked on #805, base codex/mr-50-docs).

1. pnpm check:changed build race

check:skill-commands, check:stability, check:browser-safe and check:native-acceptance (and check:examples-convert) failed inside check:changed and passed alone after a build.

Root cause. dist/ is untracked, and check:changed only built it inside the later heavy package-test steps. The cheap checks run first (two at a time) and import the gallery, core and CLI builds, so in a fresh worktree they ran before any build existed (Cannot find module .../@openpresentation/gallery/dist/index.js, esbuild Could not resolve "@openpresentation/gallery"). check:examples-convert and check:browser-safe also built the CLI and core themselves (tsup clean) while other checks ran, wiping dist/ under them (266 of 266 conversions failed). Reproduced on a fresh worktree with changes in core, CLI, gallery and several scripts: 5 of 17 steps failed.

Fix (scripts/check-changed.mjs). One build:packages step runs after the install and before every other step (phases(): install, build, cheap checks, heavy steps, never overlapping), and every command runs with an OPF_REUSE_BUILD token of the run, so the builds core and the CLI repeat are skipped. check-browser-safe.mjs no longer calls the removed generate-previews.mjs. Same changed files on a fresh worktree with dist/ and src/generated removed: all 17 steps pass. Tests in check-changed.test.mjs.

2. Gallery editor vendoring from packages/editor

MR-34 removed prepare:gallery:registry (it read a sibling ../opf-editor checkout and release-plan.json), so the site's vendored editor could not be refreshed by a workflow. New:

  • pnpm vendor:gallery-editor --version X.Y.Z [--ref vX.Y.Z] [--site <pptx-gallery dir>] [--pin <package>=<X.Y.Z>] (scripts/vendor-gallery-editor.mjs, scripts/registry-consumer.mjs). The editor example is packages/editor/examples at --ref (default HEAD), read with git show; the set is registryPlan({ tag: 'X.Y.Z' }) (registry-plan.mjs: npm is asked for each of the six packages at that exact version), installed into a clean consumer with its own esbuild (pinned to the workspace's, checked against pnpm-lock.yaml); the renderer's optional peers are read from the published renderer. No sibling checkout but the site, no release-plan.json. RR-98: vendor the editor stylesheet for pptx.gallery #789's linked-asset verification runs on the build and again on the vendored copy. --pin overrides one package for a published set that is not shared (0.25.x).
  • bump-site.mjs bump --vendor-editor <opf checkout> runs it after the pins; the pptx-gallery leg of bump-sites.yml fetches the tag vX.Y.Z, passes the flag, and the rebuilt public/opf-editor and data/opf-spec.json are committed into the bump PR (the merge workflow's ALLOWED_FILES already allows them). A refresh with unchanged pins is needs-review, never auto-merged.
  • site-workflows/README.md (the "not feasible yet" note is replaced by the procedure) and docs/ecosystem-development.md (which still described prepare:gallery:registry) are updated. check:registry-consumer is new (checks.json rule).

Verified locally against the published 0.25 set (--version 0.25.0 --pin opf-editor=0.25.3 --pin gallery=5.0.0 --ref 49f70b78, the 0.25.3 editor commit; site = a fresh clone of pptx-gallery main): the output is byte-identical to the committed public/opf-editor and data/opf-spec.json (402 gallery documents, every file hash equal; only editorExamples.commit differs because the history was rewritten). The shared 0.26.0 is not published yet, so the version is a parameter. The site's verify-published-editor.mjs still accepts the manifest (same five packages, same shape).

Checks

actionlint clean on bump-sites.yml and the site-workflow drafts (the 5 findings in other workflows are the same on the base); check:ci-workflows; pnpm check:changed --base origin/codex/mr-50-docs; full pnpm test on a fresh clone (see the comment below).

🤖 Generated with Claude Code

michaeljgrimm and others added 2 commits October 22, 2026 08:39
The checks import dist/, which a fresh worktree lacks; the package builds ran inside the later heavy steps, and check:examples-convert and check:browser-safe built (tsup clean) while other checks ran. check:changed now runs one build:packages step after the install and sets OPF_REUSE_BUILD for the run. check:browser-safe no longer calls the removed generate-previews script.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the published set from the registry; bump-sites.yml commits it into the pptx-gallery bump

scripts/vendor-gallery-editor.mjs (with registry-consumer.mjs) takes --version, --ref (default HEAD), --site and --pin; the set is registryPlan({ tag: version }); no sibling opf-editor checkout and no release-plan.json. bump-site.mjs bump --vendor-editor runs it in the pptx-gallery leg.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@michaeljgrimm
michaeljgrimm changed the base branch from codex/mr-50-docs to codex/mr-34-retire October 22, 2026 15:42
@michaeljgrimm

Copy link
Copy Markdown
Contributor Author

Full pnpm test on a fresh clone of head 3342877: passed (68 checks, 12 min). actionlint clean on bump-sites.yml and the site-workflow drafts; check:changed vs codex/mr-34-retire passed.

michaeljgrimm and others added 3 commits October 22, 2026 09:54
…and PPTX it loads; render and PPTX build their own dist for the shard-1 checks and browser suites; the editor browser setup builds the playground)

First Actions run of ci.yml (39813113827): core's tests load the renderer and PPTX (optional peers, no workspace edge), the render and PPTX shard-1 steps and browser suites read dist that only the test script builds, and the editor browser suites read artifacts/playground that the playground legs build in another job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…sing, so the later wait for leaving it cannot pass before the browser entered it (flaked about 1 run in 3 on Actions)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… core's tests load

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@michaeljgrimm michaeljgrimm added full-ci Also run the full CI matrix on this PR (macOS, Windows, Node 22 and 26 legs) slow-checks Run slow-checks.yml on this pull request labels Oct 22, 2026
michaeljgrimm and others added 5 commits October 22, 2026 10:49
…equest

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…cat-file failed with dubious ownership in the nightly packed-install and registry jobs)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…er exit-full-screen request before starting the next presentation (a late answer took the new full screen away and ended it, 3 runs in 40 on macOS Actions)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…clicking text and for the inline field to hold focus (one flake in about eight Actions runs)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lled and the source manifest, not their order (npm on Linux lists them differently)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@michaeljgrimm michaeljgrimm removed full-ci Also run the full CI matrix on this PR (macOS, Windows, Node 22 and 26 legs) slow-checks Run slow-checks.yml on this pull request labels Oct 22, 2026
@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-56-fixes 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