diff --git a/.github/workflows/ship-test-api-image.yml b/.github/workflows/ship-test-api-image.yml index 25ee4e37..8dbc6260 100644 --- a/.github/workflows/ship-test-api-image.yml +++ b/.github/workflows/ship-test-api-image.yml @@ -2,7 +2,6 @@ name: Build SDK test runner on: workflow_dispatch: - push: env: VERSION: 1.0.0 diff --git a/package-testing/php-sdk-relay/container-run.sh b/package-testing/php-sdk-relay/container-run.sh index 834bbf53..8625a29d 100755 --- a/package-testing/php-sdk-relay/container-run.sh +++ b/package-testing/php-sdk-relay/container-run.sh @@ -13,6 +13,5 @@ docker run -p $SDK_RELAY_PORT:$SDK_RELAY_PORT \ -e SDK_REF \ -e SDK_RELAY_PORT \ --name php-relay \ - -d \ -t Eppo-exp/php-sdk-relay:$VERSION && \ echo "Container running" diff --git a/package-testing/sdk-test-runner/test-sdk.sh b/package-testing/sdk-test-runner/test-sdk.sh index c10a55d0..7a88b04b 100755 --- a/package-testing/sdk-test-runner/test-sdk.sh +++ b/package-testing/sdk-test-runner/test-sdk.sh @@ -129,8 +129,10 @@ case "$command" in pushd ../$SDK_DIR if [ -f container-run.sh ]; then + echo " ... Starting SDK Relay Container" ./container-run.sh >> ${RUNNER_DIR}/logs/sdk.log 2>&1 & elif [ -f build-and-run.sh ]; then + echo " ... Starting SDK Relay Build Script" ./build-and-run.sh >> ${RUNNER_DIR}/logs/sdk.log 2>&1 & else exit_with_message "SDK Relay does not have a launch script in $SDK_DIR" @@ -143,6 +145,8 @@ case "$command" in echo_yellow " ... Waiting to verify server is up" wait_for_url http://${SDK_RELAY_HOST}:${SDK_RELAY_PORT} if [[ $? -eq 0 ]]; then + echo_yellow "Relay Server Logs" + cat ${RUNNER_DIR}/logs/sdk.log exit_with_message " ... SDK Relay server failed to start" fi echo_green " ... SDK Relay server has started"