-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Ray Launcher Plugin support for Python 3.11 #2778
Conversation
Hi @Pedrexus! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Looks some of the test failures are due to a deprecation warning.
We are already ignoring this deprecation warning for the core tests; see line 511 of the noxfile. diff --git a/noxfile.py b/noxfile.py
index 693717dfe5..7a62ed1026 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -578,7 +578,11 @@ def test_selected_plugins(session: Session, selected_plugins: List[Plugin]) -> N
# Run tests for all installed plugins
for plugin in selected_plugins:
session.chdir(plugin.abspath)
- run_pytest(session)
+ run_pytest(
+ session,
+ ".",
+ "-W ignore:pkg_resources is deprecated as an API:DeprecationWarning",
+ )
@nox.session(python="3.8") # type: ignore |
it seems that adding "-W ignore:pkg_resources is deprecated as an API:DeprecationWarning" did not work. Other libraries do not have their tests passing. |
Looks like there's one more linter issue:
|
I'll submit a PR to address this shortly. |
I was able to fix the lint issue via |
Hey, I just wanted to share that some of these changes overlap with those in #2713, which I believe introduces a simpler change that can be merged already (I've been using that branch fine for a while), and then move to those in this PR. What do you think? |
"aiohttp==3.8.1", | ||
"cloudpickle==2.0.0", | ||
"pickle5==0.0.11; python_version < '3.8'", | ||
"boto3>=1.28,<1.29", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boto3
is constantly updating minor versions, and this constraint may be too harsh. What about the following?
"boto3>=1.28,<1.29", | |
"boto3>=1.28,<2", |
Yes. Thank you @Pedrexus. |
Motivation
Ray Launcher Plugin is now being supported in python 3.11 and Ray 2.7
Have you read the Contributing Guidelines on pull requests?
Yes
Test Notes
The tests are now passing. Updating the libraries to the newer version solved most issues.
AWS Ray Launcher is being deprecated as we could not execute tests within AWS infrastructure.
Related Issues and PRs
#2489