Skip to content

Commit 1fb85a4

Browse files
committed
[https://nvbugs/6029864][fix] Fix flaky ray issue
Signed-off-by: Balaram Buddharaju <[email protected]>
1 parent 70e8608 commit 1fb85a4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/unittest/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ def process_gpu_memory_info_available():
433433

434434
@pytest.fixture(scope="function")
435435
def setup_ray_cluster() -> Generator[int, None, None]:
436+
import time
437+
436438
runtime_env = {
437439
"env_vars": {
438440
"RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES": "1"
@@ -448,6 +450,8 @@ def setup_ray_cluster() -> Generator[int, None, None]:
448450
ray.init(address="local", **ray_init_args)
449451
gcs_addr = ray.get_runtime_context().gcs_address
450452
port = int(gcs_addr.split(":")[1])
453+
# Allow raylet to complete GCS registration before tests create actors
454+
time.sleep(2)
451455
yield port
452456
finally:
453457
if ray.is_initialized():

0 commit comments

Comments
 (0)