Look into memory bloat after running flutter test
- Lingua principale
- Dart
- Stelle
- 1.7k
- Fork
- 404
- Merge medio
- 6g 17h
- PR unite (30g)
- 18
Descrizione
While running
`flutter test test/`
from `packages/devtools_app`
about 40 times, and realized that my cloudtop was running out of memory.
I noticed that `devtools/packages/devtools_app/test/fixtures` had grown to 34GB
it may be worth exploring why that memory is being left behind. Kenzie had the initial idea that perhaps some test fixtures aren't properly being torn down
It looks like running `flutter clean` deletes the `.dart_tool` directory, which is the main culprit for where these files are left over.
So finding a way to document or have that happen automatically may be helpful
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci la crescita eseguendo `flutter test test/` da `packages/devtools_app`, quindi esamina `test/fixtures` e i file `.dart_tool` correlati. Confronta lo stato prima e dopo `flutter clean`; il completamento dovrebbe stabilire se rimangono dati delle fixture e documentare oppure automatizzare il comportamento di pulizia.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- developer-experience, testing-qa, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100