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

Flaky tests #252

Open
c12i opened this issue Feb 11, 2025 · 4 comments
Open

Flaky tests #252

c12i opened this issue Feb 11, 2025 · 4 comments
Assignees

Comments

@c12i
Copy link

c12i commented Feb 11, 2025

Tryorama tests are currently flaky with the following error being produced for the failed tests

error occurred during test run: HolochainError [ConnectionError]: could not connect to Holochain Conductor API at ws://localh
ost:59225/ - AggregateError
    at WebSocket.<anonymous> (file:///private/tmp/forum/node_modules/.pnpm/@[email protected][email protected]/no
de_modules/@holochain/client/lib/api/client.js:42:24)
    at callListener (/private/tmp/forum/node_modules/.pnpm/[email protected][email protected]/node_modules/ws/lib/event-target.js:290
:14)
    at WebSocket.onError (/private/tmp/forum/node_modules/.pnpm/[email protected][email protected]/node_modules/ws/lib/event-target.j
s:230:9)
    at WebSocket.emit (node:events:518:28)
    at emitErrorAndClose (/private/tmp/forum/node_modules/.pnpm/[email protected][email protected]/node_modules/ws/lib/websocket.js:1
041:13)
    at ClientRequest.<anonymous> (/private/tmp/forum/node_modules/.pnpm/[email protected][email protected]/node_modules/ws/lib/websoc
ket.js:881:5)
    at ClientRequest.emit (node:events:518:28)
    at emitErrorEvent (node:_http_client:101:11)
    at Socket.socketErrorListener (node:_http_client:504:5)
    at Socket.emit (node:events:518:28)

stdout | src/forum/posts/all-posts-entry-hash.test.ts > create a Post and get all posts entry hash
11:27:15 [Tryorama - Local Conductor] info: 2025-01-31T08:27:15.979921Z ERROR holochain::conductor::interface::websocket: cra
tes/holochain/src/conductor/interface/websocket.rs:200: error=Websocket closed: No connection

Versions

How to Reproduce

  • Scaffold the forum example app with hc-scaffold (0.4 or 0.5) using
hc scaffold example forum
cd forum
  • Enter nix shell and install dependencies
nix develop
npm installl
  • Run test suite; you will notice that the tests might fail or pass right away with the error above
npm test
@c12i c12i added this to Holochain Feb 11, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Holochain Feb 11, 2025
@jost-s jost-s self-assigned this Feb 11, 2025
@jost-s jost-s moved this from Backlog to In progress in Holochain Feb 11, 2025
@jost-s
Copy link
Contributor

jost-s commented Feb 11, 2025

I have not yet been able to reproduce the issue after running all tests 15 times on a Linux machine, using v0.4.

@jost-s
Copy link
Contributor

jost-s commented Feb 11, 2025

Error reproducible on macOS with v0.5.

@jost-s
Copy link
Contributor

jost-s commented Feb 11, 2025

No error on Linux under v0.5.

Error also happens under Linux with 0.5

@jost-s
Copy link
Contributor

jost-s commented Feb 11, 2025

And error happens under macOS v0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

2 participants