Skip to content

Commit 3659551

Browse files
committed
use uv in e2e tests
1 parent 7b4ab3a commit 3659551

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docs/developer/developer.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,21 @@ make test
231231
```
232232

233233
## Run e2e tests locally
234+
234235
To setup from local code, do:
235236

236-
1. `./hack/quick_install.sh`
237-
2. `make undeploy`
238-
3. `make deploy-dev`
237+
1. `./hack/quick_install.sh`
238+
2. `make undeploy`
239+
3. `make deploy-dev`
240+
241+
Go to `python/kserve` and install kserve python sdk deps:
239242

240-
Go to `python/kserve` and install kserve python sdk deps
241243
```bash
242-
pip3 install -e .[test]
244+
uv venv .venv
245+
uv sync --group test
243246
```
244-
Then go to `test/e2e`.
247+
248+
Then go to `test/e2e`.
245249

246250
Run `kubectl create namespace kserve-ci-e2e-test`
247251

@@ -251,7 +255,7 @@ For KIND/minikube:
251255
* In a different window run `kubectl port-forward -n istio-system svc/istio-ingressgateway 8080:80`
252256
* Note that not all tests will pass as the pytorch test requires gpu. These will show as pending pods at the end or you can add marker to skip the test.
253257

254-
Run `pytest > testresults.txt`
258+
Run `GITHUB_SHA='e2ee2e' uv run pytest > testresults.txt`
255259

256260
Tests may not clean up. To re-run, first do `kubectl delete namespace kserve-ci-e2e-test`, recreate namespace and run again.
257261

0 commit comments

Comments
 (0)