mirror of
https://github.com/Vincentwei1021/video-shotcraft.git
synced 2026-09-14 20:16:35 +08:00
368792f2a4
现有 CI 只做 tsc 编译,堵不住'能编译但不能运行'的 demo(如组合 id 非法、运行时 import 缺失、纹理缺失导致的渲染崩溃)。新增 assets/scripts/smoke-render-demos.py: - 扫描 demos/ 所有带时长导出(_DURATION/_DUR)的 demo,自动生成 template/src/smoke-root.tsx 注册全部(组件名==文件名约定) - 逐个 remotion still 渲染首帧,断言输出非空、进程退出码 0 - 自动把 demos/_textures 的图片纹理复制到 template/public/textures/live (跳过 layout.json 数据文件,不污染 git) - 需要真实 mp4 素材的 demo(如 ClipCardLooping)标记跳过并报告 - 幂等:用完清理 smoke-root,可重复跑 CI 新增 demo-smoke job(独立于 verify),路径过滤 demos/** 触发。 本地验证:57 个 demo 全部首帧渲染通过;子集/失败/跳过路径均正确。 首次验证还暴露了两个真问题——composition id 不能含下划线 (已用连字符风格解决)、纹理复制误带 json(已修复只复制图片)。 Co-authored-by: zhaotian1 <zhaotian1@wps.cn> Co-authored-by: Wei Yihao <weiyihao@amazon.com>