Repository navigation
Fix VCDiff decoding after an empty base payload - #734
Kayvan-Zahiri wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. WalkthroughVCDIFF decoding now accepts empty base payloads. It still raises the missing-base error when the base payload is ChangesEmpty-base VCDIFF decoding
Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
ttypic
left a comment
There was a problem hiding this comment.
Hi @Kayvan-Zahiri,
Thanks a lot for contributing! is you PR ready for review?
We usually don't proactively review draft PRs
A delta following an empty full message currently raises error 40018 even though the real VCDiff decoder can decode it. The base-payload guard conflates empty strings/bytes/bytearrays with an absent base.
Check explicitly for
None, preserving the missing-base error. Add six publicMessagedecoding tests using the real decoder and a literal-only VCDIFF window, including batch chaining and missing/nonempty-base controls.Validation: four regressions failed and two controls passed before the fix; 120 offline encoding/type/channel delta tests pass, seven skip, after it. Full repository Ruff check passes. Python 3.12; no hosted Ably requests or full integration/version matrix run.
AI-assisted contribution; maintainer review pending.
Summary by CodeRabbit