Skip to content

Commit 62bae0f

Browse files
authoredMar 19, 2025··
Update loky to 3.5.1. (#11341)
1 parent 7bd2183 commit 62bae0f

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed
 

‎ops/conda_env/aarch64_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies:
2626
- awscli
2727
- numba
2828
- llvmlite
29-
- loky
29+
- loky>=3.5.1
3030
- pyarrow
3131
- pyspark>=3.4.0
3232
- cloudpickle

‎ops/conda_env/linux_cpu_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies:
3434
- boto3
3535
- awscli
3636
- py-ubjson
37-
- loky
37+
- loky>=3.5.1
3838
- pyarrow
3939
- protobuf
4040
- cloudpickle

‎ops/conda_env/macos_cpu_test.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ dependencies:
66
- pip
77
- wheel
88
- pyyaml
9-
- cpplint
10-
- pylint
119
- numpy
1210
- scipy
1311
- llvm-openmp
@@ -20,22 +18,17 @@ dependencies:
2018
- python-graphviz
2119
- hypothesis
2220
- astroid
23-
- sphinx
2421
- sh
25-
- recommonmark
26-
- mock
27-
- breathe
2822
- pytest
2923
- pytest-cov
24+
- pytest-timeout
3025
- python-kubernetes
3126
- urllib3
3227
- jsonschema
3328
- boto3
3429
- awscli
35-
- loky
30+
- loky>=3.5.1
3631
- pyarrow
37-
- pyspark>=3.4.0
3832
- cloudpickle
3933
- pip:
4034
- setuptools
41-
- sphinx_rtd_theme

‎ops/conda_env/win64_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ dependencies:
1616
- python-graphviz
1717
- pip
1818
- py-ubjson
19-
- loky
19+
- loky>=3.5.1
2020
- pyarrow

‎tests/python/test_collective.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import numpy as np
55
import pytest
6-
from loky import get_reusable_executor
76

87
import xgboost as xgb
98
from xgboost import RabitTracker, build_info, federated
@@ -25,10 +24,13 @@ def run_rabit_worker(rabit_env: dict, world_size: int) -> int:
2524

2625
@pytest.mark.skipif(**tm.no_loky())
2726
def test_rabit_communicator() -> None:
27+
from loky import get_reusable_executor
28+
2829
world_size = 2
2930
tracker = RabitTracker(host_ip="127.0.0.1", n_workers=world_size)
3031
tracker.start()
3132
workers = []
33+
3234
with get_reusable_executor(max_workers=world_size) as pool:
3335
for _ in range(world_size):
3436
worker = pool.submit(
@@ -60,6 +62,8 @@ def run_federated_worker(port: int, world_size: int, rank: int) -> int:
6062
@pytest.mark.skipif(**tm.skip_win())
6163
@pytest.mark.skipif(**tm.no_loky())
6264
def test_federated_communicator() -> None:
65+
from loky import get_reusable_executor
66+
6367
if not build_info()["USE_FEDERATED"]:
6468
pytest.skip("XGBoost not built with federated learning enabled")
6569

0 commit comments

Comments
 (0)
Please sign in to comment.