test-shared: use ccache for V8 to avoid up to 6h macOS rebuilds
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, javascript
- 領域
- ci-cd
研究方向
Start with the test-shared.yml workflow and the linked v8-ccache.nix example; the issue says the remaining branch changes are measurement scaffolding. Check how the Darwin jobs fetch V8 from Cachix and compare that setup with the ccache approach. The requested outcome is an acceptable way to cache V8 builds for test-shared, including fork PRs; full macOS timings are still pending.
由索引模型根據 Issue 內容生成。
描述
Since #61860, the darwin jobs in test-shared.yml get V8 from Cachix. When a commit changes one of V8's build inputs (e.g. configure.py, common.gypi, deps/v8), they rebuild it from source instead.
This now takes 3–6h, compared with 20–50 min on a cache hit. On #66823 the aarch64-darwin job took 5h44m, close to the 6h limit. Fork PRs can't push to Cachix, so every push pays this cost again.
This isn't rare: 129 of the 1638 commits on main in the last 90 days touched one of these inputs.
On my fork I tried building V8 with ccache, stored as a single actions/cache entry so it doesn't run into the cache rate limit. Caches saved on main are readable from PRs, so fork PRs would benefit too.
Results on aarch64-linux:
- cold: 73 min, 111 MB cache
- with the
configure.pychange from that PR: 100% cache hits, rebuilt in under a minute - output byte-identical to the V8 in Cachix
The setup also works on both macOS runners. The full macOS timings are still running, and I'll post them here. The core of the change is small: v8-ccache.nix (the rest of that branch is measurement scaffolding).
Would something like this be acceptable for test-shared?
This is just one possible approach. Suggestions for simpler or better solutions are welcome, and anyone can take this forward.
- 主要語言
- JavaScript
- 星號
- 124k
- 分支
- 38k
- 平均合併
- 4 天 2 小時
- 30 天內合併 PR
- 266
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nodejs/node 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 69/100
維護者通常 1 天內回覆
-
fs: document readStream.start and readStream.end可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉doc
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
doc: document the Buffer.prototype.*Slice() methods可能已有人在做 @AyushCipher 今天認領。 未關閉doc
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆
-
`styleText` fast path bypasses `options` and `options.validateStream` validation可能已有人在做 @GBra-4-669 於 8 天前認領。 未關閉util
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
riscv64
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
相似的 Issue
-
bug triage needed
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 2 天內回覆
-
resource-submission validation-passed
難度 1/5 1 小時以內 新手友好度 82/100
hesreallyhim/awesome-claude-code#3773 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 73/100
tabatkins/railroad-diagrams#129 ·
-
web: api() turns a null or object-valued error body into a TypeError or "[object Object]" and loses the status可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆