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

Including psutil & setproctitle #7031

Merged
merged 33 commits into from
Feb 5, 2020
Merged

Conversation

ijrsvt
Copy link
Contributor

@ijrsvt ijrsvt commented Feb 3, 2020

Why are these changes needed?

Including psutil & setproctitle into the distribution to allow for dashboard to be built automatically.

Related issue number

Checks

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@ijrsvt ijrsvt requested a review from simon-mo February 3, 2020 22:00
build.sh Show resolved Hide resolved
setproc_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),
"setproctitle_files")
sys.path.insert(0, setproc_path)

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need mess with the import path if we are directly import from ray.thirdparty_files.psutil

psutil_path = os.path.join(
os.path.abspath(os.path.dirname(__file__)), "psutil_files")
sys.path.insert(0, psutil_path)

try:
import psutil
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make sure to change all occurrence of import psutil and import setproctitle to import ray.thirdparty.psutil import psutil

python/setup.py Show resolved Hide resolved
@simon-mo simon-mo marked this pull request as ready for review February 3, 2020 23:25
@simon-mo
Copy link
Contributor

simon-mo commented Feb 3, 2020

Tested locally, it worked!

@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/21310/
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/21313/
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/21314/
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/21336/
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/21334/
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/21338/
Test PASSed.

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

.travis.yml Outdated Show resolved Hide resolved
Co-Authored-By: Simon Mo <[email protected]>
@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/21400/
Test PASSed.

python/ray/memory_monitor.py Outdated Show resolved Hide resolved
python/ray/reporter.py Show resolved Hide resolved
python/ray/tests/test_advanced_3.py Show resolved Hide resolved
ci/travis/format.sh Show resolved Hide resolved
@@ -61,3 +61,6 @@ if [[ "$PYTHON" == "3.5" ]] || [[ "$MAC_WHEELS" == "1" ]]; then
source $HOME/.nvm/nvm.sh
nvm install node
fi

pip install -q psutil setproctitle \
--target="$ROOT_DIR/../../python/ray/thirdparty_files"
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

@@ -51,6 +51,11 @@
os.path.abspath(os.path.dirname(__file__)), "pyarrow_files")
sys.path.insert(0, pyarrow_path)

psutil_path = os.path.join(
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. psutil_path -> thirdparty_path
  2. Add a comment saying "This is done to make sure we use the bundled version of psutil and setproctitle"

import setproctitle
except ImportError:
setproctitle = None
import ray.thirdparty_files.setproctitle as setproctitle
Copy link
Contributor

Choose a reason for hiding this comment

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

import ray
import setproctitle

python/ray/worker.py Outdated Show resolved Hide resolved
@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/21444/
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/21445/
Test FAILed.

@simon-mo simon-mo merged commit 0826f95 into ray-project:master Feb 5, 2020
@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/21450/
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/21454/
Test PASSed.

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

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