Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@vstinner

Description

@vstinner
Issue body actions

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 (most recent call last):
     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", line 227, in test_UnixDatagramServer
       self.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", line 66, in decorator
       return func(*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", line 135, in run_server
       testfunc(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", line 162, in dgram_examine
       buf = 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", line 44, in receive
       raise RuntimeError("timed out on %r" % (sock,))
   RuntimeError: timed out on <socket.socket fd=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:

def receive(sock, n, timeout=test.support.SHORT_TIMEOUT):
    r, w, x = _real_select([sock], [], [], timeout)
    if sock in r:
        return sock.recv(n)
    else:       
        raise RuntimeError("timed out on %r" % (sock,))

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

OS-iostestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.