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

Remove remaining __future__ imports. #6825

Closed

Conversation

sven1977
Copy link
Contributor

@sven1977 sven1977 commented Jan 18, 2020

Some 10+ future imports were not captured in previous PR.

#6580

#6580

@sven1977 sven1977 marked this pull request as ready for review January 18, 2020 07:38
@sven1977 sven1977 requested a review from edoakes January 18, 2020 07:38
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

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

…cess.py to give atexit more time to erase file.
@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/20823/
Test FAILed.

Copy link
Contributor

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

LGTM, please fix lint errors. You can run ./setup_hooks.sh to create a pre-push hook that runs the linter.

@sven1977
Copy link
Contributor Author

It's not LINT, it's some python 3.x incompatibility with the print(.., file=xyz) syntax. I'm taking a look.

@sven1977
Copy link
Contributor Author

So we are getting this here after we removed the remaining from __future__ import print:

Setting environment variables from .travis.yml
185$ export TESTSUITE=streaming
186$ export JDK='Oracle JDK 8'
187$ export RAY_INSTALL_JAVA=1
188$ export PYTHON=3.5
189$ export PYTHONWARNINGS=ignore
190
cache.1
191Setting up build cache
201
202$ bash -c 'echo $BASH_VERSION'
2034.3.48(1)-release
204
2050.05s$ python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py
206  File "/home/travis/build/ray-project/ray/ci/travis/determine_tests_to_run.py", line 46
207    print(pformat(files), file=sys.stderr)
208                              ^
209SyntaxError: invalid syntax
210The command "python $TRAVIS_BUILD_DIR/ci/travis/determine_tests_to_run.py" failed and exited with 1 during .

My guess is, we are still running the determine_tests_to_run.py with py2.

@sven1977
Copy link
Contributor Author

@edoakes
Yes, so apparently, somehow, it's still using py2. I don't know why, the PYTHON var is set to "3.5" for all travis tests.

$ python -V
Python 2.7.12

@sven1977
Copy link
Contributor Author

Travis does not respect the $PYTHON env variable. I printed out the actual py version used via python -V inside install_dependencies.sh and it's indeed py 2.7.12, even though the env variable is set to PYTHON=3.5 (<- that's the one we print out, but it's not the actual one!).
I also tried setting python:\n - "3.6" in the head of the .travis.yml file, but that doesn't help either.
Not sure what else to do at this point.

@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/20901/
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/20902/
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/20903/
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/20893/
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/20904/
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/20905/
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/20894/
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/20896/
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/20897/
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/20899/
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/20892/
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/20898/
Test PASSed.

@sven1977 sven1977 closed this Jan 21, 2020
@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/20907/
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/20913/
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/20909/
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/20914/
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/20911/
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/20916/
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/20908/
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.

3 participants