-
Notifications
You must be signed in to change notification settings - Fork 584
feat: remove bincode support, use msgpack-compact only #19047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
66b8f01 to
ece175f
Compare
This moves us over to the msgpack-compact serialization format for ACIR. As well, the coming changes will no longer have msgpack_pack generated for these objects, as it was code only used in tests. I have removed such tests. The bbapi tests that use this are nice but would need to be moved to tests that consume acir artifacts. but most were quite simple. # Summary - Replaced `deserialize_any_format` with `deserialize_msgpack_compact`, moving everything to new msgpack format - Updated test files to use msgpack serialization - Removed bincode declarations and implementations from serde files Fixes A-450 Co-authored-by: federicobarbacovi <171914500+federicobarbacovi@users.noreply.github.com>
2c1ae99 to
bddae56
Compare
| BB_ASSERT(!buf.empty(), "deserialize_msgpack_compact: buffer is empty"); | ||
|
|
||
| // Expect format marker for msgpack or msgpack-compact | ||
| const uint8_t FORMAT_MSGPACK = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this start at 2 because it was implicitly the 2nd option after bincode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we don't want to change anyway to reduce breaking-ness?
Flakey Tests🤖 says: This CI run detected 3 tests that failed, but were tolerated due to a .test_patterns.yml entry. |
This moves us over to the msgpack-compact serialization format for ACIR. As well, the coming changes will no longer have msgpack_pack generated for these objects, as it was code only used in tests. I have removed such tests. The bbapi tests that use this are nice but would need to be moved to tests that consume acir artifacts. but most were quite simple.
Summary
deserialize_any_formatwithdeserialize_msgpack_compact, moving everything to new msgpack formatFixes A-450