Title: Tests fail with "OSError: AF_UNIX path too long" if TMPDIR path is longer than 107 bytes · Issue #93852 · python/cpython · GitHub
Open Graph Title: Tests fail with "OSError: AF_UNIX path too long" if TMPDIR path is longer than 107 bytes · Issue #93852 · python/cpython
X Title: Tests fail with "OSError: AF_UNIX path too long" if TMPDIR path is longer than 107 bytes · Issue #93852 · python/cpython
Description: The Python test suite has multiple tests on AF_UNIX sockets. They create a temporary socket path. Example with test_socketserver: return tempfile.mktemp(prefix='unix_socket.') The problem is that if the temporary directory is too long, c...
Open Graph Description: The Python test suite has multiple tests on AF_UNIX sockets. They create a temporary socket path. Example with test_socketserver: return tempfile.mktemp(prefix='unix_socket.') The problem is that i...
X Description: The Python test suite has multiple tests on AF_UNIX sockets. They create a temporary socket path. Example with test_socketserver: return tempfile.mktemp(prefix='unix_socket.') The problem i...
Opengraph URL: https://github.com/python/cpython/issues/93852
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tests fail with \"OSError: AF_UNIX path too long\" if TMPDIR path is longer than 107 bytes","articleBody":"The Python test suite has multiple tests on AF_UNIX sockets. They create a temporary socket path. Example with test_socketserver:\r\n\r\n```\r\nreturn tempfile.mktemp(prefix='unix_socket.')\r\n```\r\n\r\nThe problem is that if the temporary directory is too long, creating a socket with this path fails with \"OSError: AF_UNIX path too long\". On Linux, sun_path is 107 bytes.\r\n\r\nWith my PR #93817, TMPDIR becomes something like ``(...)/test_python_157983_æ/test_python_worker_243024_æ_tmpdir/``. For example, the path ``/home/vstinner/python/main/build/test_python_157983_æ/test_python_worker_243024_æ_tmpdir/unix_socket.xxxxxxxx`` is 11 bytes long, longer than the limit of 107 bytes.\r\n\r\nI see different options:\r\n\r\n* Use a relative path\r\n* Create a temporary socket path in the current directory rather than in TMPDIR\r\n* Skip tests if AF_UNIX path is too long","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2022-06-15T11:26:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/93852/cpython/issues/93852"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1007a0c1-8ae6-8f35-e39a-54b1ea107519 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94D8:2B81A2:88532D:BA6871:6969E3F4 |
| html-safe-nonce | fc95cf4c04601140e78cc4156b821481a716c593daac43effb383f503c5e4184 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEQ4OjJCODFBMjo4ODUzMkQ6QkE2ODcxOjY5NjlFM0Y0IiwidmlzaXRvcl9pZCI6IjY5MzUxMzA5NDM1NTQ5NzA2MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e9efe869f58a9bc5832a196ba9cb1eabd45685d9cea05bc19ba4ffdf04b1a13b |
| hovercard-subject-tag | issue:1272089414 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/93852/issue_layout |
| twitter:image | https://opengraph.githubassets.com/273fe98adcaca3c2730f66a8f8ab6cca661f6ef4a37cfc54b27f84ace8d54f67/python/cpython/issues/93852 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/273fe98adcaca3c2730f66a8f8ab6cca661f6ef4a37cfc54b27f84ace8d54f67/python/cpython/issues/93852 |
| og:image:alt | The Python test suite has multiple tests on AF_UNIX sockets. They create a temporary socket path. Example with test_socketserver: return tempfile.mktemp(prefix='unix_socket.') The problem is that i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width