Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

mockserver locking, vsock address handling and CI #48

Merged
merged 4 commits into from
Dec 11, 2017

Conversation

bergwolf
Copy link
Member

@bergwolf bergwolf commented Dec 7, 2017

  1. enable mock locking so that parallel client RPC does not cause data race.
  2. fix vsock address handling error due to url.URL vs. gRPC address format difference.
  3. enable travis ci for kata agent.
  4. 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
Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

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!

@bergwolf bergwolf mentioned this pull request Dec 8, 2017
@laijs laijs mentioned this pull request Dec 11, 2017
@laijs
Copy link
Contributor

laijs commented Dec 11, 2017

LGTM

Approved with PullApprove

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>
@laijs
Copy link
Contributor

laijs commented Dec 11, 2017

@bergwolf Could you cherry-pick the #34 and update the commit. Please ensure the author name unchanged.

@bergwolf
Copy link
Member Author

cherry-picked #34 as the last commit and CI passed.

@laijs laijs merged commit c4f51f6 into kata-containers:master Dec 11, 2017
@bergwolf bergwolf deleted the mock-locking branch April 2, 2018 07:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants