Clean up pytest files in /tmp after test runs

Abierto
#489 1 comentario 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
46
Forks
106
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ocf/ocfweb

Todos los issues de ocf/ocfweb

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.