Skip to content

[Bug] startTemporalTestServer checks for running temporal server instance #727

@zoltan-schwarz

Description

@zoltan-schwarz

What are you really trying to do?

I'm trying to call startRoadRunner(), with 'rr serve -c tests/.rr.test.yaml' parameter. The temporal server is already running. It is defined in a docker-compose.yml, and started by the time.

Describe the bug

The startRoadRunner checks if the temporal server is running. But since the startTemporalServer()
or the startTemporalTestServer() is not called, both member variables are null. Therefore the check at the beginning of the startTemporalTestServer() terminates.

                                                                                                                        
 [ERROR] Temporal server is not running. Please start it before starting RoadRunner.                                    
                                                                                                                        

I do not need the startTemporalServer(), nor the startTemporalTestServer() because when I spin up the docker containers it starts the temporal server.

I think it's incorrect to assume that the temporal server is started using the Environment class. Right now I'm on AARM64 Mac, I was trying to use the test server - which downloads the binary - but after many unssuccessful trial, I stumbled upon the suggestion to use the docker image.

Minimal Reproduction

  temporal-test-server:
    container_name: temporal-test-server
    image: temporalio/temporal:latest
    command: server start-dev --ip 0.0.0.0 --namespace test
    ports:
      - 8233:8233
    expose:
      - 7233
      - 8233
    networks:
      - temporal-network

When running the tests, in the bootstrap.php start the Roadrunner.

Environment/Versions

  • OS, Temporal version are irrelevant in this matter I think. Important is to have this in the dev environment:

Additional context

Previously, using v2.16 SDK, this did not occur. With the upgrade to v2.17 this issue came.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions