sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

Use temporal.download server to download `temporalite` or `temporal-test-sever`

Open roxblnfk opened this issue 2 years ago • 0 comments

To add yet another test-server downloader

We have https://temporal.download now for downloading test server. Specifically https://temporal.download/{artifact_name}/{version_name} where {artifact_name} is temporalite or temporal-test-sever (i.e. the Java test server), and {version_name} is default or a version name. You should also pass platform, arch, sdk-name, and sdk-version query parameters to this URL. The URL will provide the path to the archive and file in the archive for the binary.

For example, https://temporal.download/temporal-test-server/default?platform=windows&arch=amd64&sdk-name=sdk-python&sdk-version=1.0.0 returns:

{"archiveUrl":"https://temporal.download/assets/temporalio/sdk-java/releases/download/v1.17.0/temporal-test-server_1.17.0_windows_amd64.zip","fileToExtract":"temporal-test-server_1.17.0_windows_amd64/temporal-test-server.exe"}

You can see some logic that uses this at https://github.com/temporalio/sdk-core/blob/106b09f9db76bf3f7372de8da3f23e8194eecba1/core/src/ephemeral_server/mod.rs and https://github.com/temporalio/features/blob/ebc86a8ea07f029bee0d3f07fa841de31a07402c/harness/go/temporalite/temporalite.go#L119. We will be moving away from Temporalite of course. I suspect we will add "local server" (i.e. temporalite/temporal-cli) and "test server" (i.e. java test server) download-extract-run logic to the Go SDK in the near future. cc bergundy

Originally posted by cretz in https://github.com/temporalio/sdk-php/issues/280#issuecomment-1413704850

roxblnfk avatar Feb 02 '23 13:02 roxblnfk