Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🤖 tests: the extension.test.ts burst test times out on a busy host, and bun then does not exit

Aperta
#7,306 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
bun, typescript
Ambito
testing

Direzione di ricerca

Start with the burst test and its until() helper in vscode/src/extension.test.ts; run the reported Bun command under load to reproduce the timeout and observe whether the process exits. Trace the test’s wait and cleanup path to identify why a timeout leaves the process alive. Done when the burst test tolerates busy hosts and a timeout does not hang the test process.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

The test a burst of metadata events re-posts the list only when the projection changes in vscode/src/extension.test.ts sometimes hits its 5 s test timeout when the host is busy. After that failure, the bun process does not exit. A make test-unit run can then hang. This reproduces on main.

Runs

Command: bun test ./vscode/src/extension.test.ts ./scripts/perf/pageTimingCore.test.ts, capped at 120 s, load average about 8.

extension.test.ts from runs burst test timed out, then the process did not exit
main 2c4a5c444a 2 1
#7305 (only the onMetadata loop changes) 3 1

Each time the error lines were:

error: Test "a burst of metadata events re-posts the list only when the projection changes" timed out after 5000ms
(fail) chat view live workspace list and dock activity (#5109) > a burst of metadata events re-posts the list only when the projection changes [5000.99ms]

On #7305, the next test then failed with timed out waiting for the end of the burst from until() at vscode/src/extension.test.ts:96. The test's own 5 s until() timer lands in the next test.

What I know

  • The test builds 4,500 synthetic workspaces (vscode/src/extension.test.ts:513) and waits for 4 list posts with until(), which also has a 5 s timeout (:91-106, :538). The work fits in 5 s on an idle host and not always on a busy one.
  • I did not find what keeps the process alive after the timeout. A guess, not verified: the timed-out test skips its cleanup, so its subscription stays open.

Found while working on #7297 (#7305).


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $182.60

Lingua principale
TypeScript
Stelle
2.1k
Fork
140
Merge medio
5h 8m
PR unite (30g)
952

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/xum

Tutte le issue di coder/xum

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.