Repository navigation
fix(ci): 修复 config-dir 报告读到半截与 darwin 构建 tsc 堆内存不足 - #2805
Merged
Merged
Conversation
- config-dir / worker-codex-profile 的假 CLI 改为 tmp + rename 发布报告: 测试按「文件存在」轮询后立刻读,普通 writeFileSync 先建文件后落字节, CI 竞争下会读到空内容(bun-test: JSON Parse error: Unexpected EOF)。 - macos-15 runner 上 `bun run build` 显式给 Node 6 GB 老生代:整仓 tsc 约 2.4 GB 已贴着默认上限,新增约 30 MB 类型的 PR 即以 exit 134 OOM。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 4, 2026 21:04
deepcoldy
pushed a commit
that referenced
this pull request
Nov 4, 2026
deepcoldy
pushed a commit
that referenced
this pull request
Nov 4, 2026
|
🚀 Released in v3.57.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
根治两个挡在 PR 上的 CI 失败(按合码标准 G4,不靠同 SHA 重跑转绿):
1. bun-test:
config-dir.test.ts读到半截报告worker pins BOTS_CONFIG onto its CLI child … > deletes an inherited BOTS_CONFIG for a core-only synthetic placeholder报SyntaxError: JSON Parse error: Unexpected EOF。existsSync(report)轮询,一看到文件就JSON.parse(readFileSync(...));假 CLI 用普通writeFileSync写报告,先截断建文件、再落字节,CI 竞争下读到的是空内容。strict-env-worker.integration.test.ts之前修过同一类窗口,这里漏了。report.json.tmp再renameSync,文件一出现就是完整内容。worker-codex-profile.integration.test.ts是同样的写法,一并改。2. bun-binary-darwin:
bun run build里的 tsc 堆内存不足FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory,tscAbort trap,exit 134。它的父提交(feat(workflow): 无群草稿与 daemon 侧编排接口 #2801)同一个 job 是绿的。tsc已贴着这个上限。本地tsc --noEmit --extendedDiagnostics:feat(workflow): 无群草稿与 daemon 侧编排接口 #2801 树Memory used 2,417,210K,feat(dashboard): 工作流编排页面(澄清、spec、流程图) #2802 树2,448,730K,只多约 30 MB 就越过了。master 继续长代码,任何 PR 都会随机撞上。bun run build的三处(ci.yml的 bun-binary-darwin、release.yml的 desktop 与 bun-binaries)给这一步设NODE_OPTIONS=--max-old-space-size=6144。只作用于这一步,不改package.json的 build 脚本,本地构建不受影响。release 里那一步的 matrix 也跑 linux,加大上限对它无副作用。影响面
只改测试夹具和 CI 工作流的一个环境变量;不涉及产品代码、用户行为、发版产物内容。
测试验证
darwin 那一项只能在 CI 上验证:本 PR 的 bun-binary-darwin 会跑带新环境变量的构建;合入后 #2802 同步 master 再看同一 job。
🤖 Generated with Claude Code