Skip to content

e2e Tests Fail to Validate e2e Functionality #239

@danehans

Description

@danehans

#217 introdduced an initial e2e test. However, the test does not properly validate e2e functionality:

$ make test-e2e
...
Ran 1 of 1 Specs in 250.096 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestAPIs (250.10s)
PASS
ok  	inference.networking.x-k8s.io/gateway-api-inference-extension/test/e2e	250.122s

Manually testing indicates otherwise:

$ kubectl get svc/envoy
NAME    TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE
envoy   ClusterIP   10.96.233.11   <none>        8081/TCP   5m1s
$ IP=10.96.233.11
$ PORT=8081
$ kubectl exec po/curl -- curl -i $IP:$PORT/v1/completions -H 'Content-Type: application/json' -d '{"model": "tweet-summary","prompt": "Write as if you were a critic: San Francisco","max_tokens": 100,"temperature": 0}'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 500 Internal Server Error
100   118    0     0  100   118      0  60793 --:--:-- --:--:-- --:--:--  115k
date: Tue, 28 Jan 2025 20:58:55 GMT
connection: close
content-length: 0

The envoy manifest used for testing is misconfigured and the curl command needs to be inspected for a possible bug.

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions