Skip to content

WINDOWS: increase timeouts on flaky tests - #23867

Closed
mattip wants to merge 1 commit into
ray-project:masterfrom
mattip:factor-timeout
Closed

mattip wants to merge 1 commit into
ray-project:masterfrom
mattip:factor-timeout

Conversation

@mattip

@mattip mattip commented Apr 12, 2022 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

The test_async and test_metrics tests are quite high on https://flaky-tests.ray.io. Running them locally I could see that the timeouts are not long enough.

Related issue number

Checks

@mattip

mattip commented Apr 12, 2022

Copy link
Copy Markdown
Contributor Author

@pcmoritz

# actually release all the resources. This manifests as a failure
# to start up the agent.
time.sleep(5)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is tricky to test since it is the first test in the file. I needed to run a series of tests to get the agent to fail to start with a "Windows Error 10013: An attempt was made to access a socket in a way forbidden" in the dashboard_agent.txt log. I am not sure this is the best way to prevent the problem. If this helps make the test less flaky, we should think about a more systematic way to ensure a pause after ray stop.

@mattip

mattip commented Apr 12, 2022

Copy link
Copy Markdown
Contributor Author

When running the tests alone, they passed. Only when running them in a series did the failures manifest. I am pretty sure the timeouts were just on the cusp when running them alone, and I think something about starting/stopping ray on windows slows everything down

@mattip

mattip commented Apr 13, 2022

Copy link
Copy Markdown
Contributor Author

The failure in //python/ray/tests:test_shuffle on macOS is unrelated.

@mattip

mattip commented May 18, 2022

Copy link
Copy Markdown
Contributor Author

Any thoughts about this? It would be nice to improve test_metrics to crash less

@stale

stale Bot commented Jul 10, 2022

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

  • If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@stale stale Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jul 10, 2022
@stale

stale Bot commented Jul 30, 2022

Copy link
Copy Markdown

Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message.

Please feel free to reopen or open a new issue if you'd still like it to be addressed.

Again, you can always ask for help on our discussion forum or Ray's public slack channel.

Thanks again for opening the issue!

@stale stale Bot closed this Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale The issue is stale. It will be closed within 7 days unless there are further conversation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants