gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests#145589
gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests#145589vstinner merged 2 commits intopython:mainfrom
Conversation
Prefer VMADDR_CID_LOCAL instead of VMADDR_CID_ANY for bind() in the server. Skip the test if bind() fails with EADDRNOTAVAIL.
|
This change fix AMD64 Fedora Stable 3.x and PPC64LE Fedora Stable 3.x where test_socket fails without this change. On these two buildbot workers, the test is now skipped with: On s390x Fedora Stable 3.x, test_socket pass without this change, and still pass with this change. |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 4d24cb3 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145589%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
|
GH-145593 is a backport of this pull request to the 3.14 branch. |
|
GH-145594 is a backport of this pull request to the 3.13 branch. |
…) (#145593) gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) Prefer VMADDR_CID_LOCAL instead of VMADDR_CID_ANY for bind() in the server. Skip the test if bind() fails with EADDRNOTAVAIL. Log vsock CID in test.pythoninfo. (cherry picked from commit 6c8c72f) Co-authored-by: Victor Stinner <vstinner@python.org>
…) (#145594) gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) Prefer VMADDR_CID_LOCAL instead of VMADDR_CID_ANY for bind() in the server. Skip the test if bind() fails with EADDRNOTAVAIL. Log vsock CID in test.pythoninfo. (cherry picked from commit 6c8c72f) Co-authored-by: Victor Stinner <vstinner@python.org>
Prefer VMADDR_CID_LOCAL instead of VMADDR_CID_ANY for bind() in the server. Skip the test if bind() fails with EADDRNOTAVAIL.