render --start/--end applies the 2 GB Lambda plan cap to local renders

未关闭 适合新手
#7,035 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@ump45nose 已经在做这个了。

开始于 2026年11月2日。

  • #7036 来自 @ump45nose —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
tooling

调研方向

阅读 packages/producer/src/services/distributed/renderSpan.ts,了解 renderSpan() 如何配置对 plan() 的调用。检查 renderSpan 测试或 planSizeCap.test.ts,了解现有的大小上限行为,然后添加一个用例,表明当 plan 超过配置的较小上限时,span 渲染仍能成功。测试通过且本地 span 渲染不会被 Lambda 专用限制拒绝时,即为完成。

由索引模型根据 Issue 内容生成。

描述

bug good first issue

hyperframes render --start/--end renders a time range by reusing the distributed planner: renderSpan() in packages/producer/src/services/distributed/renderSpan.ts calls plan().

plan() rejects any plan directory over 2 GB with PLAN_TOO_LARGE (PLAN_DIR_SIZE_LIMIT_BYTES in plan.ts). That limit exists so a plan fits in AWS Lambda's 10 GB /tmp. A local range render never goes near Lambda, so the limit doesn't apply. A large, video-heavy project can render in full but fail on --start/--end.

Fix: pass planDirSizeLimitBytes: Number.MAX_SAFE_INTEGER in the config renderSpan() hands to plan(). planV2() already skips the cap this way.

Test: add a case in renderSpan tests (or alongside planSizeCap.test.ts) showing that a span render doesn't throw PlanTooLargeError when the plan is bigger than a small configured cap.

主要语言
TypeScript
星标
54.1k
派生
4.9k
平均合并
6 小时 28 分钟
30 天内合并 PR
793

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

heygen-com/hyperframes 的其他 Issue

查看 heygen-com/hyperframes 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。