Cargo test failure on macOS

Open
#165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, rust

Research direction

Start by running cargo test on macOS and inspect misc/setup-loopback-addresses.sh, which is the current workaround for the AddrNotAvailable failure. Trace the test setup that requires the additional 127.0.0.x loopback addresses; done means the tests pass on macOS without rerunning that script after reboot.

Written by the indexing model from the issue text.

Description

integration-test

After #157, the cargo test command fails on macOS with an AddrNotAvailable error because only 127.0.0.1 is assigned as the loopback address by default on macOS.

As a workaround, by running the script below to assign all 127.0.0.x addresses as loopback, we can make the test code work properly on macOS as well.

./misc/setup-loopback-addresses.sh

Since this configuration resets after a reboot, we need to rerun the script.
It would be better to find a solution that doesn't require running the script every time.

Dominant language
Rust
Stars
44
Forks
14
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lablup/raftify

All issues in lablup/raftify

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.