GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-109015: Add test.support.socket_helper.tcp_blackhole() by vstinner · Pull Request #109016 · python/cpython Conversation
|
|
My previous DEBUG PR: PR #108972. See also issue #91960 "Add FreeBSD build and test using Cirrus-CI" and PR #91961 which the TCP blackhole was discussed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
57f552a to
e8e8711
Compare
|
I validated my fix on Cirrus-CI with this patch: test_asyncio failed at the first version of my PR, which proves that the Cirrus-CI did its job: test my fix :-) I had to skip 2 more tests in test_asyncio. At the second version, it passed: cc @emaste |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
My second patch adds skips to Lib/test/test_asyncio/test_events.py:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e8e8711 to
2737a22
Compare
|
I reverted the Cirrus CI change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP blackhole is enabled (net.inet.tcp.blackhole=2).
7b7469c to
43499b7
Compare
| except KeyError: | ||
| pass | ||
|
|
||
| cmd = ['sysctl', name] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
sysctl provides a -n arg to suppress the name:
$ sysctl -n net.inet.tcp.blackhole
0
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I didn't know it. It's also supported by Linux (even if right now, this function is only called on FreeBSD ;-)). I updated my PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I ran a quick test on my latest PR: and: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@emaste: Would you mind to review the updated PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return None | ||
| output = proc.stdout | ||
|
|
||
| # Parse 'net.inet.tcp.blackhole: 0\n' to get '0' |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this comment is leftover
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…onGH-109016) Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP blackhole is enabled (net.inet.tcp.blackhole=2). (cherry picked from commit a52a350) Co-authored-by: Victor Stinner <[email protected]>
|
GH-109041 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…on#109016) Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP blackhole is enabled (net.inet.tcp.blackhole=2). (cherry picked from commit a52a350)
|
GH-109042 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.