Clean up pytest files in /tmp after test runs

Aperta
#489 1 commento 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
devops, testing-qa

Direzione di ricerca

The payload names no file in the repository. Start with the Makefile test target and the pytest setup, then check where pytest writes its /tmp/pytest-of-<user> directories. The issue lists three options (an rm after tests, tmpreaper, or a larger /tmp) and no decision has been made, so agree on an approach with maintainers first. Done means a test run leaves no pytest temp directories behind, or the chosen cleanup is documented and works.

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

Descrizione

Currently, tests (using pytest) can leave files around in /tmp (~ 800 MiB per pytest directory) which can then lead to /tmp completely running out of space since it is only 4 GiB in total:

jvperrin@supernova:~$ sudo du -sh /tmp/* | sort -h | tail -n 2
872M	/tmp/pytest-of-gleeb
2.6G	/tmp/pytest-of-dkessler

This has happened several times before, but we should have a better solution than just temporarily cleaning out space again (for instance running a rm of the relevant directory in the Makefile after running tests, or running tmpreaper on these directories periodically).

Additionally, increasing the size of /tmp on supernova would help, but given the size of these pytest outputs (~ 800 MiB per directory), that wouldn't help that much.

Lingua principale
Python
Stelle
46
Fork
106
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 ocf/ocfweb

Tutte le issue di ocf/ocfweb

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.