-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add integration tests that ensure quickstart works #167
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much needed e2e test!
test/quickstart.sh
Outdated
# Ensure the model count is 0 | ||
curl -s -X GET "http://localhost:8000/openai/v1/models" | jq '. | length == 0' | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# The previous skaffold step installed KubeAI using the helm chart. | |
# By using the --reuse-values flag we can just append models to the previous install | |
# while avoiding overriding the image that skaffold originally built and set in the first | |
# install. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Simple e2e test written in bash. This ensures that the steps in the README won't be broken by other PRs. More advanced e2e tests can be written in golang. The tests succeed in ~4-5 minutes depending on how fast the download of gemma 2b is.
In some cases the download may take longer than the timeout.