-
Notifications
You must be signed in to change notification settings - Fork 513
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 conformance echo-server code and image build (echo-basic) #2447
Add conformance echo-server code and image build (echo-basic) #2447
Conversation
* add code from Ingress Controller Conformance Repo * update build-and-push.sh to also build this image * create Dockerfile.echoserver * add go.work at root with reference to ./conformance/echoserver * add delay support to echoserver * relates to kubernetes-sigs#2445 * discussed in kubernetes-sigs#2254
Hi @SRodi. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
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 the work on this @SRodi!
* rename to echo-basic (Istio's one can be echo-advanced) * up go.mod go version to 1.20 * fix dockerfile golang version and COPY instruction (paths) * update build-and-push.sh and go.work with new namings
@SRodi as soon as this merges, I can update #2254 to use it for one service, sort of a canary test 😃 If that works out, then we can do a followup PR to change the rest of the services to use the new image. |
@frankbu that sounds good. I will keep #2437 open (as a draft for now) so that I can proceed with the general image update once you confirm your "canary test" works. |
* should use a simple channel send/receive instead of select with a single case
* required as indirect dependency * see https://stackoverflow.com/a/71613130
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 @SRodi!
/ok-to-test
@@ -0,0 +1,6 @@ | |||
go 1.20 |
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.
Although I can't find any absolute guidance, it appears that the most common advice seems to be to add this and go.work.sum
to .gitignore
per golang/go#53502. I'd recommend doing that for now and we can revisit adding these files at a later point.
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.
Tests are failing on prow if I remove go.work.sum
and go.work
. The message is: conformance/echo-basic does not contain main module
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_gateway-api/2447/pull-gateway-api-test/1709897756849475584 -
Can we include go.work.sum
and go.work
for now or do you prefer that I add its own go.mod in conformance/echo-basic ? @robscott
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.
Good to know, thanks for giving it a try!
Thanks @SRodi! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: robscott, SRodi 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 |
What type of PR is this?
/kind test
/area conformance
What this PR does / why we need it:
Add codebase and image build step for
echoserver
image used in conformance tests. Prevent to update https://github.com/kubernetes-sigs/ingress-controller-conformance when we need to tweak base image for conformance.Which issue(s) this PR fixes:
Fixes #2445
Does this PR introduce a user-facing change?:
NONE