Skip to content

gh-155819: Add const qualifier to Py_buffer.format #205932

gh-155819: Add const qualifier to Py_buffer.format

gh-155819: Add const qualifier to Py_buffer.format #205932

Triggered via pull request August 15, 2026 03:49
Status Failure
Total duration 29m 36s
Artifacts 2

build.yml

on: pull_request
Change detection  /  Create context from changed files
16s
Change detection / Create context from changed files
Matrix: Address sanitizer
Matrix: build-macos
Matrix: build-san
Matrix: Ubuntu SSL tests
Matrix: build-ubuntu
Matrix: build-windows
Matrix: cifuzz
Docs  /  Doctest
7m 6s
Docs / Doctest
Docs  /  Check EPUB
2m 40s
Docs / Check EPUB
Check if Autoconf files are up to date
35s
Check if Autoconf files are up to date
Check if generated files are up to date
4m 4s
Check if generated files are up to date
C API Docs  /  Check if all C APIs are documented
12s
C API Docs / Check if all C APIs are documented
Ubuntu (installed)  /  build, install and test
6m 16s
Ubuntu (installed) / build, install and test
iOS
20m 6s
iOS
Emscripten  /  build and test
19m 22s
Emscripten / build and test
WASI  /  build and test
5m 53s
WASI / build and test
Hypothesis tests on Ubuntu
10m 24s
Hypothesis tests on Ubuntu
Cross build Linux
5m 8s
Cross build Linux
Matrix: build-android
Docs  /  ...  /  Check for removed HTML IDs
2m 5s
Docs / Check for removed HTML IDs / Check for removed HTML IDs
All required checks pass
3s
All required checks pass
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 60 warnings
Ubuntu / build and test (ubuntu-26.04)
Process completed with exit code 1.
Ubuntu / build and test (ubuntu-26.04-arm)
Process completed with exit code 1.
Docs / Docs
Process completed with exit code 2.
Docs / Check EPUB
Process completed with exit code 1.
macOS / build and test (macos-26-intel)
Process completed with exit code 1.
Ubuntu (bolt) / build and test (ubuntu-26.04)
Process completed with exit code 1.
All required checks pass
Process completed with exit code 1.
Ubuntu / build and test (ubuntu-26.04): Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu / build and test (ubuntu-26.04): Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu / build and test (ubuntu-26.04): Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu / build and test (ubuntu-26.04-arm): Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu / build and test (ubuntu-26.04-arm): Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu / build and test (ubuntu-26.04-arm): Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
macOS / build and test (macos-26-intel)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-26-intel)
The following taps are not trusted: aws/tap Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required. Untap them with: brew untap aws/tap Trust specific formulae, casks and commands with: brew trust --formula <user>/<tap>/<formula> brew trust --cask <user>/<tap>/<cask> brew trust --command <user>/<tap>/<command> Whole-tap trust is broader and includes all current and future formulae, casks and commands from the listed taps. Trust whole taps with: brew trust aws/tap To disable trust checks: export HOMEBREW_NO_REQUIRE_TAP_TRUST=1 This is not recommended and will be removed in a later release. For more information, see: https://docs.brew.sh/Tap-Trust
Cross build Linux: Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Cross build Linux: Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Cross build Linux: Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Cross build Linux: Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Cross build Linux: Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (installed) / build, install and test: Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (installed) / build, install and test: Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (installed) / build, install and test: Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (bolt) / build and test (ubuntu-26.04): Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (bolt) / build and test (ubuntu-26.04): Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (bolt) / build and test (ubuntu-26.04): Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (free-threading) / build and test (ubuntu-26.04-arm): Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (free-threading) / build and test (ubuntu-26.04-arm): Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (free-threading) / build and test (ubuntu-26.04-arm): Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Hypothesis tests on Ubuntu
No files were found with the provided path: /home/runner/work/cpython/cpython-builddir/.hypothesis/examples/. No artifacts will be uploaded.
Hypothesis tests on Ubuntu: Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Hypothesis tests on Ubuntu: Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Hypothesis tests on Ubuntu: Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
macOS / build and test (macos-26)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-26)
The following taps are not trusted: aws/tap Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required. Untap them with: brew untap aws/tap Trust specific formulae, casks and commands with: brew trust --formula <user>/<tap>/<formula> brew trust --cask <user>/<tap>/<cask> brew trust --command <user>/<tap>/<command> Whole-tap trust is broader and includes all current and future formulae, casks and commands from the listed taps. Trust whole taps with: brew trust aws/tap To disable trust checks: export HOMEBREW_NO_REQUIRE_TAP_TRUST=1 This is not recommended and will be removed in a later release. For more information, see: https://docs.brew.sh/Tap-Trust
Windows / Build and test (x64, tail-call): Modules/_testbuffer.c#L669
'initializing': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows / Build and test (x64, tail-call): Modules/_testbuffer.c#L168
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows / Build and test (x64, tail-call): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, tail-call): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Modules/_testbuffer.c#L669
'initializing': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Modules/_testbuffer.c#L168
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, tail-call): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
macOS (free-threading) / build and test (macos-26)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS (free-threading) / build and test (macos-26)
The following taps are not trusted: aws/tap Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required. Untap them with: brew untap aws/tap Trust specific formulae, casks and commands with: brew trust --formula <user>/<tap>/<formula> brew trust --cask <user>/<tap>/<cask> brew trust --command <user>/<tap>/<command> Whole-tap trust is broader and includes all current and future formulae, casks and commands from the listed taps. Trust whole taps with: brew trust aws/tap To disable trust checks: export HOMEBREW_NO_REQUIRE_TAP_TRUST=1 This is not recommended and will be removed in a later release. For more information, see: https://docs.brew.sh/Tap-Trust
Ubuntu (free-threading) / build and test (ubuntu-26.04): Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (free-threading) / build and test (ubuntu-26.04): Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Ubuntu (free-threading) / build and test (ubuntu-26.04): Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Windows (free-threading) / Build and test (x64, switch-case): Modules/_testbuffer.c#L669
'initializing': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Modules/_testbuffer.c#L168
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (x64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/_testbuffer.c#L669
'initializing': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows / Build and test (arm64, switch-case): Modules/_testbuffer.c#L168
'function': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows / Build and test (arm64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (arm64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Address sanitizer (ubuntu-26.04): Modules/_testbuffer.c#L669
initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Address sanitizer (ubuntu-26.04): Modules/_testbuffer.c#L168
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Address sanitizer (ubuntu-26.04): Objects/memoryobject.c#L126
passing argument 1 of ‘PyMem_Free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Windows / Build and test (x64, switch-case): Modules/_testbuffer.c#L669
'initializing': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows / Build and test (x64, switch-case): Modules/_testbuffer.c#L168
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows / Build and test (x64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows / Build and test (x64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [D:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Modules/_testbuffer.c#L669
'initializing': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Modules/_testbuffer.c#L168
'function': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\_testbuffer.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Windows (free-threading) / Build and test (arm64, switch-case): Objects/memoryobject.c#L126
'function': different 'const' qualifiers [C:\a\cpython\cpython\PCbuild\_freeze_module.vcxproj]

Artifacts

Produced during runtime
Name Size Digest
UBSan-logs-default
1.59 KB
sha256:981c469d5c41f06c2088e2e15172a1ae7b54863cdae27e0a11cc05c83aa7f1e7
html-ids-head.json.gz
125 KB
sha256:29c0f5a5f68d20e03dfe0b5bbecb30bd068013f24d303ef490d3a4481d8f11f8