Extend test harness to support envconfig#2163
Draft
THardy98 wants to merge 1 commit into
Draft
Conversation
THardy98
force-pushed
the
feat/integration-tests-on-cloud
branch
from
July 19, 2026 20:16
1c0e0db to
9421400
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
Add opt-in envconfig support to the shared TypeScript integration-test harness.
When
TEMPORAL_TEST_ENV_CONFIG_SERVERis truthy, the harness loads the server address, namespace, API key, TLS configuration, and gRPC metadata through@temporalio/envconfig. These settings are propagated to client, worker, and additional native connections.When the opt-in is absent, existing behavior is preserved:
TEMPORAL_SERVICE_ADDRESSselects the legacy existing-server path, otherwise the harness starts a local server.This PR intentionally does not migrate any existing integration tests to envconfig. It adds dedicated integration coverage for the new capability only.
Why?
This enables integration tests to target arbitrary Temporal server environments, including local, staging, release, and Temporal Cloud environments.
This is the first SDK implementation of the approach intended to be replicated across Temporal SDKs.
Part of temporalio/features#851
How was this tested?
Documentation
No user-facing documentation changes are required. This PR changes internal integration-test infrastructure.