-
Notifications
You must be signed in to change notification settings - Fork 114
mockserver locking, vsock address handling and CI #48
Conversation
bergwolf
commented
Dec 7, 2017
- enable mock locking so that parallel client RPC does not cause data race.
- fix vsock address handling error due to url.URL vs. gRPC address format difference.
- enable travis ci for kata agent.
- add vendor so that travis can run properly.
Signed-off-by: Peng Tao <bergwolf@gmail.com>
URL format is <scheme>://<host>[:port]/<path>, while gRPC name syntax is <scheme>://<authority>/<endpoint_name>. Also if a unempty scheme is not supported by gRPC, gRPC ignores all the remaining part of the address and just pass an empty string to the dialer. Therefore we handcraft a self-defined vsock format vsock:<cid>:<port> to bypass gRPC parsing and let the vsock dialer parse the vsock gRPC address. Then we provide URL format based address interface to NewAgentClient() callers. Also add a few address tests to make sure this works. Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
go_import_path: github.com/kata-containers/agent | ||
|
||
go: | ||
- 1.8 |
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.
How about also adding the following?:
- 1.9
- tip
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'm OK with both. Just note that other components are also using v1.8. If we want to go with v1.9 and tip, we should change others' travis settings 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.
Ah - sorry, I forgot to check the other components. I'm happy to raise PRs to add these 2 versions in for the others if we all agree to use 1.9
and tip
though?
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.
yeah, sounds good to me!
This is the first commit related to the vendoring of all dependencies. This will prevent from any breakage in case a dependency would break the backward compatibility. Fixes kata-containers#32 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
716354c
to
6694a02
Compare
cherry-picked #34 as the last commit and CI passed. |