ci(site): record the /demo replay in the site build instead of committing it #192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/site-record-demo-replay-at-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
/demoreplay (apps/site/replay/, about 900 KB of generated JSON) is no longer committed. The site build records it from the same checkout, and every Unfold release candidate now redeploys the site, so/demofollows the latest released Vloer.Why: the saved recording conflicted between every two open PRs that touched Vloer (#172 most recently), and a Vloer change failed
verifyuntil someone re-recorded it and made a separatesitecommit. The recording is deterministic (fixed clock, masked ids), so it is a build output, not source.What changed
apps/sitebuildanddemo:buildrun Vloer's recorder first;apps/site/replay/is gitignored and deleted from the tree.verify: thedemo-replaygroup andnpm run replay:checkare gone. The site group's inputs now include Vloer'ssrc,examples, recorder andpackage.json. The recorder's existing check still fails the build when Vloer calls an/api/path the replay neither answers nor refuses.on_release_published.yml:site-release-tagalso acceptsunfold-v0.x.y-rc.N.site-deployinstalls Vloer's runtime dependencies first (npm --prefix ../vloer ci --omit=dev, which installs onlyws).mise run demo-replay-conformancenow depends ondemo-record.For the owner to confirm: an Unfold release redeploys the whole site from its own tag. That includes site commits that did not release, such as
chore(site)ordocs(site). Two releases from one push deploy twice; the last one wins.Verified
mise run verify: all gates passed.mise run docs-checkandmise run release-check(40 tests, including the updated site-deploy routing test) passed.mise run demo-replay-conformancepassed: 20 views, zero unmatched requests.pnpm install --frozen-lockfile,npm --prefix ../vloer ci --omit=dev,pnpm build.Follow-ups, not in this PR:
apps/site/src/data/demo-timeline.jsonand the demo video can move the same way. The timeline is imported by Astro components and tests, so it needs a pre-typecheck step.After this merges, #172 drops its re-record commit (the conflict becomes a delete).
🤖 Generated with Claude Code
b3709fe58b5c478e02885c478e0288b10b6c0108