cleanup: name and remove landed instances

Aperta
#422 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
46/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli, tooling

Direzione di ricerca

Start with the Cleanup section in docs/design/spec.md, especially “Landed instances are most of the disk,” then trace the existing newgit cleanup listing and remove behavior. The change needs to identify landed work, report disk use, and support opt-in removal while preserving unique branches and checkpoints; the issue also asks to collapse repeated install-store warnings to a count. Done means cleanup handles these cases as described, with tests covering the behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Workspaces are disposable, but nothing disposes of them. On this project's development machine, 90 of 122 instances held 321 GB of target/, with the disk 98% full. Removing the 61 whose work had already landed (clean workspace, tip on main or a pushed branch, or the branch's PR merged) freed 150 GB. That took a hand-written audit script; newgit should do it.

Proposal:

  • An instance has landed when its workspace has nothing uncommitted and its tip is on the default branch or a branch the remote has, or its branch's pull request merged.
  • newgit cleanup lists landed instances and what each holds on disk.
  • newgit cleanup --landed removes them as remove would: branch kept when unique, checkpoints kept.
  • Opt-in, because newgit can't see what else is attached to a workspace (a T3 Code thread, an editor).

Related papercut seen during that cleanup: cleanup prints one enormous warning line listing ~60 instances for t3code-deps ("install store unavailable: no [identity] paths are present in the workspace yet"). It should collapse to a count.

Design text: docs/design/spec.md, Cleanup → "Landed instances are most of the disk".

Lingua principale
Rust
Stelle
0
Fork
0
Merge medio
6h 21m
PR unite (30g)
173

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Spheroman/newgit

Tutte le issue di Spheroman/newgit

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.