Files
openmotion/scripts
open-design-crew[bot] b4f374b398 feat(cloud): auto-bake Prism catalog filmstrips into deps-bound S3 cache (#1012)
* feat(cloud): auto-bake Prism catalog filmstrips into deps-bound S3 cache

* fix(cloud): isolate filmstrip Chromium env, reject partial asset failures, and yield for user exports

Addresses PR #1012 review feedback:
- Apply buildRenderSubprocessEnv + assertRenderSubprocessEnvClean with ephemeral home/tmp/profile dirs (and cleanup/sweep) to launchFilmstripBrowser.
- Wrap launchFilmstripBrowser inside try/finally in bakeVirtualCompositionsWithChromium so the preview server always closes on launch failures.
- Propagate declared catalog asset download/integrity errors as HTTP 502 with Cache-Control: no-store and fail only the affected compositions before S3 upload.
- Require explicit version on catalogCompFilmstripKey and pass COMPOSITION_FILMSTRIP_VERSION in GET/PUT routes.
- Cooperatively yield multi-composition bakes before launch and between compositions via moveToDelayed + DelayedError when export_render/render_thumbnail jobs are waiting, preserving already-baked sprites in S3.
- Use locale-independent codepoint ordering in computeTemplateBakeHash.

* fix(cloud): bind filmstrip asset load errors to requesting composition capture

Addresses PR #1012 review thread PRRT_kwDOSaLB4s67aX0-:
- Capture the owning composition's error array synchronously in resolveAsset before awaiting the upstream fetch, and guard response writes against already-closed sockets.
- Add a delayed-failure regression test verifying a timed-out composition's late asset rejection never poisons the next healthy sibling.

---------

Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-24 22:57:46 +08:00
..