From 8fbbca5fcc6c254230336292c4ae3516430b51ea Mon Sep 17 00:00:00 2001 From: sampan Date: Thu, 8 Jan 2026 04:41:21 +0000 Subject: [PATCH 1/3] [core] fix test_token_auth_integration on windows Signed-off-by: sampan --- python/ray/tests/conftest.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python/ray/tests/conftest.py b/python/ray/tests/conftest.py index e0dad87b97b6..cd502619c2af 100644 --- a/python/ray/tests/conftest.py +++ b/python/ray/tests/conftest.py @@ -1541,7 +1541,9 @@ def setup_cluster_with_token_auth(cleanup_auth_token_env): reset_auth_token_state() cluster = Cluster() - cluster.add_node() + # Use dynamic port to avoid port conflicts on Windows where sockets + # linger in TIME_WAIT state between tests + cluster.add_node(dashboard_agent_listen_port=find_free_port()) try: context = ray.init(address=cluster.address) @@ -1565,7 +1567,9 @@ def setup_cluster_without_token_auth(cleanup_auth_token_env): reset_auth_token_state() cluster = Cluster() - cluster.add_node() + # Use dynamic port to avoid port conflicts on Windows where sockets + # linger in TIME_WAIT state between tests + cluster.add_node(dashboard_agent_listen_port=find_free_port()) try: context = ray.init(address=cluster.address) From a7545a0c70b445a546567da11a9a70743949f98f Mon Sep 17 00:00:00 2001 From: sampan Date: Fri, 9 Jan 2026 06:13:40 +0000 Subject: [PATCH 2/3] run flaky tests on windows Signed-off-by: sampan --- .buildkite/windows.rayci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.buildkite/windows.rayci.yml b/.buildkite/windows.rayci.yml index 62b6de874aca..43385411a6a9 100644 --- a/.buildkite/windows.rayci.yml +++ b/.buildkite/windows.rayci.yml @@ -119,6 +119,24 @@ steps: --test-env=USERPROFILE depends_on: windowsbuild + # TODO: Remove after verifying test_token_auth_integration fix + - label: ":windows: test_token_auth_integration verification" + tags: + - python + - windows + job_env: WINDOWS + instance_type: windows + commands: + - bash ci/ray_ci/windows/install_tools.sh + - bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... core + --build-name windowsbuild + --operating-system windows + --bisect-run-test-target //python/ray/tests:test_token_auth_integration + --test-env=CI="1" + --test-env=RAY_CI_POST_WHEEL_TESTS="1" + --test-env=USERPROFILE + depends_on: windowsbuild + - label: "flaky :windows: core tests" key: windows_core_flaky_tests tags: From 01e9914f448eb79e528ed1ae329fa1e81f91e42b Mon Sep 17 00:00:00 2001 From: sampan Date: Fri, 9 Jan 2026 08:15:23 +0000 Subject: [PATCH 3/3] revert custom change Signed-off-by: sampan --- .buildkite/windows.rayci.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.buildkite/windows.rayci.yml b/.buildkite/windows.rayci.yml index 43385411a6a9..62b6de874aca 100644 --- a/.buildkite/windows.rayci.yml +++ b/.buildkite/windows.rayci.yml @@ -119,24 +119,6 @@ steps: --test-env=USERPROFILE depends_on: windowsbuild - # TODO: Remove after verifying test_token_auth_integration fix - - label: ":windows: test_token_auth_integration verification" - tags: - - python - - windows - job_env: WINDOWS - instance_type: windows - commands: - - bash ci/ray_ci/windows/install_tools.sh - - bazel run //ci/ray_ci:test_in_docker -- //python/ray/tests/... core - --build-name windowsbuild - --operating-system windows - --bisect-run-test-target //python/ray/tests:test_token_auth_integration - --test-env=CI="1" - --test-env=RAY_CI_POST_WHEEL_TESTS="1" - --test-env=USERPROFILE - depends_on: windowsbuild - - label: "flaky :windows: core tests" key: windows_core_flaky_tests tags: