-
Notifications
You must be signed in to change notification settings - Fork 813
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
Use non-ephemeral port for Go SDK conformance test #1095
Use non-ephemeral port for Go SDK conformance test #1095
Conversation
/assign @roberthbailey |
Build Failed 😱 Build Id: 9439a5e8-3015-472d-8077-af24b991b0dd To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
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.
It looks like the nodejs conformance tests failed with this change. Do you think removing the --net=host
from the docker run of the sidecar might be the culprit?
build/includes/sdk.mk
Outdated
docker run -p 59357:59357 -e "ADDRESS=" -e "TEST=$(TESTS)" -e "TIMEOUT=$(TIMEOUT)" -e "DELAY=$(DELAY)" \ | ||
--net=host $(sidecar_tag) | ||
DOCKER_RUN_ARGS="--net host -e AGONES_SDK_GRPC_PORT=$(PORT) $(DOCKER_RUN_ARGS)" COMMAND=sdktest $(MAKE) run-sdk-command & \ | ||
docker run -p $(PORT):59357 -e "ADDRESS=" -e "TEST=$(TESTS)" -e "TIMEOUT=$(TIMEOUT)" -e "DELAY=$(DELAY)" \ |
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.
So this maps the configured port on the machine to the default port in the container. I think it would be a bit better to do $(PORT):$(PORT)
and then pass --grpc-port=$(PORT)
to the sidecar container so that we are testing having the sdkserver bind to the configured port as well.
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.
Yes, that's true, performing this change
8341765
to
dae88e0
Compare
Build Failed 😱 Build Id: 45fdae47-c4b3-419b-83cd-39d5c64b6366 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: b7110690-948a-425b-a826-5c85710d1eff The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
cmd/sdk-server/Dockerfile
Outdated
ENTRYPOINT ["/home/agones/sdk-server"] | ||
CMD [ "--grpc-port", "59357" ] |
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.
Does it work without this change? The binary already defaults this flag (in code) so it doesn't seem like we should also need to default it in the dockerfile.
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.
Let me check your assumption.
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.
No need for this CMD
block, removed
dae88e0
to
a2c94ef
Compare
I need to update commit text accordingly |
Add PORT parameter for SDK conformance tests. Local SDK server could use different ports as well as SDK client. First step to run SDK tests in parallel.
a2c94ef
to
33304a9
Compare
Build Succeeded 👏 Build Id: 1fc68441-0efc-4713-8314-3d045c6f6ab5 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Succeeded 👏 Build Id: 7fa0c03f-c793-4be3-9fd4-e1ed4e5d9d6a The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aLekSer, roberthbailey The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add
PORT
parameter for SDK conformance tests.Local SDK server could use different ports as well as SDK client.
First step to run SDK tests in parallel.