Repository navigation
[serve] Deflake serve windows tests - #63281
Conversation
Signed-off-by: Jeffrey Wang <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request reduces the parallelism per worker from 3 to 1 in the Windows CI configuration to mitigate resource contention. Feedback suggests further improving test robustness by increasing the RAY_raylet_start_wait_time_s timeout to 120 seconds to account for slow node registration on Windows.
| --test-env=RAY_CI_POST_WHEEL_TESTS="1" | ||
| --test-env=USERPROFILE | ||
| --workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 3 | ||
| --workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 1 |
There was a problem hiding this comment.
While reducing parallelism helps mitigate resource contention, Windows nodes can still experience slow startup times even in isolation. As noted in the PR description and the error logs, increasing the RAY_raylet_start_wait_time_s timeout would provide an additional layer of robustness against flakiness during node registration. Consider adding this environment variable to the test environment.
--workers "$${BUILDKITE_PARALLEL_JOB_COUNT}" --worker-id "$${BUILDKITE_PARALLEL_JOB}" --parallelism-per-worker 1
--test-env=RAY_raylet_start_wait_time_s="120"
abrarsheikh
left a comment
There was a problem hiding this comment.
i have attempted this in the past and that has not worked. I suggest running the windown test step like 5 times to confirm before merging
|
@abrarsheikh Hmm interesting, kicking off windows tests now. |
## Description Attempt to fix serve's windows flaky tests. Most failures raise the same exception from `python/ray/_private/node.py` ([example](https://buildkite.com/ray-project/postmerge/builds/17496/canvas?jid=019e157b-bea4-4918-8075-86e9396a89e4&tab=output)): ``` The current node timed out during startup... ``` GCS client polls GCS once per second for `raylet_start_wait_time_s` (default 30 s) and raises if the raylet hasn't registered. The retry log line `Failed to get node info ... node registration may not be complete yet before the timeout. Try increase the RAY_raylet_start_wait_time_s config.` shows up consistently across failed tests. https://github.com/ray-project/ray/blob/c01dcdefbefa123ba8766e1d90c00588f59026bb/src/ray/gcs_rpc_client/global_state_accessor.cc#L421-L436 The current `--parallelism-per-worker 3` command line argument spawns three docker containers concurrently within one Windows VM. Each container runs its own `ray.init()`, launching raylet + GCS + plasma + dashboard + log-monitor + runtime-env-agent. **Hypothesis**: Windows pays more per `ray.init()` because it has no `fork()` (every helper re-imports via spawn + CreateProcess), DLL load goes through AV scan, and the raylet binary is on a network-mounted bazel runfiles tree. Linux absorbs 3-way contention in <30 s; Windows doesn't. ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: Jeffrey Wang <[email protected]> Signed-off-by: phattruong <[email protected]>
## Description Attempt to fix serve's windows flaky tests. Most failures raise the same exception from `python/ray/_private/node.py` ([example](https://buildkite.com/ray-project/postmerge/builds/17496/canvas?jid=019e157b-bea4-4918-8075-86e9396a89e4&tab=output)): ``` The current node timed out during startup... ``` GCS client polls GCS once per second for `raylet_start_wait_time_s` (default 30 s) and raises if the raylet hasn't registered. The retry log line `Failed to get node info ... node registration may not be complete yet before the timeout. Try increase the RAY_raylet_start_wait_time_s config.` shows up consistently across failed tests. https://github.com/ray-project/ray/blob/c01dcdefbefa123ba8766e1d90c00588f59026bb/src/ray/gcs_rpc_client/global_state_accessor.cc#L421-L436 The current `--parallelism-per-worker 3` command line argument spawns three docker containers concurrently within one Windows VM. Each container runs its own `ray.init()`, launching raylet + GCS + plasma + dashboard + log-monitor + runtime-env-agent. **Hypothesis**: Windows pays more per `ray.init()` because it has no `fork()` (every helper re-imports via spawn + CreateProcess), DLL load goes through AV scan, and the raylet binary is on a network-mounted bazel runfiles tree. Linux absorbs 3-way contention in <30 s; Windows doesn't. ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: Jeffrey Wang <[email protected]> Signed-off-by: Alexandr Plashchinsky <[email protected]>
Description
Attempt to fix serve's windows flaky tests.
Most failures raise the same exception from
python/ray/_private/node.py(example):GCS client polls GCS once per second for
raylet_start_wait_time_s(default 30 s) and raises if the raylet hasn't registered. The retry log lineFailed to get node info ... node registration may not be complete yet before the timeout. Try increase the RAY_raylet_start_wait_time_s config.shows up consistently across failed tests.ray/src/ray/gcs_rpc_client/global_state_accessor.cc
Lines 421 to 436 in c01dcde
The current
--parallelism-per-worker 3command line argument spawns three docker containers concurrently within one Windows VM. Each container runs its ownray.init(), launching raylet + GCS + plasma + dashboard + log-monitor + runtime-env-agent.Hypothesis: Windows pays more per
ray.init()because it has nofork()(every helper re-imports via spawn + CreateProcess), DLL load goes through AV scan, and the raylet binary is on a network-mounted bazel runfiles tree. Linux absorbs 3-way contention in <30 s; Windows doesn't.Related issues
Additional information