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

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, nodejs

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
JavaScript
Stars
1
Forks
1
Avg merge
14m
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from oskarrough/ade

All issues in oskarrough/ade

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.