Skip to content

Conversation

bachdavi
Copy link

@bachdavi bachdavi commented Jun 11, 2025

We run into truncation problems because the encoding size is a UInt32. This PR does not necessarily need to be merged, we mostly want to unblock ourselves.

@bachdavi bachdavi changed the title Use UInt64 for encoding size WIP: Use UInt64 for encoding size Jun 11, 2025
@bachdavi bachdavi marked this pull request as draft June 11, 2025 09:21
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.42%. Comparing base (9d682e4) to head (e260171).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #270   +/-   ##
=======================================
  Coverage   93.42%   93.42%           
=======================================
  Files          25       25           
  Lines        2997     2997           
=======================================
  Hits         2800     2800           
  Misses        197      197           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -1,5 +1,5 @@
function encode_tag(io::IO, field_number, wire_type::WireType)
vbyte_encode(io, (UInt32(field_number) << 3) | UInt32(wire_type))
vbyte_encode(io, (UInt64(field_number) << 3) | UInt64(wire_type))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need this change

encode_tag(e, i, START_GROUP)
encode(e, el) # This method has to be generated by protojl
vbyte_encode(e.io, UInt32(END_GROUP))
vbyte_encode(e.io, UInt64(END_GROUP))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need this change

encode_tag(e, i, START_GROUP)
encode(e, x) # This method has to be generated by protojl
vbyte_encode(e.io, UInt32(END_GROUP))
vbyte_encode(e.io, UInt64(END_GROUP))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need this change

@Drvi Drvi changed the title WIP: Use UInt64 for encoding size [Do NOT MERGE] Use UInt64 for encoding size Jul 7, 2025
@Drvi Drvi changed the title [Do NOT MERGE] Use UInt64 for encoding size [DO NOT MERGE] Use UInt64 for encoding size Jul 7, 2025
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.

2 participants