test-shared: use ccache for V8 to avoid up to 6h macOS rebuilds
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- github-actions, javascript
- Domínio
- ci-cd
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- JavaScript
- Estrelas
- 124k
- Forks
- 38k
- Merge médio
- 4d 2h
- PRs com merge (30d)
- 266
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de nodejs/node
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
Mantenedores costumam responder em até 1 dia
-
fs: document readStream.start and readStream.endTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertadoc
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
nodejs/node#67848 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
doc: document the Buffer.prototype.*Slice() methodsTalvez já em andamento @AyushCipher assumiu hoje. Abertadoc
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
nodejs/node#67847 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
`styleText` fast path bypasses `options` and `options.validateStream` validationTalvez já em andamento @GBra-4-669 assumiu há 8 dias. Abertautil
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
riscv64
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
nodejs/node#67655 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de nodejs/node
Issues semelhantes
-
bug triage needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 2 dias
-
[Resource]: PersephoneAbertaresource-submission validation-passed
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
hesreallyhim/awesome-claude-code#3773 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 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 statusTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
OCM: shares using the `embedded` protocol are rejected with "Missing sharedSecret in protocol"Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia