diff --git a/.buildkite/it/serverless-pipeline.yml b/.buildkite/it/serverless-pipeline.yml index d44d18ebf..d346343f6 100644 --- a/.buildkite/it/serverless-pipeline.yml +++ b/.buildkite/it/serverless-pipeline.yml @@ -1,5 +1,6 @@ agents: - image: "docker.elastic.co/ci-agent-images/es-perf/buildkite-agent-python" + provider: "gcp" + image: family/core-ubuntu-2204 steps: - label: "Run IT Serverless tests" @@ -14,6 +15,28 @@ steps: env_var: "RALLY_IT_SERVERLESS_API_KEY" command: | set -eo pipefail - apt-get update && apt-get -y install dnsutils - python3 -m pip install nox - nox -s it_serverless + + echo "--- System dependencies" + + PYTHON_VERSION="3.11" + sudo add-apt-repository --yes ppa:deadsnakes/ppa + 5 sudo apt-get update + 5 sudo apt-get install -y \ + "python${PYTHON_VERSION}" "python${PYTHON_VERSION}-dev" "python${PYTHON_VERSION}-venv" \ + dnsutil + + echo "--- Run IT serverless test :pytest:" + + export RALLY_HOME=$HOME + export THESPLOG_FILE="${THESPLOG_FILE:-${RALLY_HOME}/.rally/logs/actor-system-internal.log}" + # this value is in bytes, the default is 50kB. We increase it to 200kiB. + export THESPLOG_FILE_MAXSIZE=${THESPLOG_FILE_MAXSIZE:-204800} + # adjust the default log level from WARNING + export THESPLOG_THRESHOLD="INFO" + export TERM=dumb + export LC_ALL=en_US.UTF-8 + + "python${PYTHON_VERSION}" -m venv .venv + source .venv/bin/activate + pip install nox + nox -s "it_serverless"