testdouble experiencing memory issue when running 800 unit tests
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, nodejs
- Área
- testing
Línea de trabajo
Start by reproducing the memory growth with the reported 800-test Jenkins scenario using testdouble 3.20.2, then inspect the regression/src directory for a focused failing test. Run npm it after adding a minimal reproduction; done means the retained testdouble usage is reproducible and the cleanup behavior is covered by a regression test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Running 800 unit tests using testdouble, resulting in memory leak.
Issue
There are many testdouble usages that do not seem to be deleting properly. Therefore, when building on Jenkins, it terminates with the error message:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
This image comes from a Heap Snapshot of some of the tests.
Our currently code consists of the following, but it doesn't seem to help resolve the memory leak.
afterEach(function () {
td.reset();
});
Are there any other lines that should be included to help with garbage collection?
Environment
-
node -voutput: 18.20.4 -
npm -v(oryarn --version) output: 10.7.0 -
npm ls testdouble(oryarn list testdouble) version: 3.20.2
Failing Test
- Fork the repo
- Add a failing test (probably to the `/regression/src' directory)
- Submit a pull request for the failing test or link to your branch here
Example Repo
- Create a minimal repository that reproduces the issue
- Make sure that a fresh clone can run only
npm itand observe the issue - Link to that repo here
Runkit Notebook
- Create a Runkit notebook
- Invoke
var td = require('testdouble')at the top - Verify the behavior your issue is concerned with by clicking "Run"
- Link to the Runkit here
Code-fenced Examples
var td = require('testdouble')
// Your steps here.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.4k
- Forks
- 140
- Merge medio
- 7 h 51 min
- PR fusionados (30 d)
- 3
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 testdouble/testdouble.js
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
testdouble/testdouble.js#538 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
testdouble/testdouble.js#537 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
testdouble/testdouble.js#536 ·
-
`npm-run-all` to `npm-run-all2`Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 45/100
testdouble/testdouble.js#533 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
testdouble/testdouble.js#532 · 1 comentario ·
Todos los issues de testdouble/testdouble.js
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Design only Leadership Survey SLFS
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
bcgov/digital-journeys#2293 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
tursodatabase/turso#9405 ·
Los mantenedores suelen responder en 1 día
-
Toolkit
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
API Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ProjectSidewalk/SidewalkWebpage#5556 ·
Los mantenedores suelen responder en 1 día