-
Notifications
You must be signed in to change notification settings - Fork 201
Add e2e test for multiport InferencePool enhancement #1885
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
base: main
Are you sure you want to change the base?
Changes from all commits
ab435f8
6b1055c
f1e2e55
9ba982f
772d499
dd7887f
cf949ed
24d2c5d
25cd366
49a3158
411c258
d9f8c13
c2bd9f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,7 @@ import ( | |
|
|
||
| const ( | ||
| // defaultCurlTimeout is the default timeout for the curl command to get a response. | ||
| defaultCurlTimeout = 30 * time.Second | ||
| defaultCurlTimeout = 120 * time.Second | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2 min for curl timeout is a bit long.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you're right, though 30 was too short. When generating traffic in |
||
| // defaultCurlInterval is the default interval to run the test curl command. | ||
| defaultCurlInterval = time.Second * 5 | ||
| // defaultNsName is the default name of the Namespace used for tests. Can override using the E2E_NS environment variable. | ||
|
|
@@ -317,7 +317,9 @@ func createEnvoy(testConfig *testutils.TestConfig, filePath string) { | |
|
|
||
| // createInferExt creates the inference extension resources used for testing from the given filePath. | ||
| func createInferExt(testConfig *testutils.TestConfig, filePath string) { | ||
| inManifests := testutils.ReadYaml(filePath) | ||
|
|
||
| // This image needs to be updated to open multiple ports and respond. | ||
| inManifests := testutils.ReadYaml(filePath) // Modify inference-pool.yaml | ||
| ginkgo.By("Replacing placeholders with environment variables") | ||
| outManifests := []string{} | ||
| replacer := strings.NewReplacer( | ||
|
|
||
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.
why this script deletes the CRD?
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.
This may be a timing issue in my local environment. Aborting or failing tests (moreso the former) followed by immediate re-execution sees an InferencePool that hasn't been torn down yet. I would imagine other devs experience this as well so I added it, but I can remove it if not a good practice.