Title: pipe test failures on some Linux configurations · Issue #95672 · python/cpython · GitHub
Open Graph Title: pipe test failures on some Linux configurations · Issue #95672 · python/cpython
X Title: pipe test failures on some Linux configurations · Issue #95672 · python/cpython
Description: Bug report On Linux systems, when configured with a default pipe capacity of 4096, the following test fail: test_fcntl.test_fcntl_f_pipesize test_subprocess.test_pipesizes From a recent fcntl(2) Linux man page: F_SETPIPE_SZ: ... Attempts...
Open Graph Description: Bug report On Linux systems, when configured with a default pipe capacity of 4096, the following test fail: test_fcntl.test_fcntl_f_pipesize test_subprocess.test_pipesizes From a recent fcntl(2) Li...
X Description: Bug report On Linux systems, when configured with a default pipe capacity of 4096, the following test fail: test_fcntl.test_fcntl_f_pipesize test_subprocess.test_pipesizes From a recent fcntl(2) Li...
Opengraph URL: https://github.com/python/cpython/issues/95672
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pipe test failures on some Linux configurations ","articleBody":"# Bug report\r\n\r\nOn Linux systems, when configured with a default pipe capacity of 4096, the following test fail:\r\n- test_fcntl.test_fcntl_f_pipesize\r\n- test_subprocess.test_pipesizes\r\n\r\nFrom a recent `fcntl(2)` Linux [man page](https://man7.org/linux/man-pages/man2/fcntl.2.html#:~:text=Attempts%20to%20set%20the%20pipe%20capacity%20below%20the%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20page%20size%20are%20silently%20rounded%20up%20to%20the%20page%20size.):\r\n\r\n```\r\nF_SETPIPE_SZ:\r\n...\r\nAttempts to set the pipe capacity below the page size are silently rounded up to the page size.\r\n```\r\n\r\nThere's a check that attempts to skip the tests if the pipe capacity is [512 bytes](https://github.com/python/cpython/blob/6a5104f4fa83ed08fe31f712757dddabfede394c/Lib/test/test_fcntl.py#L202), but that's less than the smallest page size on x86.\r\n\r\nSince this feature appears to be Linux specific, the check should:\r\n\r\n1) Use `os.sysconf('SC_PAGESIZE')` as a minimum\r\n2) Fix the typos (\"SkitTest\") in [test_fcntl_f_pipesize](https://github.com/python/cpython/blob/6a5104f4fa83ed08fe31f712757dddabfede394c/Lib/test/test_fcntl.py#L203) and [test_pipesizes](https://github.com/python/cpython/blob/f6dd14c65336cda4e2ebccbc6408dfe3b0a68a34/Lib/test/test_subprocess.py#L715)\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102119\n* gh-102121\n* gh-102122\n* gh-102163\n* gh-102365\n* gh-102455\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2022-08-04T19:36:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/95672/cpython/issues/95672"}
| 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:b156810d-c92a-6dde-c5c9-9b02d4283d16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B712:22199A:FC3B6E:151F089:696991B5 |
| html-safe-nonce | d120a828d01dc2e497d36acc452b3511a256c14875753819b68f2f5b39b6ff50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzEyOjIyMTk5QTpGQzNCNkU6MTUxRjA4OTo2OTY5OTFCNSIsInZpc2l0b3JfaWQiOiI4OTAzODA3MzkzNTU2MTczMjM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 363b884f36f1a139e0a77820904ff931689b9ee6cc65927d3bdbd3715f92a549 |
| hovercard-subject-tag | issue:1329097164 |
| 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/95672/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be95c9f0a4b5dd29ce983a37151eb936a32717f516777d09b1f36727a3802e79/python/cpython/issues/95672 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be95c9f0a4b5dd29ce983a37151eb936a32717f516777d09b1f36727a3802e79/python/cpython/issues/95672 |
| og:image:alt | Bug report On Linux systems, when configured with a default pipe capacity of 4096, the following test fail: test_fcntl.test_fcntl_f_pipesize test_subprocess.test_pipesizes From a recent fcntl(2) Li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width