Skip to content

Commit

Permalink
ci: fix poetry in integration test (#16394)
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan authored Apr 19, 2024
1 parent db02083 commit accec49
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions ci/scripts/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ shift $((OPTIND -1))

echo "export INTEGRATION_TEST_CASE=${case}" > env_vars.sh

echo "--- clean up docker"
echo "~~~ clean up docker"
if [ $(docker ps -aq |wc -l) -gt 0 ]; then
docker rm -f $(docker ps -aq)
fi
docker network prune -f
docker volume prune -f

echo "--- ghcr login"
echo "~~~ ghcr login"
echo "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin

echo "--- case: ${case}, format: ${format}"
echo "+++ set RW_IMAGE"

if [[ -n "${RW_IMAGE_TAG+x}" ]]; then
export RW_IMAGE="ghcr.io/risingwavelabs/risingwave:${RW_IMAGE_TAG}"
Expand All @@ -47,18 +47,24 @@ if [ "${BUILDKITE_SOURCE}" == "schedule" ]; then
echo Docker image: "$RW_IMAGE"
fi

if [ -z "${RW_IMAGE+x}" ]; then
echo "RW_IMAGE is not set. The image defined in docker-compose.yml will be used."
fi

echo "--- case: ${case}, format: ${format}"

if [ "${case}" == "client-library" ]; then
cd integration_tests/client-library
python3 client_test.py
exit 0
fi

echo "--- install postgresql"
echo "~~~ install postgresql"
sudo yum install -y postgresql15

echo "--- install poetry"
echo "~~~ install poetry"
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.8.0 python3 -

export PATH=$PATH:$HOME/.local/bin


echo "--- download rwctest-key"
Expand Down

0 comments on commit accec49

Please sign in to comment.