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

Add integration tests that ensure quickstart works #167

Merged
merged 10 commits into from
Sep 2, 2024
Merged

Conversation

samos123
Copy link
Contributor

@samos123 samos123 commented Sep 2, 2024

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.

@samos123 samos123 requested a review from nstogner September 2, 2024 07:06
Copy link
Contributor

@nstogner nstogner left a 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 Show resolved Hide resolved
test/quickstart.sh Show resolved Hide resolved
@samos123 samos123 requested a review from nstogner September 2, 2024 15:48
# Ensure the model count is 0
curl -s -X GET "http://localhost:8000/openai/v1/models" | jq '. | length == 0'


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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.

Copy link
Contributor

@nstogner nstogner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@samos123 samos123 merged commit b4ec814 into main Sep 2, 2024
5 checks passed
@samos123 samos123 deleted the integration-test branch September 2, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants