Uh oh!
There was an error while loading. Please reload this page.
gh-135906: Test the internal C API in test_cext - #136247
Conversation
vstinner
commented
Jul 3, 2025
I tried to check for C++ compiler warnings in internal Python C headers, but I got many C++ compiler errors in Infileincludedfrom /usr/include/features.h:524,
from /usr/include/assert.h:35,
from /home/vstinner/python/main/Include/Python.h:19,
fromextension.cpp:13:
/home/vstinner/python/main/Include/internal/mimalloc/mimalloc/types.h:73:33: error: expectedunqualified-idbefore 'noexcept'
73 | #definemi_decl_throw__THROW
| ^~~~~~~
/home/vstinner/python/main/Include/internal/mimalloc/mimalloc/types.h:611:31: note: inexpansionofmacro'mi_decl_throw'611 | mi_decl_noreturnmi_decl_coldmi_decl_throw
| ^~~~~~~~~~~~~and Infileincludedfrom /home/vstinner/python/main/Include/internal/pycore_mimalloc.h:44,
from /home/vstinner/python/main/Include/internal/pycore_tstate.h:13,
from /home/vstinner/python/main/Include/internal/pycore_pystate.h:13,
fromextension.cpp:20:
/home/vstinner/python/main/Include/internal/mimalloc/mimalloc/internal.h: Infunction 'bool_mi_is_aligned(void*, size_t)':
/home/vstinner/python/main/Include/internal/mimalloc/mimalloc/types.h:613:49: error: '_mi_assert_fail'wasnotdeclaredinthisscope; didyoumean'__assert_fail'?
613 | #definemi_assert(expr) ((expr) ? (void)0 : _mi_assert_fail(#expr,__FILE__,__LINE__,__func__))
| ^~~~~~~~~~~~~~~
/home/vstinner/python/main/Include/internal/mimalloc/mimalloc/types.h:619:31: note: inexpansionofmacro'mi_assert'619 | #definemi_assert_internal mi_assert
| ^~~~~~~~~
/home/vstinner/python/main/Include/internal/mimalloc/mimalloc/internal.h:273:3: note: inexpansionofmacro'mi_assert_internal'273 | mi_assert_internal(alignment!=0);
| ^~~~~~~~~~~~~~~~~~ |
vstinner
commented
Jul 3, 2025
I updated test_cppext to have a bare minimum test of the internal C API for now: test including |
Note to mysel: GitHub Action skips these tests which require the |
bedevere-bot
commented
Jul 3, 2025
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 69588da 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136247%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
vstinner
commented
Jul 3, 2025
test_cext fails on on multiple buildbots (s390x Fedora Stable Clang PR, AMD64 FreeBSD PR, x86-64 macOS PR, ...) with: |
atexit_datacallbackfunc type is already defined by Include/cpython/pylifecycle.h.
bedevere-bot
commented
Jul 3, 2025
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 49faa0c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136247%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
vstinner
commented
Jul 4, 2025
test_cext fails on ARM64 Windows Non-Debug PR: |
bedevere-bot
commented
Jul 10, 2025
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 7870668 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136247%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
vstinner
commented
Jul 10, 2025
ARM64 Windows Non-Debug PR failed. .TestInteralCAPI.test_build() failed with: and TestInteralCAPI.test_build_c11() fails with: |
vstinner
commented
Jul 10, 2025
!buildbot Windows |
bedevere-bot
commented
Jul 10, 2025
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 30c6265 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136247%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
vstinner
commented
Jul 11, 2025
On ARM64 Windows Non-Debug PR, TestInteralCAPI.test_build_c11() failed with: |
bedevere-bot
commented
Jul 11, 2025
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 9d4d697 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F136247%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Uh oh!
There was an error while loading. Please reload this page.
Remove duplicated definition: atexit_datacallbackfunc type is already defined by Include/cpython/pylifecycle.h.
Remove duplicated definition: atexit_datacallbackfunc type is already defined by Include/cpython/pylifecycle.h.
Remove duplicated definition: atexit_datacallbackfunc type is already defined by Include/cpython/pylifecycle.h.
Remove duplicated definition: atexit_datacallbackfunc type is already defined by Include/cpython/pylifecycle.h.
Uh oh!
There was an error while loading. Please reload this page.