Check that an error while preparing the runtime environment for the client server yields an actionable, clear error on the *client side*.
(call_ray_start)
| 253 | indirect=True, |
| 254 | ) |
| 255 | def test_runtime_install_error_message(call_ray_start): |
| 256 | """ |
| 257 | Check that an error while preparing the runtime environment for the client |
| 258 | server yields an actionable, clear error on the *client side*. |
| 259 | """ |
| 260 | with pytest.raises(ConnectionAbortedError) as excinfo: |
| 261 | ray.client("localhost:25031").env({"pip": ["ray-this-doesnt-exist"]}).connect() |
| 262 | assert "No matching distribution found for ray-this-doesnt-exist" in str( |
| 263 | excinfo.value |
| 264 | ), str(excinfo.value) |
| 265 | |
| 266 | ray.util.disconnect() |
| 267 | |
| 268 | |
| 269 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected
searching dependent graphs…