test-shared: use ccache for V8 to avoid up to 6h macOS rebuilds
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, javascript
- Ambito
- ci-cd
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 124k
- Fork
- 38k
- Merge medio
- 4g 2h
- PR unite (30g)
- 266
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nodejs/node
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
I maintainer di solito rispondono entro 1 giorno
-
fs: document readStream.start and readStream.endForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertadoc
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
nodejs/node#67848 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
doc: document the Buffer.prototype.*Slice() methodsForse già presa @AyushCipher l’ha presa oggi. Apertadoc
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
nodejs/node#67847 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
`styleText` fast path bypasses `options` and `options.validateStream` validationForse già presa @GBra-4-669 l’ha presa 8 giorni fa. Apertautil
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
riscv64
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nodejs/node#67655 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
bug triage needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
[Resource]: PersephoneApertaresource-submission validation-passed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
hesreallyhim/awesome-claude-code#3773 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 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 statusForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
OCM: shares using the `embedded` protocol are rejected with "Missing sharedSecret in protocol"Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno