Skip to content

gh-158494: zipimport: raise ZipImportError for corrupt deflate data #217465

gh-158494: zipimport: raise ZipImportError for corrupt deflate data

gh-158494: zipimport: raise ZipImportError for corrupt deflate data #217465

Triggered via pull request November 1, 2026 09:10
Status Failure
Total duration 28m 37s
Artifacts 4

build.yml

on: pull_request
Change detection  /  Create context from changed files
16s
Change detection / Create context from changed files
Matrix: build-ios
Matrix: build-macos
Matrix: build-san
Matrix: Ubuntu SSL tests
Matrix: build-ubuntu
Matrix: build-windows
Matrix: cifuzz
Waiting for pending jobs
Docs  /  Doctest
5m 54s
Docs / Doctest
Docs  /  Check EPUB
2m 21s
Docs / Check EPUB
Check if Autoconf files are up to date
26s
Check if Autoconf files are up to date
Check if generated files are up to date
4m 53s
Check if generated files are up to date
C API Docs  /  Check if all C APIs are documented
10s
C API Docs / Check if all C APIs are documented
Ubuntu (installed)  /  build, install and test
5m 45s
Ubuntu (installed) / build, install and test
Emscripten  /  build and test
18m 12s
Emscripten / build and test
WASI  /  build and test
4m 29s
WASI / build and test
Hypothesis tests on Ubuntu
7m 34s
Hypothesis tests on Ubuntu
Lazy imports enabled  /  Run Tests with lazy_imports=all
12m 53s
Lazy imports enabled / Run Tests with lazy_imports=all
Cross build Linux
4m 36s
Cross build Linux
Matrix: build-android
Docs  /  ...  /  Check for removed HTML IDs
2m 10s
Docs / Check for removed HTML IDs / Check for removed HTML IDs
All required checks pass
2s
All required checks pass
Fit to window
Zoom out
Zoom in

Annotations

23 errors, 6 warnings, and 11 notices
Docs / Docs
Process completed with exit code 2.
Docs / Check EPUB
Process completed with exit code 1.
Windows / Build and test (arm64, switch-case)
Process completed with exit code 2.
test_syntax_error_in_source_with_valid_pyc (test.test_zipimport.ZStdCompressedZipImportTestCase.test_syntax_error_in_source_with_valid_pyc): Lib/test/test_zipimport.py#L286
AssertionError: 'C:\\[17 chars]on\\build\\test_python_6956æ\\junk95142.zip\\ziptestmodule.py' != 'C:\\[17 chars]on\\build\\test_python_6956æ\\junk95142.zip\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\ziptestmodule.pyc ? +
testGetCompiledSource (test.test_zipimport.ZStdCompressedZipImportTestCase.testGetCompiledSource): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
testBoth (test.test_zipimport.ZStdCompressedZipImportTestCase.testBoth): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
test_syntax_error_in_source_with_valid_pyc (test.test_zipimport.UncompressedZipImportTestCase.test_syntax_error_in_source_with_valid_pyc): Lib/test/test_zipimport.py#L286
AssertionError: 'C:\\[17 chars]on\\build\\test_python_6956æ\\junk95142.zip\\ziptestmodule.py' != 'C:\\[17 chars]on\\build\\test_python_6956æ\\junk95142.zip\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\ziptestmodule.pyc ? +
testGetCompiledSource (test.test_zipimport.UncompressedZipImportTestCase.testGetCompiledSource): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
testBoth (test.test_zipimport.UncompressedZipImportTestCase.testBoth): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
test_syntax_error_in_source_with_valid_pyc (test.test_zipimport.DeflateCompressedZipImportTestCase.test_syntax_error_in_source_with_valid_pyc): Lib/test/test_zipimport.py#L286
AssertionError: 'C:\\[17 chars]on\\build\\test_python_6956æ\\junk95142.zip\\ziptestmodule.py' != 'C:\\[17 chars]on\\build\\test_python_6956æ\\junk95142.zip\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\ziptestmodule.pyc ? +
testGetCompiledSource (test.test_zipimport.DeflateCompressedZipImportTestCase.testGetCompiledSource): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
testBoth (test.test_zipimport.DeflateCompressedZipImportTestCase.testBoth): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_6956æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_6956æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
Windows (free-threading) / Build and test (arm64, switch-case)
Process completed with exit code 2.
test_syntax_error_in_source_with_valid_pyc (test.test_zipimport.ZStdCompressedZipImportTestCase.test_syntax_error_in_source_with_valid_pyc): Lib/test/test_zipimport.py#L286
AssertionError: 'C:\\[17 chars]on\\build\\test_python_8616æ\\junk95142.zip\\ziptestmodule.py' != 'C:\\[17 chars]on\\build\\test_python_8616æ\\junk95142.zip\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\ziptestmodule.pyc ? +
testGetCompiledSource (test.test_zipimport.ZStdCompressedZipImportTestCase.testGetCompiledSource): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
testBoth (test.test_zipimport.ZStdCompressedZipImportTestCase.testBoth): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
test_syntax_error_in_source_with_valid_pyc (test.test_zipimport.UncompressedZipImportTestCase.test_syntax_error_in_source_with_valid_pyc): Lib/test/test_zipimport.py#L286
AssertionError: 'C:\\[17 chars]on\\build\\test_python_8616æ\\junk95142.zip\\ziptestmodule.py' != 'C:\\[17 chars]on\\build\\test_python_8616æ\\junk95142.zip\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\ziptestmodule.pyc ? +
testGetCompiledSource (test.test_zipimport.UncompressedZipImportTestCase.testGetCompiledSource): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
testBoth (test.test_zipimport.UncompressedZipImportTestCase.testBoth): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
test_syntax_error_in_source_with_valid_pyc (test.test_zipimport.DeflateCompressedZipImportTestCase.test_syntax_error_in_source_with_valid_pyc): Lib/test/test_zipimport.py#L286
AssertionError: 'C:\\[17 chars]on\\build\\test_python_8616æ\\junk95142.zip\\ziptestmodule.py' != 'C:\\[17 chars]on\\build\\test_python_8616æ\\junk95142.zip\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\ziptestmodule.pyc ? +
testGetCompiledSource (test.test_zipimport.DeflateCompressedZipImportTestCase.testGetCompiledSource): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
testBoth (test.test_zipimport.DeflateCompressedZipImportTestCase.testBoth): Lib/test/test_zipimport.py#L174
AssertionError: 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.py' != 'C:\\[27 chars]\test_python_8616æ\\junk95142.zip\\pre\\fix\\ziptestmodule.pyc' - C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.py + C:\a\cpython\cpython\build\test_python_8616æ\junk95142.zip\pre\fix\ziptestmodule.pyc ? +
All required checks pass
Process completed with exit code 1.
Cross build Linux: Python/marshal.c#L740
unused variable ‘w’ [-Wunused-variable]
Ubuntu (installed) / build, install and test: Python/marshal.c#L740
unused variable ‘w’ [-Wunused-variable]
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.
macOS / 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)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-26-intel)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
Change detection / Create context from changed files
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
C API Docs / Check if all C APIs are documented
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Docs / Docs
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Docs / Check EPUB
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Docs / Check for removed HTML IDs / Check for removed HTML IDs
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Android (aarch64)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
macOS / build and test (macos-26)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
macOS (free-threading) / build and test (macos-26)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
iOS
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
iOS (free-threading)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
All required checks pass
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"

Artifacts

Produced during runtime
Name Size Digest
ASan-logs-default
2.49 KB
sha256:91b1458a5b132f7e892ea8a02836337ab55970baeca4dffb03e59885a9eb3461
MSan-logs-default
209 Bytes
sha256:64d0b35fa5c0712d0d47def83ea178690b63d0a3d82e7071cf693fb8590f6e52
UBSan-logs-default
1.17 KB
sha256:98669b0fc45779c9f17658438c83d8d3b636a0785f9b747aff4e1797f8b343ed
html-ids-head.json.gz
132 KB
sha256:f7a57ebc44c85885a3852592a1a6c2af9fe33f38db9cccd337fe60d84e4aceb2