Git Product home page Git Product logo

Comments (6)

jost-s avatar jost-s commented on June 12, 2024

@guillemcordoba Does this happen on your local machine or on a CI pipeline?

from tryorama.

guillemcordoba avatar guillemcordoba commented on June 12, 2024

Local machine... Although I think I have seen it fail on CI as well, if I find the action run I'll add it here.

from tryorama.

jost-s avatar jost-s commented on June 12, 2024

I'm having trouble getting to a working scaffolded project - see the issues.

The last one that I'm stuck at is running the tests using

$ pnpm test

> peter-dev@ test /Users/jost/Desktop/holochain/scaffolded-tryorama/peter
> pnpm run build:happ && nix flake check -L && pnpm -F tests test


> peter-dev@ build:happ /Users/jost/Desktop/holochain/scaffolded-tryorama/peter
> nix build -L .#peter.meta.debug -o workdir/peter-debug.happ

warning: Git tree '/Users/jost/Desktop/holochain/scaffolded-tryorama/peter' is dirty
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'peter'
         whose name attribute is located at /nix/store/j10523yhkcc34478azkgcl70yzcx6j2j-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'peter'

         at /nix/store/j10523yhkcc34478azkgcl70yzcx6j2j-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'hans' missing

       at /nix/store/j0ziw7wdvr1y1jgzg48zdafdskx4s1j7-source/happ.nix:23:18:

           22|           # This overrides all the "bundled" properties for the hApp manifest
           23|           hans = self'.packages.hans;
             |                  ^
           24|         };
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Test failed. See above for more details.

Must be happening because I don't have the hc-infra pnpm.

from tryorama.

jost-s avatar jost-s commented on June 12, 2024

I still couldn't create the reproduction, but #199 should fix this issue.

from tryorama.

guillemcordoba avatar guillemcordoba commented on June 12, 2024

Still happening for me with holochain v0.3.0-beta-dev.45 and tryorama v0.16.0-dev.3.

# lair-keystore running #


stdout | src/all-posts.test.ts > create a Post and get all posts
17:29:11 [Tryorama - Local Conductor] info: # lair-keystore connection_url # unix:///tmp/nix-shell.ci3Bc2/zIbpVEdh8y2xESpsRVCmU/ks/socket?k=ZgubSwkBbIoMz_hZzXKV9khh54h3DSiCuYmJ8eCE2H4 #
# lair-keystore running #


stdout | src/all-posts.test.ts > create a Post and get all posts
17:29:11 [Tryorama - Local Conductor] info: # lair-keystore connection_url # unix:///tmp/nix-shell.ci3Bc2/Pm0Kzn3d_5y3GynfBusLh/ks/socket?k=z_4z8pmZ2xQBlFx5Z1jMu75U-P4cNDmuBlHUXAHuMmY #
# lair-keystore running #


stdout | src/all-posts.test.ts > create a Post and get all posts
17:29:11 [Tryorama - Local Conductor] info:
Conductor ready.


 ✓ src/comment.test.ts (4) 73320ms
 ✓ src/post.test.ts (4) 73151ms
 ✓ src/like.test.ts (3) 19057ms
 ✓ src/post-to-likes.test.ts (1) 13878ms
 ✓ src/comment-to-likes.test.ts (1) 23894ms
 ✓ src/certificate-to-likes.test.ts (1) 13058ms
 ✓ src/certificate.test.ts (2) 25660ms
 ✓ src/creator-to-posts.test.ts (1) 61883ms
 ✓ src/posts-by-author-entry-hash.test.ts (1) 13826ms
 ✓ src/posts-by-author.test.ts (1) 4808ms
 ✓ src/all-posts-entry-hash.test.ts (1) 13833ms
 ✓ src/all-posts.test.ts (1) 12829ms

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Vitest caught 15 unhandled errors during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/comment-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Comment to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
internal_error: Conductor returned an error while using a ConductorApi: CellMissing(CellId(DnaHash(uhC0kZGtEN-5Q8gK2vYQnTcQiUQiNc3ofixB7veSQ6eBG1XeLB3pD), AgentPubKey(uhCAktRT7eMP7pnTlQIaf5LFew7-Y_kzjB_F44XCcXZv2yFr5v-mP)))
 ❯ catchError ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/common.js:38:23
 ❯ processTicksAndRejections node:internal/process/task_queues:95:5
 ❯ AppWebsocket.callZome ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/common.js:13:22
 ❯ fetch ../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@holochain-open-dev/stores/src/holochain.ts:595:29

This error originated in "src/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
internal_error: Conductor returned an error while using a ConductorApi: CellMissing(CellId(DnaHash(uhC0kvvJnliscgHnVdjfO6KqREfgabNDW5u1gOIAPSe81qJtFUUYt), AgentPubKey(uhCAkmyyGU5Vli7e-G29ACNj5d-cLhpj8e-1u9AdZF-jPoepPlDpE)))
 ❯ catchError ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/common.js:38:23
 ❯ processTicksAndRejections node:internal/process/task_queues:95:5
 ❯ AppWebsocket.callZome ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/common.js:13:22
 ❯ fetch ../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@holochain-open-dev/stores/src/holochain.ts:595:29

This error originated in "src/posts-by-author.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/all-posts-entry-hash.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts entry hash". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@[email protected]/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 Test Files  12 passed (12)
      Tests  21 passed (21)
     Errors  15 errors
   Start at  17:23:33
   Duration  349.53s (transform 70ms, setup 0ms, collect 226ms, tests 349.20s, environment 0ms, prepare 33ms)

/tmp/posts-open-dev/posts/tests:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  tests@ test: `vitest run`
Exit status 1

In my experience, this does not happen if I run tryorama tests of only one file, only happens with multiple files, which is a long execution time.

from tryorama.

jost-s avatar jost-s commented on June 12, 2024

So is it vitest related? Has this ever worked?

from tryorama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.