Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tune] Remove rllib dep again, and add a test #1792

Merged
merged 4 commits into from
Mar 29, 2018

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Mar 27, 2018

What do these changes do?

Load rllib as late as possible and only if needed (for RLlib agents). Add a test to make sure this doesn't regress again.

cc @vlad17

@richardliaw
Copy link
Contributor

what was the current issue? don't the failed imports get caught in register_all?

@ericl
Copy link
Contributor Author

ericl commented Mar 27, 2018

Oh, it looks like the try catch is gone there. Hm, we could put it back, but this is probably a cleaner fix.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4526/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4525/
Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4528/
Test PASSed.

raise TuneError("Unknown trainable: " + trainable_name)
if not has_trainable(trainable_name):
# Make sure rllib agents are registered
from ray import rllib # noqa # pylint: disable=unused-import
Copy link
Collaborator

@robertnishihara robertnishihara Mar 28, 2018

Choose a reason for hiding this comment

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

Nit, the comment should just be # noqa: F401

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

@@ -0,0 +1,26 @@
#!/usr/bin/env python
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is fine if this is the only thing that's ever going to be in this test file. However in general new tests should all use pytest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah this one kinda has to be its own file since it tests import state.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/4532/
Test PASSed.

@ericl ericl merged commit 4116c64 into ray-project:master Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants