-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Environment image replaced with runtime image #4030
Environment image replaced with runtime image #4030
Conversation
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.
@tzununbekov: 0 warnings.
In response to this:
Replace uses of environment image with runtime image
Closes #3985
Proposed Changes
fetchEnvInfo
function replaced byfetchRuntimeInfo
environment
test image completely removedRelease Note
NONE
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Hi @tzununbekov. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
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.
Thanks for updating this. This is great!
Port string `json:"PORT"` | ||
// MustEnvVars defines environment variables that "MUST" be set. | ||
var MustEnvVars = map[string]string{ | ||
"PORT": strconv.Itoa(test.EnvImageServerPort), |
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.
I understand this didn't change with the replacement, but we should define the port as part of the service options to fetchRuntimeInfo so the port we are validating matches the port we specified.
We implicitly get the test case of system-defined ports as the runtime container is listening on $PORT so we would not receive a response back to parse if this variable was not set properly. So seems like validating the user-defined case makes the most sense as we could get back a valid port that the system is listening and sending traffic on, but that port could fail to be the one we defined.
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.
@dgerd that makes sense, added user-defined container port
test/image_constants.go
Outdated
//EnvImageFilePathQueryParam query param to be used with EnvImageFilePathInfoPath to specify filepath | ||
EnvImageFilePathQueryParam = "path" | ||
//RuntimeImageServerPort is the port on which the runtime test-image server starts. | ||
RuntimeImageServerPort = 8800 |
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.
Just one more things... now that this fine is a single constant can we just move it into the test file? I don't see a need for it to be shared. All that matters is that the value specified in the test is the same as the value we are looking for. Other tests can choose any other value.
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.
done 🙂
/test pull-knative-serving-integration-tests |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgerd, tzununbekov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Replace uses of environment image with runtime image
Closes #3985
Proposed Changes
fetchEnvInfo
function replaced byfetchRuntimeInfo
environment
test image completely removedRelease Note