Cargo test failure on macOS
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
- Domain
- networking, operating-systems, testing
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lablup/raftify
-
integration-test
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
dx
Difficulty 5/5 Over a week Newbie friendliness 32/100
-
feature log-storage snapshot
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
good first issue log-storage test
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Similar issues
-
area:ui effort:medium enhancement P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
documentation priority: low tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
nledford/Ladderback#1823 ·
Maintainers usually reply within 1 day
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Possibly taken @ealwanlee claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
psmux/psmux-plugins#47 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day