Use compression.zstd from Python >= 3.14 - #639
Draft
bdrung wants to merge 9 commits into
Draft
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #639 +/- ##
==========================================
- Coverage 84.46% 84.15% -0.32%
==========================================
Files 106 106
Lines 21053 20898 -155
Branches 3223 2102 -1121
==========================================
- Hits 17783 17586 -197
- Misses 2793 2846 +53
+ Partials 477 466 -11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
bdrung
marked this pull request as draft
July 27, 2026 13:17
Do not rely on the implementation detail and create a real corrupted core dump for testing `add_gdb_info` in `test_add_gdb_info_damaged_gz_core`.
`CompressedValue.decode_compressed_stream` does not raise an `EOFError` in case the file ended before the end-of-stream marker was reached, but `gzip.GzipFile` would do that.
Make the code more readable and compact by instructing zlib to use native gzip header and trailer processing.
Use the iterator version `decode_compressed_stream` in `CompressedValue.write` to avoid code duplication.
The GitHub action runners provide preview Ubuntu 26.04 images. Switch from Ubuntu 24.04 to 26.04 for the installed tests.
Ubuntu 26.04 LTS "Resolute Raccoon" is the latest Ubuntu LTS version. Since the main branch targets the Ubuntu development release, drop testing on Ubuntu 24.04 LTS "Noble Numbat".
Add Ubuntu 26.10 "Stonking Stingray" and use it for running the linter.
Ubuntu 26.04 "resolute" comes with Python 3.14 and this version ships a `compression.zstd` module that can replace the third-party library `zstandard`. The Python version in Debian stable is too old. So remove `debian:stable-slim` from the CI. Apply black format changes that come with the newer Python version.
Use `compression.zstd` from Python >= 3.14 to avoid relying on the third-party library `zstandard`. Bug: https://launchpad.net/bugs/2161787
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use
compression.zstdfrom Python >= 3.14 to avoid relying on the third-party libraryzstandard.Bug: https://launchpad.net/bugs/2161787