In the dask-kubernetes CI we've started seeing all of our test runs failing. It looks like a change on distributed main is causing it.
The last known good commit is 74a1bcd, we are seeing failures with 49437c2. I am bisecting now to try and see which PR caused this but it's a slow process. See dask/dask-kubernetes#738.
The error we are seeing is
==================================== ERRORS ====================================
______________________ ERROR at setup of test_kubecluster ______________________
kopf_runner = <kopf._kits.runner.KopfRunner object at 0x7f9444a7f1c0>
docker_image = 'dask-kubernetes:dev'
@pytest.fixture
def cluster(kopf_runner, docker_image):
with dask.config.set({"kubernetes.name": "foo-{uuid}"}):
with kopf_runner:
> with KubeCluster(image=docker_image, n_workers=1) as cluster:
dask_kubernetes/operator/kubecluster/tests/conftest.py:13:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
dask_kubernetes/operator/kubecluster/kubecluster.py:265: in __init__
if not self.asynchronous:
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/distributed/utils.py:337: in asynchronous
return in_async_call(self.loop, default=getattr(self, "_asynchronous", False))
/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/distributed/deploy/cluster.py:105: in loop
self.__loop = loop = self._loop_runner.loop
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <distributed.utils.LoopRunner object at 0x7f9440533ac0>
@property
def loop(self):
loop = self._loop
if loop is None or not loop.asyncio_loop.is_running():
> raise RuntimeError(
"Accessing the loop property while the loop is not running is not supported"
)
E RuntimeError: Accessing the loop property while the loop is not running is not supported
In the dask-kubernetes CI we've started seeing all of our test runs failing. It looks like a change on distributed main is causing it.
The last known good commit is 74a1bcd, we are seeing failures with 49437c2. I am bisecting now to try and see which PR caused this but it's a slow process. See dask/dask-kubernetes#738.
The error we are seeing is
==================================== ERRORS ==================================== ______________________ ERROR at setup of test_kubecluster ______________________ kopf_runner = <kopf._kits.runner.KopfRunner object at 0x7f9444a7f1c0> docker_image = 'dask-kubernetes:dev' @pytest.fixture def cluster(kopf_runner, docker_image): with dask.config.set({"kubernetes.name": "foo-{uuid}"}): with kopf_runner: > with KubeCluster(image=docker_image, n_workers=1) as cluster: dask_kubernetes/operator/kubecluster/tests/conftest.py:13: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dask_kubernetes/operator/kubecluster/kubecluster.py:265: in __init__ if not self.asynchronous: /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/distributed/utils.py:337: in asynchronous return in_async_call(self.loop, default=getattr(self, "_asynchronous", False)) /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/distributed/deploy/cluster.py:105: in loop self.__loop = loop = self._loop_runner.loop _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <distributed.utils.LoopRunner object at 0x7f9440533ac0> @property def loop(self): loop = self._loop if loop is None or not loop.asyncio_loop.is_running(): > raise RuntimeError( "Accessing the loop property while the loop is not running is not supported" ) E RuntimeError: Accessing the loop property while the loop is not running is not supported