mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
perf: share CLI startup for user-site publishing (#6704)
This PR reduces user-site publish time by sharing CLI startup between sync and build, reducing asset downloads when hosted builds do not need them, and testing smaller publish artifacts. The paired [SaaS PR #685](https://github.com/webstudio-is/webstudio-saas/pull/685) uses the combined CLI path when the Builder artifact advertises support; older artifacts keep the existing split path. The paired staging publish served HTML and JavaScript successfully. The combined CLI step took 4 s versus about 8 s for the previous split steps in that run; total publish time remained about 40 s. This is one observation, not a controlled benchmark or a large-site measurement. Local artifact pruning reduced the compressed archive from 119 MiB to 111 MiB (6.7%); it was not adopted. The full artifact is still downloaded and extracted on every publish. ## Checklist - [x] Preserve standalone sync/build behavior and gate combined sync/build with an artifact capability marker. - [x] Skip hosted asset downloads only when content indexing does not need them; preserve static and MDX-required downloads. - [x] Test CLI startup, synthetic build, and artifact-size opportunities; record why no riskier change was adopted. - [x] Verify the paired staging publish and review Builder documentation. - [x] Keep only the E2E schema snapshot matching current inputs; no migration source or migration was added. - [x] Retry the failing `pages-drag` shard: all 17 tests passed, including the drag-and-nest test. - [x] Resolve the two outdated review threads; current code retains finding details and closes diagnostics on element navigation. - [x] Required CI on the cleanup commit passed, including all Builder E2E shards, visual regression, and the existing migration-chain check. - [ ] Run the agent evaluation suite only after separate approval; remind the user before merging. No large-site publish or production release has been tested.
This commit is contained in:
1 parent
9a86222afd
commit
b9319a3891
17 files changed
+2593
-101
No files matched your search
@@ -59,7 +59,9 @@ jobs:
|
||||
# Despite being listed as a dependency, @remix-run/dev does not install the remix cli.
|
||||
# TODO: Minimize artefact size due to frequent downloads on each publish.
|
||||
- name: pnpm deploy
|
||||
run: pnpm --filter 'ssg-cloudflare-pages' deploy "${{ github.workspace }}/../ssg-template"
|
||||
run: |
|
||||
pnpm --filter 'ssg-cloudflare-pages' deploy "${{ github.workspace }}/../ssg-template"
|
||||
touch "${{ github.workspace }}/../ssg-template/.webstudio-cli-sync-build-v1"
|
||||
|
||||
- name: Verify optional Assets build dependency is omitted
|
||||
run: test ! -e node_modules/@webstudio-is/content-engine/package.json
|
||||
|
||||
@@ -56,11 +56,10 @@ jobs:
|
||||
- name: pnpm build
|
||||
run: pnpm --filter 'webstudio-cloudflare-template^...' run build
|
||||
|
||||
# Ideally, execute 'pnpm deploy --prod', but @remix-run/dev doesn't support this flag.
|
||||
# Despite being listed as a dependency, @remix-run/dev does not install the remix cli.
|
||||
# TODO: Minimize artefact size due to frequent downloads on each publish.
|
||||
- name: pnpm deploy
|
||||
run: pnpm --filter 'webstudio-cloudflare-template' deploy "${{ github.workspace }}/../cloudflare-template"
|
||||
run: |
|
||||
pnpm --filter 'webstudio-cloudflare-template' deploy --prod "${{ github.workspace }}/../cloudflare-template"
|
||||
touch "${{ github.workspace }}/../cloudflare-template/.webstudio-cli-sync-build-v1"
|
||||
|
||||
- name: Verify optional Assets build dependency is omitted
|
||||
run: test ! -e node_modules/@webstudio-is/content-engine/package.json
|
||||
|
||||
Reference in new issue
Block a user