Skip to content

docs(contributing): document Docker Desktop host networking requireme… - #3330

Merged
nkaradzhov merged 1 commit into
redis:masterfrom
nkaradzhov:docs/macos-windows-docker-tests
Jul 10, 2026
Merged

docs(contributing): document Docker Desktop host networking requireme…#3330
nkaradzhov merged 1 commit into
redis:masterfrom
nkaradzhov:docs/macos-windows-docker-tests

Conversation

@nkaradzhov

@nkaradzhov nkaradzhov commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

The test suite spawns Redis containers with --network host, which only works out of the box on Linux. Docker Desktop 4.34+ supports host networking on macOS and Windows behind an opt-in setting; with it enabled the full suite (including cluster tests) runs unchanged.

Fixes #2358

Description

Describe your pull request here


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Note

Low Risk
Documentation-only change with no runtime or API impact.

Overview
Adds a Running the tests on macOS and Windows subsection under Testing Code in CONTRIBUTING.md.

It documents that the suite uses Redis containers with --network host, which on macOS and Windows requires Docker Desktop 4.34+ with Settings → Resources → Network → Enable host networking. Without that, dockerized tests may hang or time out because containers are not reachable from the host.

Reviewed by Cursor Bugbot for commit 2f59f86. Bugbot is set up for automated code reviews on this repo. Configure here.

…nt for tests on macOS/Windows

The test suite spawns Redis containers with --network host, which only
works out of the box on Linux. Docker Desktop 4.34+ supports host
networking on macOS and Windows behind an opt-in setting; with it
enabled the full suite (including cluster tests) runs unchanged.

Fixes redis#2358

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nkaradzhov
nkaradzhov requested a review from PavelPashov July 10, 2026 11:16
@nkaradzhov
nkaradzhov merged commit d29677a into redis:master Jul 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running test suits only works on Linux hosts

2 participants