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

Fix documentation building with psutil issue #7077

Merged
merged 10 commits into from
Feb 11, 2020

Conversation

simon-mo
Copy link
Contributor

@simon-mo simon-mo commented Feb 6, 2020

Why are these changes needed?

Related issue number

Checks

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@@ -62,6 +62,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath("../../python/"))
sys.path.insert(0, os.path.abspath("../../python/ray/thirdparty_files"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment explaining what this is for? In particular, that it is to get psutil?

Another alternative is to just put psutil into requirements-doc.txt

@robertnishihara
Copy link
Collaborator

There is a deeper problem which is that the CI didn't catch the error. We should set things up so that it fails in the CI if it is going to fail in Readthedocs. Maybe the issue here is that we are installing psutil in Travis in install-dependencies.sh or something like that, which is why travis didn't catch it? If that's the case, then we should uninstall it for the linting.

@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/21518/
Test FAILed.

@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/21515/
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/21522/
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/21586/
Test PASSed.

@simon-mo
Copy link
Contributor Author

@robertnishihara this is ready for review now. I removed psutil and setproctitle from CI environments.
The doc also builds in read the doc. We really can't test this because readthedoc has a custom environment to build.

@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/21693/
Test PASSed.

@@ -6,10 +6,9 @@
import tempfile
import time

import ray # noqa F401
import psutil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
import psutil
import psutil # We must import psutil after ray because we bundle psutil with ray.

import pytest
import requests
import time

import ray
import psutil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
import psutil
import psutil # We must import psutil after ray because we bundle psutil with ray.

Also move this to after all of the Ray imports (separated by a new line).

check_to_lines[check] = i
# print("{}:{} {}".format(str(file), i, line))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove

@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/21719/
Test FAILed.

@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/21714/
Test FAILed.

@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/21739/
Test FAILed.

@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/21738/
Test FAILed.

@simon-mo simon-mo merged commit 0ddc389 into ray-project:master Feb 11, 2020
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.

None yet

3 participants