Repository navigation
Retry Temporal test / dev server startup - #198
Merged
philippzagar merged 1 commit intoOct 13, 2026
Merged
Conversation
FranzBusch
reviewed
Oct 13, 2026
FranzBusch
left a comment
Member
There was a problem hiding this comment.
Generally looks good but the CI isn't happy about this
Contributor
Author
Seems like some dependency declaration stuff that only now surfaces (for whatever reason), let me fix that |
Contributor
Author
This seems to be the issue, it's from upstream swift-distributed-tracing: apple/swift-distributed-tracing#240 This breaks our CI, especially as we build with |
Contributor
Author
|
Fixed here: #199 |
philippzagar
force-pushed
the
retry-ephemeral-server-start
branch
from
October 13, 2026 09:43
83e0478 to
8566869
Compare
philippzagar
enabled auto-merge (squash)
October 13, 2026 09:44
FranzBusch
approved these changes
Oct 13, 2026
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.
Motivation
TemporalTestServerstarts the dev server (and the time-skipping test server) through Temporal Core. The first start on a machine downloads the Temporal CLI. Core then spawns the CLI and gives it a hardcoded 5 seconds to accept connections before killing it and failing (https://github.com/temporalio/sdk-rust/blob/9cb90f5a92c75167fe690a39c1ffd91f71a0fdfd/crates/sdk-core/src/ephemeral_server/mod.rs#L320). On a loaded host, for example CI running several suites that each start their own server, that window sometimes passes before the server is up:The timeout can't be configured from Swift, as it is hardcoded in the Core SDK, see the following code + TODO in the Rust Core:
The other SDKs built on Core (Python, TS, .NET, Ruby) have the same 5 s limit and don't retry. Go and Java start the server themselves and wait up to 60 s.
Modifications
Result
Test suites no longer fail when a server misses Core's 5-second window. Starts that fail permanently, like a failed CLI download, now surface after the retries are used up rather than right away. This is a deliberate choice, as we don't want to parse and interpret the String-based error message that we get from Temporal Core. However, all of these permanent failures fail quickly and the retries are therefore retried quickly.
Test Plan
Existing server-dependent tests exercise the real start path.