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 kserve private endpoint tests #22

Merged
merged 36 commits into from
Nov 27, 2024
Merged

Conversation

lugi0
Copy link
Collaborator

@lugi0 lugi0 commented Oct 23, 2024

Description

Adding two tests for kserve private endpoints.

How Has This Been Tested?

This has been tested multiple times from a local environment. It passes most of the time, but rarely fails on one of the assert calls in test_curl_with_istio because it receives an empty reply rather than an OK - might be a timing related problem, but seems weird because it is usually the second assert that fails.

If you want to run the tests yourself you will need to run uv run pytest tests/model_serving/model_server/private_endpoint/

Merge criteria:

  • [x ] The commits are squashed in a cohesive manner and have meaningful messages.
  • [x ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • [x ] The developer has manually tested the changes and verified that the changes work

@lugi0 lugi0 self-assigned this Oct 23, 2024
@lugi0 lugi0 added the kind/enhancement New feature or request label Oct 23, 2024
uv.lock Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
mypy.ini Outdated Show resolved Hide resolved
tests/model_serving/model_server/private_endpoint/utils.py Outdated Show resolved Hide resolved
tests/model_serving/model_server/private_endpoint/utils.py Outdated Show resolved Hide resolved
tests/model_serving/model_server/private_endpoint/utils.py Outdated Show resolved Hide resolved
tests/model_serving/model_server/private_endpoint/utils.py Outdated Show resolved Hide resolved
rnetser and others added 10 commits November 11, 2024 12:26
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.7.1](astral-sh/ruff-pre-commit@v0.7.0...v0.7.1)
- [github.com/renovatebot/pre-commit-hooks: 38.129.0 → 38.133.1](renovatebot/pre-commit-hooks@38.129.0...38.133.1)
- [github.com/gitleaks/gitleaks: v8.21.1 → v8.21.2](gitleaks/gitleaks@v8.21.1...v8.21.2)
- [github.com/pre-commit/mirrors-mypy: v1.12.1 → v1.13.0](pre-commit/mirrors-mypy@v1.12.1...v1.13.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.1 → v0.7.2](astral-sh/ruff-pre-commit@v0.7.1...v0.7.2)
- [github.com/renovatebot/pre-commit-hooks: 38.133.1 → 39.0.0](renovatebot/pre-commit-hooks@38.133.1...39.0.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…tion, specify in README that pre-commit shoulb be run and needs NPM installed

Signed-off-by: lugi0 <[email protected]>
@lugi0 lugi0 requested a review from rnetser November 25, 2024 15:23
Signed-off-by: lugi0 <[email protected]>
@lugi0 lugi0 requested a review from rnetser November 25, 2024 16:45
rnetser
rnetser previously approved these changes Nov 25, 2024
@lugi0 lugi0 requested a review from adolfo-ab November 25, 2024 16:57
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/model_serving/model_server/private_endpoint/utils.py Outdated Show resolved Hide resolved
tests/model_serving/model_server/private_endpoint/utils.py Outdated Show resolved Hide resolved
Signed-off-by: lugi0 <[email protected]>
adolfo-ab
adolfo-ab previously approved these changes Nov 26, 2024
tests/conftest.py Show resolved Hide resolved
tests/constants.py Outdated Show resolved Hide resolved
tests/constants.py Outdated Show resolved Hide resolved
adolfo-ab
adolfo-ab previously approved these changes Nov 27, 2024
@rnetser rnetser merged commit a5512d1 into main Nov 27, 2024
1 check passed
@rnetser rnetser deleted the feature/kserve_private_endpoint branch November 27, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants