Skip to content

[core] Fix test_multi_tenancy.py on Windows#53699

Merged
edoakes merged 1 commit intoray-project:masterfrom
edoakes:eoakes/fix-test-multi-tenancy
Jun 10, 2025
Merged

[core] Fix test_multi_tenancy.py on Windows#53699
edoakes merged 1 commit intoray-project:masterfrom
edoakes:eoakes/fix-test-multi-tenancy

Conversation

@edoakes
Copy link
Copy Markdown
Collaborator

@edoakes edoakes commented Jun 10, 2025

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 10, 2025
@edoakes edoakes enabled auto-merge (squash) June 10, 2025 15:27
Comment on lines +257 to +261
try:
run_string_as_driver(driver_code)
except subprocess.CalledProcessError:
# The driver exits with non-zero status Windows due to ungraceful os._exit.
pass
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.

Did this test always fail and we just took it out of jail or is this non-deterministic?

Copy link
Copy Markdown
Collaborator Author

@edoakes edoakes Jun 10, 2025

Choose a reason for hiding this comment

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

I modified the test to add the os._exit (previously it wasn't doing this, so the driver was draining submitted tasks before exit, so it didn't actually test what it said it did)

Copy link
Copy Markdown
Contributor

@israbbani israbbani left a comment

Choose a reason for hiding this comment

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

🚢

@edoakes edoakes merged commit d188864 into ray-project:master Jun 10, 2025
5 of 6 checks passed
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
Process exits ungracefully when you `os._exit` on Windows:
https://buildkite.com/ray-project/postmerge/builds/10736#01975889-d332-47e0-8290-284c63ec43b3/1834-1905

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
Process exits ungracefully when you `os._exit` on Windows:
https://buildkite.com/ray-project/postmerge/builds/10736#01975889-d332-47e0-8290-284c63ec43b3/1834-1905

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