diff --git a/.ci/run-repository.sh b/.ci/run-repository.sh index b10308849..4c9173b6b 100755 --- a/.ci/run-repository.sh +++ b/.ci/run-repository.sh @@ -46,6 +46,12 @@ if [[ "$TASK_TYPE" == "test" ]]; then --name opensearch-py-ml-test-runner \ opensearch-project/opensearch-py-ml \ nox -s "test-${PYTHON_VERSION}(pandas_version='${PANDAS_VERSION}')" + + # Get and print the logs for the "instance" container + container_name="instance" + logs=$(docker logs $container_name) + echo -e "\033[1m>>>>> Container Logs for $container_name >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" + echo "$logs" docker cp opensearch-py-ml-test-runner:/code/opensearch-py-ml/junit/ ./junit/ docker rm opensearch-py-ml-test-runner diff --git a/.ci/run-tests b/.ci/run-tests index a21d2e94b..959abaf21 100755 --- a/.ci/run-tests +++ b/.ci/run-tests @@ -33,8 +33,3 @@ DETACH=true bash $script_path/run-opensearch.sh echo -e "\033[1m>>>>> Repository specific tests >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" bash $script_path/run-repository.sh -# Get and print the logs for the "instance" container -container_name="instance" -logs=$(docker logs $container_name) -echo -e "\033[1m>>>>> Container Logs for $container_name >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" -echo "$logs" \ No newline at end of file