Pytest-cov is extremely slow with xdist too
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, python
- Área
- performance, testing-qa
Línea de trabajo
Start by reviewing the pytest-cov and coverage documentation linked in the issue, then reproduce the timing comparison inside the Docker container with and without pytest-xdist coverage enabled. Check whether the available CTracer is being used and record the relevant configuration and runtime details. Done means identifying the source of the slowdown and establishing a concrete performance improvement or limitation.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Please go over all the sections and search
https://pytest-cov.readthedocs.io/en/latest/ or
https://coverage.readthedocs.io/en/latest/
before opening the issue.
Summary
When I run our tests with pytest-xdist, our entire tests about 1035 of them gets done in less than 35min
However, when we use pytest-cov it takes upto 1hr:15min which is tremondous.
I understand this is also due to the fact that the code instrumentation process of tracking the code takes some amount of time but this feels pretty exorbitant.
I also tried to install the python3-dev package but this does not seem to help as well
RUN apt-get update && \
apt-get install -y python3-dev build-essential && \
rm -rf /var/lib/apt/lists/*
With the above command, I see that it has made CTRACER available as well.
# python -c "import coverage; print(coverage.tracer.CTracer.__doc__)"
CTracer objects
We run our tests within the docker container.
Expected vs actual result
Pytest-cov should be able to complete the tests in and around the time when run without it
- Lenguaje dominante
- Python
- Estrellas
- 2.1k
- Forks
- 256
- Merge medio
- 6 d 10 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pytest-dev/pytest-cov
-
Celery tests require package; test blows up if Celery not installed instead of skipping the tests gracefullyPosiblemente ocupada @dchaudhari7177 la tomó hace 103 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pytest-dev/pytest-cov#750 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pytest-dev/pytest-cov#617 · 1 comentario ·
-
Only set dynamic context on coveragepy cores supporting it, perhaps?Posiblemente ocupada @terminalchai la tomó hace 18 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
pytest-dev/pytest-cov#755 · 3 comentarios ·
-
INTERNALERROR when generating html report using pytest-cov 7.1.0 with jinjaPosiblemente ocupada @daleselaji-dev la tomó hace 90 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
pytest-dev/pytest-cov#748 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
pytest-dev/pytest-cov#747 · 1 reacción ·
Todos los issues de pytest-dev/pytest-cov
Issues similares
-
[BUG]: Compliance rules never see Unity Catalog views as viewsPosiblemente ocupada @wagnercsantos la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
databrickslabs/ontos#1348 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ibm-granite/granite.build#649 ·
Los mantenedores suelen responder en 1 día
-
`forum_pr_poster` action will always return `none` when checking for pre-existing feedback threads, even if a feedback thread already exists.Posiblemente ocupada @pgmzeta la tomó hoy. AbiertoE-Verified P-Major
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
goonstation/goonstation#28259 ·
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
woonstadrotterdam/monumenten#70 ·
Los mantenedores suelen responder en 15 días
-
binding:python bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día