Skip to content

[core] Speed up & deflake test_multitenancy.py - #53674

Merged
edoakes merged 2 commits into
ray-project:masterfrom
edoakes:eoakes/speedup-test-multi-tenancy
Jun 10, 2025
Merged

edoakes merged 2 commits into
ray-project:masterfrom
edoakes:eoakes/speedup-test-multi-tenancy

Conversation

@edoakes

@edoakes edoakes commented Jun 9, 2025 •

Copy link
Copy Markdown
Collaborator

Saw this flake on postmerge.

Cleaned up the test in general:

  • Remove sleep conditions.
  • Remove use of direct gRPC connection to raylet.
  • Remove runtime_env test that was redundant with test_runtime_env_env_vars.py.

Runtime decreased by ~50% locally, from 62.98s to 33.48s.

edoakes added 2 commits June 9, 2025 15:33
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jun 9, 2025
@edoakes
edoakes requested a review from a team June 9, 2025 20:35

@can-anyscale can-anyscale left a comment

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.

@edoakes
edoakes merged commit 4789761 into ray-project:master Jun 10, 2025
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
Saw this flake on
[postmerge](https://buildkite.com/ray-project/postmerge/builds/10702#01975572-3a26-4e0b-b27d-0869ac5830fe/177-1191).

Cleaned up the test in general:

- Remove sleep conditions.
- Remove use of direct gRPC connection to raylet.
- Remove runtime_env test that was redundant with
`test_runtime_env_env_vars.py`.

Runtime decreased by ~50% locally, from `62.98s` to `33.48s`.

---------

Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
Saw this flake on
[postmerge](https://buildkite.com/ray-project/postmerge/builds/10702#01975572-3a26-4e0b-b27d-0869ac5830fe/177-1191).

Cleaned up the test in general:

- Remove sleep conditions.
- Remove use of direct gRPC connection to raylet.
- Remove runtime_env test that was redundant with
`test_runtime_env_env_vars.py`.

Runtime decreased by ~50% locally, from `62.98s` to `33.48s`.

---------

Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
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