Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP #448

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft

WIP #448

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/kserve/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion test/scripts/gh-actions/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ else
fi

PARALLELISM="${2:-1}"
MY_PATH=$(dirname "$0")
PROJECT_ROOT=$MY_PATH/../../../
echo $PROJECT_ROOT
source python/kserve/.venv/bin/activate
pushd test/e2e >/dev/null
pytest -m "$1" --ignore=qpext --log-cli-level=INFO -n $PARALLELISM --dist worksteal
echo "**** collect ****"
pytest --collect-only
echo "***** TEST ****"
pytest $PROJECT_ROOT/test/e2e -vvv -s --full-trace --cache-clear --setup-show -m "$1" --ignore=qpext --log-cli-level=DEBUG -n $PARALLELISM --dist no
sleep 30m
popd
echo "Done!"
19 changes: 11 additions & 8 deletions test/scripts/openshift-ci/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ pushd $PROJECT_ROOT >/dev/null
./test/scripts/gh-actions/check-poetry-lockfile.sh
popd
pushd $PROJECT_ROOT/python/kserve >/dev/null
poetry install --with=test --no-interaction
poetry install -v --with=test --no-interaction
popd
echo "HERE"

# Install KServe stack
if [ "$1" != "raw" ]; then
Expand Down Expand Up @@ -159,11 +160,13 @@ oc annotate servingruntimes -n kserve-ci-e2e-test --all serving.knative.openshif

echo "Run E2E tests: $1"
pushd $PROJECT_ROOT >/dev/null
# Note: The following images are set by openshift-ci. Uncomment if you are running on your own machine.
# export CUSTOM_MODEL_GRPC_IMG_TAG=kserve/custom-model-grpc:latest
# export IMAGE_TRANSFORMER_IMG_TAG=kserve/image-transformer:latest

export GITHUB_SHA=$(git rev-parse HEAD)
export CI_USE_ISVC_HOST="1"
./test/scripts/gh-actions/run-e2e-tests.sh "$1"
# Note: The following images are set by openshift-ci. Uncomment if you are running on your own machine.
#export CUSTOM_MODEL_GRPC_IMG_TAG=kserve/custom-model-grpc:latest
#export IMAGE_TRANSFORMER_IMG_TAG=kserve/image-transformer:latest

export GITHUB_SHA=$(git rev-parse HEAD)
export CI_USE_ISVC_HOST="1"
#pytest $PROJECT_ROOT/test/e2e/predictor/test_triton.py::test_triton --ignore=qpext --log-cli-level=INFO
./test/scripts/gh-actions/run-e2e-tests.sh "$1"
oc get pods -n openshift-serverless -o json
popd
Loading