Faster bootstrap runs without changing what a profile installs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, shell
- Ambito
- build-system
Direzione di ricerca
Start by reading build/tart/vm run and install/brew, which the issue names as the VM launch and brew installation entry points. Check how profile sets are selected and how the checkout is mounted, then trace the bootstrap loop for mise, runtimes, and nix. Done means the allowed brew sets install in one bundle call, the host cache is reused, and a fresh run still proves the complete profile works.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A full headless run spends most of its time in the brew step. Almost all of that time goes to downloading bottles. The previous run already downloaded the same bottles into a VM that was then thrown away.
The profile cut is right and should not be trimmed further. The laptop needs gcc, llvm, pandoc, and tectonic, so the VM must install them too. The time can be recovered elsewhere.
-
Share Homebrew's download cache from the host.
build/tart/vm runalready mounts the checkout. A second mount, read-write, can hold the cache.HOMEBREW_CACHEinside the guest points at it. Bottles then download once per host instead of once per VM, and a reset VM pours from cache. This is the biggest win, and it changes nothing about the result. -
One bundle call per run.
install/brewbundles set by set so that a profile can omit some sets. Bundle fetches every download for one call in parallel. Twelve calls therefore mean twelve serial fetch phases. The installer can generate a temporary Brewfile that includes only the allowed sets and run onebrew bundleagainst it. The per-set omission survives, and the run gets one fetch phase. -
Homebrew environment for the run. The bootstrap can set
HOMEBREW_NO_AUTO_UPDATE,HOMEBREW_NO_INSTALL_CLEANUP, andHOMEBREW_NO_ENV_HINTSfor its own process. Those three stop the repeated update checks, the cleanup passes between calls, and the hint noise in the log. The installer still runsbrew updateonce, explicitly. -
A checkpoint VM for the loop, never for the proof.
tart cloneof a VM stopped right after the brew step gives a starting point for iterating onmise,runtimes, andnixin minutes. The fresh run stays the only evidence that the whole thing works. This checkpoint would have shortened the last four iterations considerably.
- Lingua principale
- Shell
- Stelle
- 1
- Fork
- 0
- Merge medio
- 11m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna 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 indexzero/dotfiles
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 39/100
-
Easy to remember one-linersAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 48/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
-
oneliners: evergreenAperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 15/100
Tutte le issue di indexzero/dotfiles
Issue simili
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnableForse già presa @dannyward630 l’ha presa oggi. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
yunaremaia/git-api#61 ·
I maintainer di solito rispondono entro 1 giorno
-
Update nwg-panel to 0.12.3Forse già presa @zen0bit l’ha presa oggi. Apertapackage-update
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
alunduil/alunduil-chezmoi#963 ·
I maintainer di solito rispondono entro 1 giorno