Skip to content

test_socketserver.test_UnixDatagramServer() times out on GHA iOS CI#140702

@vstinner

Description

@vstinner

Bug report

Bug description:

Example: https://github.com/python/cpython/actions/runs/18868398194/job/53840759567?pr=140558

======================================================================ERROR: test_UnixDatagramServer (test.test_socketserver.SocketServerTest.test_UnixDatagramServer) ----------------------------------------------------------------------Traceback (mostrecentcalllast): File"/Users/runner/Library/Developer/CoreSimulator/Devices/7EDFF154-B6AB-44D3-BA15-EBE53F1F1878/data/Containers/Bundle/Application/F7FB9E8B-0A4F-4BDD-A041-3CB5C1B883AE/iOSTestbed.app/python/lib/python3.15/test/test_socketserver.py", line227, intest_UnixDatagramServerself.run_server(socketserver.UnixDatagramServer, ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^socketserver.DatagramRequestHandler, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^self.dgram_examine) ^^^^^^^^^^^^^^^^^^^File"/Users/runner/Library/Developer/CoreSimulator/Devices/7EDFF154-B6AB-44D3-BA15-EBE53F1F1878/data/Containers/Bundle/Application/F7FB9E8B-0A4F-4BDD-A041-3CB5C1B883AE/iOSTestbed.app/python/lib/python3.15/test/support/threading_helper.py", line66, indecoratorreturnfunc(*args) File"/Users/runner/Library/Developer/CoreSimulator/Devices/7EDFF154-B6AB-44D3-BA15-EBE53F1F1878/data/Containers/Bundle/Application/F7FB9E8B-0A4F-4BDD-A041-3CB5C1B883AE/iOSTestbed.app/python/lib/python3.15/test/test_socketserver.py", line135, inrun_servertestfunc(svrcls.address_family, addr) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/Users/runner/Library/Developer/CoreSimulator/Devices/7EDFF154-B6AB-44D3-BA15-EBE53F1F1878/data/Containers/Bundle/Application/F7FB9E8B-0A4F-4BDD-A041-3CB5C1B883AE/iOSTestbed.app/python/lib/python3.15/test/test_socketserver.py", line162, indgram_examinebuf=data=receive(s, 100) ~~~~~~~^^^^^^^^File"/Users/runner/Library/Developer/CoreSimulator/Devices/7EDFF154-B6AB-44D3-BA15-EBE53F1F1878/data/Containers/Bundle/Application/F7FB9E8B-0A4F-4BDD-A041-3CB5C1B883AE/iOSTestbed.app/python/lib/python3.15/test/test_socketserver.py", line44, inreceiveraiseRuntimeError("timed out on %r"% (sock,)) RuntimeError: timedouton<socket.socketfd=33, family=1, type=2, proto=0, laddr=./test_python_x3rw1qn_.sock>

The function uses test.support.SHORT_TIMEOUT which is 30 seconds by default:

defreceive(sock, n, timeout=test.support.SHORT_TIMEOUT): r, w, x=_real_select([sock], [], [], timeout) ifsockinr: returnsock.recv(n) else: raiseRuntimeError("timed out on %r"% (sock,))

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-iostestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions