Skip to content
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

Implement Go's varint 64 bit integer decoding in binary decoder #1589

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

ddelnano
Copy link
Member

Summary: Implement Go's varint 64 bit integer decoding in binary decoder

Our go version detection has been the source of a few bugs (#1300, #1318). This has highlighted that our go version detection is very different than how the go version cli works. In order to align our version detection with the go cli, we need to be able to decode these varints since parts of Go's buildinfo header use this encoding (source).

Relevant Issues: #1318 #1300

Type of change: /kind feature

Test Plan: Used the following go program to draft the new test cases

Screenshot 2023-06-28 at 8 51 11 AM

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
@ddelnano ddelnano requested review from etep and a team June 28, 2023 15:52
@ddelnano ddelnano marked this pull request as ready for review June 28, 2023 16:24
@ddelnano
Copy link
Member Author

@pixie-io/maintainers with Pete out this week, could you give this the first review pass?

Copy link
Member

@vihangm vihangm left a comment

Choose a reason for hiding this comment

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

src/stirling/utils/binary_decoder.h Show resolved Hide resolved
…an an error

Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
@aimichelle aimichelle merged commit 123b93b into pixie-io:main Jul 11, 2023
@ddelnano ddelnano deleted the ddelnano/add-uvar-int-encoding branch October 30, 2023 15:28
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.

4 participants