Flaky test: query-sql-streaming terminal memory guard misses the expected budget error
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, node.js
- Área
- testing-qa
Línea de trabajo
Empieza en test/core/query-sql-streaming.test.js alrededor de la línea 107 y lee la prueba del límite de memoria al final, añadida en #2969. Comprueba cómo obtiene la prueba la medición del heap y cómo la usa la comprobación final; el issue sugiere inyectar una medición determinista. El trabajo estará hecho cuando la prueba compruebe de forma fiable QueryExecutionBudgetError sin depender de la lectura actual del heap.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens
test/core/query-sql-streaming.test.js:107, "the terminal memory guard covers retained consumer output on early break", failed once in a merge-group run and removed an unrelated PR from the merge queue.
AssertionError [ERR_ASSERTION]: Missing expected rejection (QueryExecutionBudgetError).
at async TestContext.<anonymous> (test/core/query-sql-streaming.test.js:110:3)
Sighting
- Run 43942627137 (merge group for #2998 on master b2ffe17d), job
test (24)133563858691, 2026-11-16T19:48:15Z. The test took 119 ms. test (26)passed in the same run.test (22)was cancelled whentest (24)failed.- The same tree passed
test (22),test (24)andtest (26)minutes earlier on the PR itself (#2998 at 2b24b55c, which already contains master b2ffe17d). - #2998 changes the ai-gateway proxy, the test runner script and three other tests. It does not touch query streaming.
Why it looks like a race in the test, not in the PR
The test streams with maxHeapBytes: 1, breaks out of the loop after the first batch while holding 50,000 retained rows, and expects the terminal memory check to reject with QueryExecutionBudgetError. Whether it rejects depends on what the heap measurement reads at that moment. On this run it read under the limit, so nothing was thrown. The test was added in #2969.
Not verified: the exact reading that made the guard pass. Nobody has reproduced it locally.
Effect
A PR that does not touch this code can be dropped from the merge queue and has to be enqueued again.
What a fix needs
Make the test independent of the live heap reading (for example by injecting the measurement), or make the terminal check's reading deterministic for the test. The guard's product behavior is not in question here.
- Lenguaje dominante
- JavaScript
- Estrellas
- 11
- Forks
- 0
- Merge medio
- 1 h 14 min
- PR fusionados (30 d)
- 262
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: 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 hyparam/hypaware
-
Copilot, Droid and NanoClaw guides say macOS or Linux only, but setup offers them on WindowsAbiertodocumentation neutral:fix
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
hyparam/hypaware#2987 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Windows flake: withFileLock throws EPERM when the previous holder's lock file is still being deletedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
hyparam/hypaware#2929 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
hyparam/hypaware#2922 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
Todos los issues de hyparam/hypaware
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Needs: Author Feedback Needs: Repro
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
react/react-native#60059 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
bug status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
mastra-ai/mastra#30587 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
embedpdf/embed-pdf-viewer#1098 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
Tudmotu/gnome-shell-extension-clipboard-indicator#673 ·
Los mantenedores suelen responder en 11 días