Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode debug changes cli's test/demo/index.test.js behavior #2702

Closed
erights opened this issue Jan 27, 2025 · 3 comments · Fixed by #2704
Closed

vscode debug changes cli's test/demo/index.test.js behavior #2702

erights opened this issue Jan 27, 2025 · 3 comments · Fixed by #2704
Assignees
Labels
bug Something isn't working

Comments

@erights
Copy link
Contributor

erights commented Jan 27, 2025

Describe the bug

In the #2701 branch https://github.com/endojs/endo/tree/markm-fix2700-ignore-safe-asynchook-extras , which I hope fixes #2700 so that is no longer an issue, when I run the following in packages/cli

$ yarn test test/demo/index.test.js

in a normal shell, I get a normal successful output.

$ yarn test test/demo/index.test.js 

  ✔ trivial (695ms)
  ✔ counter-example (3.7s)
  ✔ doubler-agent (5s)
  ✔ sending-messages (4.2s)
  ✔ names-in-transit (4.6s)
  ✔ mailboxes-are-symmetric (5.1s)
  ✔ confined-script (852ms)
  ─

  7 tests passed

But when I run it in the vscode JavaScript Debug Terminal, the beginning of the output I get is

$ yarn test test/demo/index.test.js 
Debugger attached.
Debugger attached.
  ⚠ The timeout option has been disabled to help with debugging.

  ✔ trivial (7m 20.1s)
  ✘ [fail]: counter-example {
    "expectation": {
      "stdout": "Object [Alleged: Counter] {}"
    },
    "result": {
      "command": "endo make counter.js --name counter",
      "escapedCommand": "endo make counter.js --name counter",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 326968.758875,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: Counter] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: Counter] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

Note the "Debugger attached.\nWaiting for the debugger to disconnect" above. I have no idea if that is the problem, but it is likely the normal behavior of running subshells under the vscode JavaScript Debug Terminal

Steps to reproduce

Expected behavior

Platform environment

Additional context

Screenshots

@erights
Copy link
Contributor Author

erights commented Jan 27, 2025

After a more than 7 minutes, I finally got the rest of the output. The first line I saw at the same time that I saw the debugger exit. Next you see that I typed a control-C, whereupon the rest of the output showed up. It looks like it contains relevant diagnostics. But "address already in use" may merely be symptomatic of running the non-debug version of the test as I was waiting for more output beyond that reported above.

  ✘ [fail]: doubler-agent Rejected promise returned by test

^C  
  ✘ Exiting due to SIGINT

  4 tests were pending in test/demo/index.test.js

  ◌ sending-messages
  ◌ names-in-transit
  ◌ mailboxes-are-symmetric
  ◌ confined-script

  ─

  counter-example

  {
    "expectation": {
      "stdout": "Object [Alleged: Counter] {}"
    },
    "result": {
      "command": "endo make counter.js --name counter",
      "escapedCommand": "endo make counter.js --name counter",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 326968.758875,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: Counter] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: Counter] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

  Difference (- actual, + expected):

  - `Debugger attached.␊
  - Waiting for the debugger to disconnect...`
  + `

  Error
      at file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/ava/lib/assert.js:309:16
      at matchExpecation (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:16:55)
      at testCommand (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:27:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async section (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/demo/counter-example.js:6:3)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5



  doubler-agent

  Rejected promise returned by test. Reason:

  ExecaError {
    command: 'endo start',
    cwd: '/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo',
    durationMs: 627112.176667,
    escapedCommand: 'endo start',
    exitCode: 1,
    failed: true,
    ipcOutput: [],
    isCanceled: false,
    isForcefullyTerminated: false,
    isGracefullyCanceled: false,
    isMaxBuffer: false,
    isTerminated: false,
    pipedFrom: [],
    shortMessage: 'Command failed with exit code 1: endo start',
    stderr: `Debugger attached.␊
    (Error#1)␊
    Error#1: listen EADDRINUSE: address already in use /Users/markmiller/Library/Application Support/Endo/captp0.sock␊
      at ChildProcess.<anonymous> (file:///Users/markmiller/src/ongithub/endojs/endo/packages/daemon/index.js:132:18)␊
      at ChildProcess.emit (node:events:517:28)␊
      at emit (node:internal/child_process:944:14)␊
      at process.processTicksAndRejections (node:internal/process/task_queues:83:21)␊
    ␊
    Waiting for the debugger to disconnect...`,
    stdio: [
      undefined,
      '',
      `Debugger attached.␊
      (Error#1)␊
      Error#1: listen EADDRINUSE: address already in use /Users/markmiller/Library/Application Support/Endo/captp0.sock␊
        at ChildProcess.<anonymous> (file:///Users/markmiller/src/ongithub/endojs/endo/packages/daemon/index.js:132:18)␊
        at ChildProcess.emit (node:events:517:28)␊
        at emit (node:internal/child_process:944:14)␊
        at process.processTicksAndRejections (node:internal/process/task_queues:83:21)␊
      ␊
      Waiting for the debugger to disconnect...`,
    ],
    stdout: '',
    timedOut: false,
    message: `Command failed with exit code 1: endo start␊
    ␊
    Debugger attached.␊
    (Error#1)␊
    Error#1: listen EADDRINUSE: address already in use /Users/markmiller/Library/Application Support/Endo/captp0.sock␊
      at ChildProcess.<anonymous> (file:///Users/markmiller/src/ongithub/endojs/endo/packages/daemon/index.js:132:18)␊
      at ChildProcess.emit (node:events:517:28)␊
      at emit (node:internal/child_process:944:14)␊
      at process.processTicksAndRejections (node:internal/process/task_queues:83:21)␊
    ␊
    Waiting for the debugger to disconnect...`,
  }

  ExecaError: Command failed with exit code 1: endo start
  
  Debugger attached.
  (Error#1)
  Error#1: listen EADDRINUSE: address already in use /Users/markmiller/Library/Application Support/Endo/captp0.sock
    at ChildProcess.<anonymous> (file:///Users/markmiller/src/ongithub/endojs/endo/packages/daemon/index.js:132:18)
    at ChildProcess.emit (node:events:517:28)
    at emit (node:internal/child_process:944:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
  
  Waiting for the debugger to disconnect...
      at getFinalError (file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/execa/lib/return/final-error.js:6:9)
      at makeError (file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/execa/lib/return/result.js:108:16)
      at getAsyncResult (file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/execa/lib/methods/main-async.js:167:4)
      at handlePromise (file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/execa/lib/methods/main-async.js:150:17)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Object.setup (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_daemon-context.js:13:5)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:12:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5

  ─

  2 tests failed

@erights
Copy link
Contributor Author

erights commented Jan 27, 2025

Running it fresh, thereby avoiding the "address already in use" problem, I now get the following, with no control-C needed. However, running it under the debugger takes amazing longer than running it normally.

cli(markm-use-no-trapping-shim)$ yarn test test/demo/index.test.js 
Debugger attached.
Debugger attached.
  ⚠ The timeout option has been disabled to help with debugging.

  ✔ trivial (44.6s)
  ✘ [fail]: counter-example {
    "expectation": {
      "stdout": "Object [Alleged: Counter] {}"
    },
    "result": {
      "command": "endo make counter.js --name counter",
      "escapedCommand": "endo make counter.js --name counter",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 21718.751459,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: Counter] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: Counter] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }
  ✘ [fail]: doubler-agent {
    "expectation": {
      "stdout": "Object [Alleged: EndoGuest] {}"
    },
    "result": {
      "command": "endo mkguest doubler-handle doubler-agent",
      "escapedCommand": "endo mkguest doubler-handle doubler-agent",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 8742.394667,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: EndoGuest] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: EndoGuest] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }
  ✘ [fail]: sending-messages {
    "expectation": {
      "stdout": "Object [Alleged: EndoGuest] {}"
    },
    "result": {
      "command": "endo mkguest alice alice-agent",
      "escapedCommand": "endo mkguest alice alice-agent",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 2881.585125,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: EndoGuest] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: EndoGuest] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }
  ✘ [fail]: names-in-transit {
    "expectation": {
      "stdout": {}
    },
    "result": {
      "command": "endo inbox --as alice-agent",
      "escapedCommand": "endo inbox --as alice-agent",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 2805.950209,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "1. \"HOST\" sent \"Please enjoy this @counter.\" at \"2025-01-27T04:19:18.179Z\"",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "1. \"HOST\" sent \"Please enjoy this @counter.\" at \"2025-01-27T04:19:18.179Z\"",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }
  ✘ [fail]: mailboxes-are-symmetric {
    "expectation": {
      "stdout": {}
    },
    "result": {
      "command": "endo inbox",
      "escapedCommand": "endo inbox",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 2816.596583,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "0. \"doubler-handle\" requested \"a counter, suitable for doubling\" at \"2025-01-27T04:20:13.299Z\"\n1. sent \"alice\" \"Please enjoy this @doubler.\" at \"2025-01-27T04:20:27.509Z\"\n2. sent \"alice\" \"Please enjoy this @counter.\" at \"2025-01-27T04:20:36.350Z\"\n3. \"alice\" sent \"This is the @doubler you sent me.\" at \"2025-01-27T04:20:48.022Z\"",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "0. \"doubler-handle\" requested \"a counter, suitable for doubling\" at \"2025-01-27T04:20:13.299Z\"\n1. sent \"alice\" \"Please enjoy this @doubler.\" at \"2025-01-27T04:20:27.509Z\"\n2. sent \"alice\" \"Please enjoy this @counter.\" at \"2025-01-27T04:20:36.350Z\"\n3. \"alice\" sent \"This is the @doubler you sent me.\" at \"2025-01-27T04:20:48.022Z\"",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }
  ✘ [fail]: confined-script {
    "expectation": {
      "stdout": "Hello, World! [ 'a', 'b', 'c' ]\n42"
    },
    "result": {
      "command": "endo run runlet.js a b c",
      "escapedCommand": "endo run runlet.js a b c",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 5820.942625,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Hello, World! [ 'a', 'b', 'c' ]\n42",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Hello, World! [ 'a', 'b', 'c' ]\n42",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }
  ─

  counter-example

  {
    "expectation": {
      "stdout": "Object [Alleged: Counter] {}"
    },
    "result": {
      "command": "endo make counter.js --name counter",
      "escapedCommand": "endo make counter.js --name counter",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 21718.751459,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: Counter] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: Counter] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

  Difference (- actual, + expected):

  - `Debugger attached.␊
  - Waiting for the debugger to disconnect...`
  + `

  Error
      at file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/ava/lib/assert.js:309:16
      at matchExpecation (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:16:55)
      at testCommand (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:27:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async section (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/demo/counter-example.js:6:3)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5



  doubler-agent

  {
    "expectation": {
      "stdout": "Object [Alleged: EndoGuest] {}"
    },
    "result": {
      "command": "endo mkguest doubler-handle doubler-agent",
      "escapedCommand": "endo mkguest doubler-handle doubler-agent",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 8742.394667,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: EndoGuest] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: EndoGuest] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

  Difference (- actual, + expected):

  - `Debugger attached.␊
  - Waiting for the debugger to disconnect...`
  + `

  Error
      at file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/ava/lib/assert.js:309:16
      at matchExpecation (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:16:55)
      at testCommand (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:27:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async section (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/demo/doubler-agent.js:6:3)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5



  sending-messages

  {
    "expectation": {
      "stdout": "Object [Alleged: EndoGuest] {}"
    },
    "result": {
      "command": "endo mkguest alice alice-agent",
      "escapedCommand": "endo mkguest alice alice-agent",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 2881.585125,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Object [Alleged: EndoGuest] {}",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Object [Alleged: EndoGuest] {}",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

  Difference (- actual, + expected):

  - `Debugger attached.␊
  - Waiting for the debugger to disconnect...`
  + `

  Error
      at file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/ava/lib/assert.js:309:16
      at matchExpecation (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:16:55)
      at testCommand (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:27:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async section (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/demo/sending-messages.js:6:3)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5



  names-in-transit

  {
    "expectation": {
      "stdout": {}
    },
    "result": {
      "command": "endo inbox --as alice-agent",
      "escapedCommand": "endo inbox --as alice-agent",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 2805.950209,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "1. \"HOST\" sent \"Please enjoy this @counter.\" at \"2025-01-27T04:19:18.179Z\"",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "1. \"HOST\" sent \"Please enjoy this @counter.\" at \"2025-01-27T04:19:18.179Z\"",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

  Difference (- actual, + expected):

  - `Debugger attached.␊
  - Waiting for the debugger to disconnect...`
  + `

  Error
      at file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/ava/lib/assert.js:309:16
      at matchExpecation (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:16:55)
      at testCommand (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:27:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async section (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/demo/names-in-transit.js:9:3)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5



  mailboxes-are-symmetric

  {
    "expectation": {
      "stdout": {}
    },
    "result": {
      "command": "endo inbox",
      "escapedCommand": "endo inbox",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 2816.596583,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "0. \"doubler-handle\" requested \"a counter, suitable for doubling\" at \"2025-01-27T04:20:13.299Z\"\n1. sent \"alice\" \"Please enjoy this @doubler.\" at \"2025-01-27T04:20:27.509Z\"\n2. sent \"alice\" \"Please enjoy this @counter.\" at \"2025-01-27T04:20:36.350Z\"\n3. \"alice\" sent \"This is the @doubler you sent me.\" at \"2025-01-27T04:20:48.022Z\"",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "0. \"doubler-handle\" requested \"a counter, suitable for doubling\" at \"2025-01-27T04:20:13.299Z\"\n1. sent \"alice\" \"Please enjoy this @doubler.\" at \"2025-01-27T04:20:27.509Z\"\n2. sent \"alice\" \"Please enjoy this @counter.\" at \"2025-01-27T04:20:36.350Z\"\n3. \"alice\" sent \"This is the @doubler you sent me.\" at \"2025-01-27T04:20:48.022Z\"",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

  Difference (- actual, + expected):

  - `Debugger attached.␊
  - Waiting for the debugger to disconnect...`
  + `

  Error
      at file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/ava/lib/assert.js:309:16
      at matchExpecation (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:16:55)
      at testCommand (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:27:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async section (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/demo/mailboxes-are-symmetric.js:9:3)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5



  confined-script

  {
    "expectation": {
      "stdout": "Hello, World! [ 'a', 'b', 'c' ]\n42"
    },
    "result": {
      "command": "endo run runlet.js a b c",
      "escapedCommand": "endo run runlet.js a b c",
      "cwd": "/Users/markmiller/src/ongithub/endojs/endo/packages/cli/demo",
      "durationMs": 5820.942625,
      "failed": false,
      "timedOut": false,
      "isCanceled": false,
      "isGracefullyCanceled": false,
      "isTerminated": false,
      "isMaxBuffer": false,
      "isForcefullyTerminated": false,
      "exitCode": 0,
      "stdout": "Hello, World! [ 'a', 'b', 'c' ]\n42",
      "stderr": "Debugger attached.\nWaiting for the debugger to disconnect...",
      "stdio": [
        null,
        "Hello, World! [ 'a', 'b', 'c' ]\n42",
        "Debugger attached.\nWaiting for the debugger to disconnect..."
      ],
      "ipcOutput": [],
      "pipedFrom": []
    }
  }

  Difference (- actual, + expected):

  - `Debugger attached.␊
  - Waiting for the debugger to disconnect...`
  + `

  Error
      at file:///Users/markmiller/src/ongithub/endojs/endo/node_modules/ava/lib/assert.js:309:16
      at matchExpecation (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:16:55)
      at testCommand (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:27:9)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async section (file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/demo/confined-script.js:6:3)
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_with-context.js:13:7
      at async file:///Users/markmiller/src/ongithub/endojs/endo/packages/cli/test/_section.js:30:5

  ─

  6 tests failed
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
(1):cli(markm-use-no-trapping-shim)$ 

@erights
Copy link
Contributor Author

erights commented Jan 27, 2025

Would be fixed by #2704, as it says in its PR comment. I don't know why github has not done its usual thing and shown that connection here.

erights added a commit that referenced this issue Feb 6, 2025
@erights erights closed this as completed in 1bf94a1 Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants