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

Require torch<2.0 until 2.0 is supported, add Python 3.10 to CI #558

Merged
merged 9 commits into from
Mar 28, 2023

Conversation

borzunov
Copy link
Member

@borzunov borzunov commented Mar 11, 2023

PyTorch 2.0 is not supported yet, it's support will be added in #559 (there are multiple issues to resolve). Until then, we need to require torch<2.0.0 (otherwise 2.0.0 is installed, so CI doesn't work right now).

This PR also adds Python 3.10 to the CI.

@codecov
Copy link

codecov bot commented Mar 11, 2023

Codecov Report

Merging #558 (eabaa9b) into master (351abc5) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #558      +/-   ##
==========================================
- Coverage   76.01%   75.98%   -0.03%     
==========================================
  Files          81       81              
  Lines        7995     7995              
==========================================
- Hits         6077     6075       -2     
- Misses       1918     1920       +2     

see 4 files with indirect coverage changes

@borzunov borzunov changed the title Add Python 3.10 and 3.11 to CI Add Python 3.10 to CI Mar 28, 2023
@borzunov borzunov mentioned this pull request Mar 28, 2023
@@ -17,7 +17,7 @@ jobs:
with:
python-version: 3.9
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
Copy link
Member Author

Choose a reason for hiding this comment

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

v2 is deprecated.

@@ -20,7 +20,7 @@ class NodeKiller:
"""Auxiliary class that kills dht nodes over a pre-defined schedule"""

def __init__(self, shutdown_peers: list, shutdown_timestamps: list):
self.shutdown_peers = set(shutdown_peers)
self.shutdown_peers = shutdown_peers
Copy link
Member Author

Choose a reason for hiding this comment

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

random.choice() doesn't support sets in 3.10, let's keep it a list.

@borzunov borzunov changed the title Add Python 3.10 to CI Add Python 3.10 to CI, require torch<2.0.0 until it's supported Mar 28, 2023
@borzunov borzunov changed the title Add Python 3.10 to CI, require torch<2.0.0 until it's supported Require torch<2.0 until 2.0 is supported, add Python 3.10 to CI Mar 28, 2023
@@ -5,7 +5,6 @@ pytest-cov
coverage==6.0.2 # see https://github.com/pytest-dev/pytest-cov/issues/520
tqdm
scikit-learn
torchvision
Copy link
Member Author

Choose a reason for hiding this comment

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

Seems like an excess dependency.

If present, it forces to upgrade torch to 2.0.0 during pip install -r requirements-dev.txt, which breaks installation from source (build_and_test_p2pd in CI).

@borzunov borzunov marked this pull request as ready for review March 28, 2023 18:01
@borzunov borzunov requested review from justheuristic and mryab March 28, 2023 18:02
@borzunov borzunov merged commit 73186cb into master Mar 28, 2023
@borzunov borzunov deleted the ci-py-310-311 branch March 28, 2023 18:47
mryab pushed a commit that referenced this pull request Mar 31, 2023
PyTorch 2.0 is not supported yet, it's support will be added in #559 (there are multiple issues to resolve). Until then, we need to require `torch<2.0.0` (otherwise 2.0.0 is installed, so CI doesn't work right now).

This PR also adds Python 3.10 to the CI.

(cherry picked from commit 73186cb)
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.

2 participants