Skip to content

support msgpack 1.2.2 (1.4-maint) - #10219

Merged
ThomasWaldmann merged 1 commit into
borgbackup:1.4-maintfrom
ThomasWaldmann:msgpack-1.2.2-1.4
Aug 27, 2026
Merged

support msgpack 1.2.2 (1.4-maint)#10219
ThomasWaldmann merged 1 commit into
borgbackup:1.4-maintfrom
ThomasWaldmann:msgpack-1.2.2-1.4

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

Allow the msgpack 1.2.2 release: bump the upper bound in pyproject.toml and in is_supported_msgpack().

No changelog entry, as 1.4-maint currently has no "not released yet" section.

The 1.2.1 -> 1.2.2 diff contains only fixes, nothing that affects how borg uses msgpack:

  • Timestamp.from_datetime now uses integer timedelta arithmetic instead of the float datetime.timestamp() (which was off by one second far from the epoch and raised OverflowError near datetime.max)
  • out-of-range timestamp nanoseconds are rejected in all timestamp= modes
  • ExtraData.extra is copied out of the temporary contiguous buffer before that buffer is released (non-contiguous memoryview input)
  • PyFloat_Pack4 return value is checked in msgpack_pack_float
  • new RuntimeError guard against re-entrant Unpacker.feed() from a hook - borg never feeds from inside a hook
  • fallback Unpacker.skip() translates RecursionError into StackError

Master: #10218

🤖 Generated with Claude Code

msgpack 1.2.2 only brings bug fixes relevant to borg's usage:
correct Timestamp.from_datetime for datetimes far from the epoch,
reject out-of-range timestamp nanoseconds, copy ExtraData.extra out of
a temporary contiguous buffer, and a new RuntimeError guard against
re-entrant Unpacker.feed() (borg never feeds from inside a hook).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.15%. Comparing base (92c7f07) to head (9833344).
⚠️ Report is 1 commits behind head on 1.4-maint.

Additional details and impacted files
@@            Coverage Diff             @@
##           1.4-maint   #10219   +/-   ##
==========================================
  Coverage      82.14%   82.15%           
==========================================
  Files             38       38           
  Lines          11475    11475           
  Branches        1807     1807           
==========================================
+ Hits            9426     9427    +1     
+ Misses          1464     1463    -1     
  Partials         585      585           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann
ThomasWaldmann merged commit 7e8b264 into borgbackup:1.4-maint Aug 27, 2026
13 of 14 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the msgpack-1.2.2-1.4 branch August 27, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant