purerpc icon indicating copy to clipboard operation
purerpc copied to clipboard

ExceptionGroup support

Open VincentVanlaer opened this issue 3 months ago • 0 comments

Since anyio 4.0, all task groups raise ExceptionGroups by default. We need to check whether that causes us to miss exceptions, and whether we are passing exception groups to users where we do not intent to raise one.

I did a quick scan for where we use task groups in the main code, assuming that no other anyio functions raise exception groups:

https://github.com/python-trio/purerpc/blob/a3c17dd885d8f36bcf3a78c7506e35f7bc33cccc/src/purerpc/grpc_socket.py#L30 https://github.com/python-trio/purerpc/blob/a3c17dd885d8f36bcf3a78c7506e35f7bc33cccc/src/purerpc/grpc_socket.py#L216 https://github.com/python-trio/purerpc/blob/a3c17dd885d8f36bcf3a78c7506e35f7bc33cccc/src/purerpc/wrappers.py#L103-L107 https://github.com/python-trio/purerpc/blob/a3c17dd885d8f36bcf3a78c7506e35f7bc33cccc/src/purerpc/wrappers.py#L112-L117 https://github.com/python-trio/purerpc/blob/a3c17dd885d8f36bcf3a78c7506e35f7bc33cccc/src/purerpc/server.py#L219-L225

Other uses of tasks groups is in tests and some sample scripts. While those probably should be double checked, the ones above are the most important ones.

VincentVanlaer avatar Apr 11 '24 22:04 VincentVanlaer