You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addresses dobrac's review comments on the compression primitives PR:
Serialization:
- Split serialization.go into serialization_v3.go and serialization_v4.go
- Each version's wire format is self-contained in one file
- Move Metadata types/constants to metadata.go
- Remove unused exported Serialize() wrapper
V4 wire format:
- Replace packed CompressionTypeNumFrames uint64 with separate
CompressionType uint32 + NumFrames uint32 (no bit-shifting)
- Remove MaxCompressedHeaderSize limit (uint32 prefix + LZ4 frame
boundary are sufficient)
Naming and reuse:
- Rename AddFrames → SetFrames (replaces, not appends)
- Use SetFrames in MergeMappings instead of inline Subset calls
- Remove unnecessary maps.Clone in ToDiffHeader
Formatting:
- Use decimal (%d) instead of hex (%#x) in error messages and
String() methods for consistency with the rest of the codebase
Tests:
- Add test for uploadPartSlices (MD5 hashing, body concatenation)
Documentation:
- Flag BuildFiles incompleteness: only contains builds from current
upload session, not upstream dependencies
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments