Tool-layer tests fail when DirectShow device enumeration hangs
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todaví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
- node.js, typescript
Línea de trabajo
Empieza por la tabla de casos y el manejo de las pruebas omitidas en src/__tests__/integration/toolLayer.test.ts, especialmente los casos list_audio_devices y list_video_devices. Compara sus expectativas con los casos omitidos existentes y la rama winOnly. Marca como omitida una enumeración de DirectShow que se quede bloqueada o acepta su error de timeout documentado; después, ejecuta la suite de la capa de herramientas. El trabajo estará terminado cuando estos casos ya no fallen en máquinas donde la enumeración se bloquea.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
On a Windows machine where DirectShow device enumeration hangs, npm test fails two cases in src/__tests__/integration/toolLayer.test.ts (the #261 tool-layer suite):
list_audio_deviceslist_video_devices
Both return isError: true with Could not enumerate audio devices (ffmpeg timed out after 12s.). The tools behave correctly: they time out and explain why (the fix from #40). The test is what fails, because it expects success from any case not marked expect: "error" or Windows-only.
Running ffmpeg -hide_banner -list_devices true -f dshow -i dummy directly on the same machine was still running after 90 s, so the hang is in the driver or ffmpeg, not in the server.
Expected
The suite already reports a case as skipped when the machine lacks its engine (Windows OCR, speech, a whisper model) rather than failing it. A device enumeration that times out is the same kind of environment gap, so these two cases should end as skipped (or pass by accepting the documented timeout error) instead of failing.
Suggested fix
One of:
- In the case table, accept the enumeration-timeout error as a valid outcome for
list_audio_devicesandlist_video_devices: assertisError, a non-empty message, and nostructuredContent, as thewinOnlybranch already does. - Probe enumeration once in
beforeAllwith a short timeout and useit.skipIfon both cases when it hangs, so the result shows as skipped rather than passed.
Option 2 matches the suite's "reported as skipped, not passed" rule more closely.
Observed
- Version 0.59.0, clean
mainat e65849b - Windows 11 Pro 10.0.26200
- Result: 1648 passed, 30 skipped, 2 failed. typecheck, lint, and
docs:checkall pass
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 4
- Merge medio
- 3 d 4 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 TMHSDigital/screencast-mcp
-
dependencies effort: small good first issue priority: low
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
TMHSDigital/screencast-mcp#509 ·
Los mantenedores suelen responder en 1 día
-
dependencies effort: small good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/screencast-mcp#490 ·
Los mantenedores suelen responder en 1 día
-
ci effort: small priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/screencast-mcp#460 ·
Los mantenedores suelen responder en 1 día
-
effort: medium help wanted priority: low testing
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
TMHSDigital/screencast-mcp#503 ·
Los mantenedores suelen responder en 1 día
-
effort: medium priority: low tech-debt
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
TMHSDigital/screencast-mcp#502 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/screencast-mcp
Issues similares
-
from-review tech-debt testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
blamechris/chroxy#9520 ·
Los mantenedores suelen responder en 1 día
-
area:web complexity:S priority:P2 type:chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
nahuelcostac/agent-hub#104 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
snaglet-org/snaglet#78 ·
Los mantenedores suelen responder en 1 día
-
agent/guide documentation help wanted stage/010-actionable
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
kubestellar/console-marketplace#1101 ·
Los mantenedores suelen responder en 1 día
-
Java Edition Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
JSPrismarine/JSPrismarine#4178 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día