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

Use environment options to create RRActivityInvocationCache #520

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

jmortlock
Copy link
Contributor

What was changed

For the ActivityMocker invocation cache a hard-coded address was used for the roadrunner RPC settings, in certain scenarios it is desirable to change it. This is inline with other parts of the code that set the RPC address.

Why?

On my local PC i am running temporal/roadrunner combination for local development purposes
For PHPUnit tests i am spinning up the temporal-test-server (for the time shifting ability) and another roadrunner which connects to this temporal server. The RPC settings on the second roadrunner need to be different to not clash with the first process.

Checklist

  1. Closes

  2. How was this tested:
    Tested by making changes locally

  3. Any docs updates needed?
    None

Copy link

vercel bot commented Oct 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
php ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 7:59am

@jmortlock
Copy link
Contributor Author

Not sure if the test failures are related to the change? in theory the environment returns the same value if the envvar is not set so there should be no real change in behaviour.

@roxblnfk
Copy link
Collaborator

Not sure if the test failures are related to the change?

This is not related to the changes 👌 The tests pass successfully but sometimes end with a wrong code. It's something Windows-specific that still needs to be investigated #501

@roxblnfk roxblnfk changed the title Caches uses RoadRunner RPC cache setting from the environment Use environment options to create RRActivityInvocationCache Oct 28, 2024
@roxblnfk roxblnfk merged commit 14f69e9 into temporalio:master Oct 28, 2024
48 checks passed
@roxblnfk roxblnfk added this to the 2.11.1 milestone Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants