Tool-layer tests fail when DirectShow device enumeration hangs
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, typescript
Direzione di ricerca
Inizia dalla tabella dei casi e dalla gestione dei test saltati in src/__tests__/integration/toolLayer.test.ts, soprattutto dai casi list_audio_devices e list_video_devices. Confronta le loro aspettative con i casi già saltati e con il ramo winOnly. Contrassegna come saltata un’enumerazione DirectShow che si blocca oppure accetta il relativo errore di timeout documentato, quindi esegui la suite dei test del livello degli strumenti; il lavoro è completato quando questi casi non falliscono più sulle macchine in cui l’enumerazione si blocca.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 4
- Merge medio
- 3g 4h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/screencast-mcp
-
dependencies effort: small good first issue priority: low
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
TMHSDigital/screencast-mcp#509 ·
I maintainer di solito rispondono entro 1 giorno
-
dependencies effort: small good first issue priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/screencast-mcp#490 ·
I maintainer di solito rispondono entro 1 giorno
-
ci effort: small priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/screencast-mcp#460 ·
I maintainer di solito rispondono entro 1 giorno
-
effort: medium help wanted priority: low testing
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
TMHSDigital/screencast-mcp#503 ·
I maintainer di solito rispondono entro 1 giorno
-
effort: medium priority: low tech-debt
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
TMHSDigital/screencast-mcp#502 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/screencast-mcp
Issue simili
-
from-review tech-debt testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
blamechris/chroxy#9520 ·
I maintainer di solito rispondono entro 1 giorno
-
area:web complexity:S priority:P2 type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nahuelcostac/agent-hub#104 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
snaglet-org/snaglet#78 ·
I maintainer di solito rispondono entro 1 giorno
-
agent/guide documentation help wanted stage/010-actionable
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
kubestellar/console-marketplace#1101 ·
I maintainer di solito rispondono entro 1 giorno
-
Java Edition Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JSPrismarine/JSPrismarine#4178 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno