Skip to content
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

Fix helloworld_test to work on hosts without IPv6 #185

Closed
wants to merge 1 commit into from

Conversation

philwo
Copy link
Member

@philwo philwo commented Jan 12, 2019

Saw this in the logs after we migrated to run all CI jobs in Docker containers:

Started server on port 34711
thread 'test_client_server' panicked at ''message: "Hello world"' not found in 'Err(Http(ClientDied(Some(IoError(Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" })))))
'', external/examples/proto/helloworld/helloworld_test.rs:112:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

(from https://storage.googleapis.com/bazel-untrusted-buildkite-artifacts/9488b198-a478-4957-b975-e73ac35e3108/xamples/proto/helloworld/helloworld_test/attempt_1.log)

Saw this in the logs after we migrated to run all CI jobs in Docker containers:

```
Started server on port 34711
thread 'test_client_server' panicked at ''message: "Hello world"' not found in 'Err(Http(ClientDied(Some(IoError(Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" })))))
'', external/examples/proto/helloworld/helloworld_test.rs:112:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
```
(from https://storage.googleapis.com/bazel-untrusted-buildkite-artifacts/9488b198-a478-4957-b975-e73ac35e3108/xamples/proto/helloworld/helloworld_test/attempt_1.log)
@philwo
Copy link
Member Author

philwo commented Jan 12, 2019

Mhm. My Rust is a bit rusty, it looks like it might be easier to just enable IPv6 support on the Docker hosts. 😅

@philwo
Copy link
Member Author

philwo commented Jan 12, 2019

Switched to host networking, which gives us a working ::1, so the test passes.

@philwo philwo closed this Jan 12, 2019
@philwo philwo deleted the philwo-patch-1 branch January 12, 2019 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants