Two examples sit out a 60-second director timeout, so pnpm examples takes 2m41

Aperta
#54 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, nodejs

Direzione di ricerca

Start by reproducing with pnpm examples and running node examples/05-fork.js alone. Read modules/director.js around line 248 to see how director.timeout aborts a pick, then trace how examples/05-fork.js and examples/03-restart-loses-nothing.js set up threads and reach the director. The chooser path is central: 05 reports that the chooser answered no JSON. Done means both examples finish promptly after their events land, with no 60-second abort or chooser timeout in the output.

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

Descrizione

scout

pnpm examples is the first thing a newcomer runs. Two examples take about 70 seconds each and the rest finish in single digits, though 6d8ef89 made the suite "4x faster". Right looks like each example finishing as soon as its events land, with no wait on a chooser that can't answer.

Evidence:

  • pnpm examples → # 05-fork.js 72.3s and # 03-restart-loses-nothing.js 69.4s; the whole run was 161.4s. The next slowest is 33 at 20s.
  • Their output holds director: thread 5: The operation was aborted due to timeout (03) and director: thread 5: the chooser answered no JSON (05). Re-running node examples/05-fork.js alone: real 1m16.6s, same director lines.
  • modules/director.js:248 aborts a pick after director.timeout, 60 seconds by default; 05 puts a second person (ana) in a thread with an echo agent, which is what calls the director.
Lingua principale
JavaScript
Stelle
1
Fork
1
Merge medio
14m
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 oskarrough/ade

Tutte le issue di oskarrough/ade

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.