In-memory MongoDB crashes with SIGSEGV intermittently in apps/api/test/app.test.ts and fails the coverage gate
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
Línea de trabajo
Start by reading apps/api/test/app.test.ts and the pnpm test:coverage setup to see how the in-memory MongoDB instance starts during parallel runs. The report gives no mongod log or core dump, so investigate whether a safe startup retry is feasible and how coverage failures expose the original crash. Done means the intermittent crash is addressed or its cause and limits are documented, with the full coverage run still enforcing its 100% gate.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In one of four local pnpm test:coverage runs, the in-memory MongoDB process crashed while apps/api/test/app.test.ts started. The test file did not run, so coverage fell below 100% and the run failed. The same tree passed in the other three runs, and apps/api/test/app.test.ts passed 2 of 2 times when run alone.
Output
[Nest] ERROR [ExceptionHandler] UnexpectedCloseError: Instance closed unexpectedly with code "null" and signal "SIGSEGV"
at MongoInstance.closeHandler (.../[email protected]/.../lib/util/MongoInstance.js:335:58)
Error: [vitest-pool]: Worker forks emitted error.
Caused by: Error: Worker exited unexpectedly with signal SIGABRT during started state while running test file apps/api/test/app.test.ts
Test Files 452 passed (453)
ERROR: Coverage for lines (99.94%) does not meet global threshold (100%)
The files reported as not covered were assignments.module.ts, auth.module.ts, jwt.strategy.ts and gateway.module.ts, which only that test file loads.
Environment
- Linux 7.3.3-1-cachyos, Intel Core Ultra 7 258V
- Node v26.13.0, pnpm 10.34.3, vitest 5.0.2
mongodb-memory-server11.3.0, binarymongod-x64-cachyos-7.0.24
What is not known
- I do not have a core dump or the
mongodlog, so the cause of the SIGSEGV is not known. It can be specific to this kernel or distribution. - I saw it one time. It occurred when the full suite ran in parallel, not when the file ran alone.
One crash of the database makes the full coverage gate fail with a message about coverage, which hides the cause. If this occurs on other machines, a retry of the instance start can be worth adding.
Found while preparing #1904.
- Lenguaje dominante
- TypeScript
- Estrellas
- 119
- Forks
- 19
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 60
Preparar el entorno
- Incluye un Dockerfile o un 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 DouglasNeuroInformatics/OpenDataCapture
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at oncePosiblemente ocupada @2389400626lh-ops la tomó hoy. AbiertoArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Los mantenedores suelen responder en 1 día
-
Area: Infrastructure Chore Difficulty: Low Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DouglasNeuroInformatics/OpenDataCapture#1948 ·
Los mantenedores suelen responder en 1 día
-
apps/web preview overwrites newly built dist/index.html with stale dist/index.html.bak across buildsAbiertoArea: Infrastructure Area: Web Bug Difficulty: Low Priority: Medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DouglasNeuroInformatics/OpenDataCapture#1938 ·
Los mantenedores suelen responder en 1 día
-
Area: API Bug Difficulty: Low Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
DouglasNeuroInformatics/OpenDataCapture#1937 ·
Los mantenedores suelen responder en 1 día
-
Area: Infrastructure Bug Difficulty: Low Priority: Medium Security
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DouglasNeuroInformatics/OpenDataCapture#1916 ·
Los mantenedores suelen responder en 1 día
Todos los issues de DouglasNeuroInformatics/OpenDataCapture
Issues similares
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ag-ui-protocol/ag-ui#3504 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Dokploy/dokploy#6151 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#161712 ·
Los mantenedores suelen responder en 1 día
-
bug p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rothgar/rabble.radio#283 ·
Los mantenedores suelen responder en 1 día
-
bug from-app needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
nightly-labs/openbot#19805 · 1 comentario ·
Los mantenedores suelen responder en 1 día