question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unify ray discovery during tests

See original GitHub issue

This came up while working on #3898

At the moment, we have two different types of tests:

The ones in ray/test, which will be run with whichever version of ray is installed (this could be the one in the ray/ folder if pip install -e was used, or it could be the one in the site-packages folder, or in the user’s local site-packages folders).

The ones in the subfolders of ray/python/ray, which will run whichever ray version is in the ray/ folder and this will fail if there is no binaries in that folder.

The reason for this difference is the discovery mechanism of pytest: If there is an init.py in the test directory, it will recursively try to go up until it finds the package, see https://docs.pytest.org/en/latest/goodpractices.html the part that says “pytest supports two common test layouts:”).

This behavior is confusing at the moment and should be unified. I’d prefer if the installed version of Ray is always used. In this case we need to get rid of init.py in the test directories, which means we need to put test modules that get imported and test files that get run into separate directories.

cc @richardliaw @ericl @williamma12

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
pcmoritzcommented, Feb 13, 2019

Alright, I think we should use --pyargs ray as the short term workaround as @robertnishihara suggests and move on to bazel test as soon as possible.

0reactions
richardliawcommented, Mar 19, 2020

Closed since we moved to Bazel.

Read more comments on GitHub >

github_iconTop Results From Across the Web

X-Ray Performance & Reliability Tests - Nutanix Community
All validation tests when I discovered the targets were good. ... Hi I used X-Ray 4.1.3 to do a test of VM High...
Read more >
Wu experiment - Wikipedia
In the experiment carried out by Wu, the gamma ray anisotropy was approximately 0.6. That is, approximately 60% of the gamma rays were...
Read more >
Best Practices: Using NVIDIA RTX Ray Tracing (Updated)
This post gathers best practices based on our experiences so far on using NVIDIA RTX ray tracing in games.
Read more >
Questions and Answers on Compliance with Kari's Law and ...
A. RAY BAUM'S Act requires an MLTS to send dispatchable location given during a 911 call to the Public Safety Answering Point (PSAP)....
Read more >
Hard X-ray tests of the unified model for an ultraviolet-detected ...
Printed in U.S.A. HARD X-RAY TESTS OF THE UNIFIED MODEL FOR AN ... INTRODUCTION The discovery of a " hidden " Seyfert 1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found