temporalio / cli

Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal
https://docs.temporal.io/cli
MIT License
243 stars 32 forks source link

[Bug] Cannot execute TestWorkflowEnvironment on linux due to issue with CLI #542

Closed johnmorr-citrix closed 2 months ago

johnmorr-citrix commented 2 months ago

Using the @temporalio/testing library from NPM, we started having failed tests on our linux-based machines about a few hours ago. The testing library is failing to download and start the temporal server. This appears to coincide with the most recent CLI release.

Describe the bug

When running a @temporalio/testing TestWorkflowEnvironment, we are getting errors starting:

   Failed to connect before the deadline

Environment/Versions

Ubuntu 22.04.1 LTS

Appears to work on MacOS.

Additional context

We have made NO changes on our end. It worked 7 hours ago. And stopped working on all linux dev boxes after that time. The latest CLI release appears to be related.

cretz commented 2 months ago

Can you provide the exact call to createLocal you are making? There is a log option that changed (we don't support fatal anymore). I wonder if it's one of the options causing this issue. You may also try deleting it out of /tmp (it'll start with temporal- IIRC) to make sure it re-downloads.

In the meantime, you should be able to pass { server: { executable: { version: "v0.11.0" } } } to pin to the older version.

mjameswh commented 2 months ago

We identified the root cause of this issue (see #544). Closing this ticket in favor of the other, more specific one.