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 phone calls nodejs test #136

Open
dmitrii-ubskii opened this issue Jul 26, 2022 · 0 comments
Open

Flaky phone calls nodejs test #136

dmitrii-ubskii opened this issue Jul 26, 2022 · 0 comments

Comments

@dmitrii-ubskii
Copy link
Member

Description

//telecom/phone_calls/nodejs:test fails about 1 time out of 5.

Environment

  1. Where TypeDB server runs: grabl
  2. TypeDB version (and platform): 2.11.1
  3. TypeDB client: client-nodejs

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Run bazel test //telecom/phone_calls/nodejs:test --test_output=errors, a few times if necessary.

Expected Output

Passed test.

Actual Output

Failed test, for one of following reasons:

  • Unhandled promise rejection: TypeDBClientError: Error: 13 INTERNAL: [DBS05] Invalid Database Operation: Database with the name 'phone_calls_nodejs' has been deleted.
  • TypeDBClientError: [CLI7] Client Error: The database 'undefined' does not exist.

Additional information

See logs here: https://grabl.io/dmitrii-ubskii/typedb-examples/61d687c6085ae2f372635105623735841aa30ef1/build/1/performance/1/benchmark-phone-calls-nodejs-test/1/command.log

I initially thought it might be some async weirdness with the cleanup step of some tests being executed after another had already started, but as far as I can tell, jasmine handles that properly. In the same vein, I also considered that perhaps the global variables aren't always fully initialised by the time the tests are executed, but moving the initialisation into the beforeEach() step didn't seem to affect anything.

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

No branches or pull requests

2 participants