Skip to content

Commit

Permalink
cat logs
Browse files Browse the repository at this point in the history
  • Loading branch information
typotter committed Nov 5, 2024
1 parent d7b3581 commit 4f7cce6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ship-test-api-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build SDK test runner

on:
workflow_dispatch:
push:

env:
VERSION: 1.0.0
Expand Down
1 change: 0 additions & 1 deletion package-testing/php-sdk-relay/container-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions package-testing/sdk-test-runner/test-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 4f7cce6

Please sign in to comment.