Repository navigation
MR-23f: check:changed build race; gallery editor vendoring from packages/editor - #807
Closed
michaeljgrimm wants to merge 10 commits into
Closed
michaeljgrimm wants to merge 10 commits into
michaeljgrimm wants to merge 10 commits into
Conversation
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
force-pushed
the
codex/mr-56-fixes
branch
from
October 22, 2026 15:42
ef6cb49 to
3342877
Compare
michaeljgrimm
changed the base branch from
codex/mr-50-docs
to
codex/mr-34-retire
October 22, 2026 15:42
Contributor
Author
|
Full |
…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>
…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>
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.
Two follow-ups found while verifying MR-50 and MR-52 (stacked on #805, base
codex/mr-50-docs).1.
pnpm check:changedbuild racecheck:skill-commands,check:stability,check:browser-safeandcheck:native-acceptance(andcheck:examples-convert) failed insidecheck:changedand passed alone after a build.Root cause.
dist/is untracked, andcheck:changedonly 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, esbuildCould not resolve "@openpresentation/gallery").check:examples-convertandcheck:browser-safealso built the CLI and core themselves (tsupclean) while other checks ran, wipingdist/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). Onebuild:packagesstep runs after the install and before every other step (phases(): install, build, cheap checks, heavy steps, never overlapping), and every command runs with anOPF_REUSE_BUILDtoken of the run, so the builds core and the CLI repeat are skipped.check-browser-safe.mjsno longer calls the removedgenerate-previews.mjs. Same changed files on a fresh worktree withdist/andsrc/generatedremoved: all 17 steps pass. Tests incheck-changed.test.mjs.2. Gallery editor vendoring from
packages/editorMR-34 removed
prepare:gallery:registry(it read a sibling../opf-editorcheckout andrelease-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 ispackages/editor/examplesat--ref(defaultHEAD), read withgit show; the set isregistryPlan({ 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 againstpnpm-lock.yaml); the renderer's optional peers are read from the published renderer. No sibling checkout but the site, norelease-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.--pinoverrides 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; thepptx-galleryleg ofbump-sites.ymlfetches the tagvX.Y.Z, passes the flag, and the rebuiltpublic/opf-editoranddata/opf-spec.jsonare committed into the bump PR (the merge workflow'sALLOWED_FILESalready allows them). A refresh with unchanged pins isneeds-review, never auto-merged.site-workflows/README.md(the "not feasible yet" note is replaced by the procedure) anddocs/ecosystem-development.md(which still describedprepare:gallery:registry) are updated.check:registry-consumeris new (checks.jsonrule).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-gallerymain): the output is byte-identical to the committedpublic/opf-editoranddata/opf-spec.json(402 gallery documents, every file hash equal; onlyeditorExamples.commitdiffers because the history was rewritten). The shared 0.26.0 is not published yet, so the version is a parameter. The site'sverify-published-editor.mjsstill accepts the manifest (same five packages, same shape).Checks
actionlint clean on
bump-sites.ymland 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; fullpnpm teston a fresh clone (see the comment below).🤖 Generated with Claude Code