Skip to content

[core] Deflake test_client_builder.py#53774

Merged
edoakes merged 4 commits intoray-project:masterfrom
edoakes:eoakes/fix-test-client-builder
Jun 13, 2025
Merged

[core] Deflake test_client_builder.py#53774
edoakes merged 4 commits intoray-project:masterfrom
edoakes:eoakes/fix-test-client-builder

Conversation

@edoakes
Copy link
Copy Markdown
Collaborator

@edoakes edoakes commented Jun 12, 2025

Removes use of private API to check condition that local clusters were started. Instead, checks the node ID using a public API.

edoakes added 2 commits June 12, 2025 08:02
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jun 12, 2025
Comment on lines -108 to -109
@skip_flaky_core_test_premerge("https://github.com/ray-project/ray/issues/38224")
def test_connect_to_cluster(ray_start_regular_shared):
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the builder is deprecated, no sense spending time re-enabling this

@edoakes edoakes enabled auto-merge (squash) June 12, 2025 13:04
@github-actions github-actions bot disabled auto-merge June 12, 2025 17:27
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes force-pushed the eoakes/fix-test-client-builder branch from d7168a8 to 0dd1ff4 Compare June 12, 2025 18:10
@edoakes edoakes enabled auto-merge (squash) June 12, 2025 18:11
@edoakes edoakes requested a review from a team June 13, 2025 01:10
@github-actions github-actions bot disabled auto-merge June 13, 2025 01:11
ray.client().connect()
assert len(ray._private.services.find_gcs_addresses()) == 1
# Check that all three drivers started their own local clusters.
assert len({p1_node_id, p2_node_id, p3_node_id}) == 3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know checking node id is better but do you know why ray._private.services.find_gcs_addresses() doesn't work?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but _find_address_from_flag is super hacky. Maybe the proc commandline is slow to update or inconsistent?

@edoakes edoakes merged commit a355235 into ray-project:master Jun 13, 2025
5 checks passed
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
Removes use of private API to check condition that local clusters were
started. Instead, checks the node ID using a public API.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
Removes use of private API to check condition that local clusters were
started. Instead, checks the node ID using a public API.

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants