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

Fix git parser on really big pack files (>2GB) #1413

Merged
merged 6 commits into from
Apr 21, 2021
Merged

Conversation

tonyredondo
Copy link
Member

@tonyredondo tonyredondo commented Apr 19, 2021

This PR fixes an issue detected in very large pack files where the git metadata couldn't be loaded.

The problem was before we were loading the object size using only 2 bytes, the PR changes to multiple bytes.

The PR has been tested loading data from the linux kernel git repo.

@DataDog/apm-dotnet

@tonyredondo tonyredondo self-assigned this Apr 19, 2021
@tonyredondo tonyredondo changed the title Fix git parser on really big pack files (> 2GB) Fix git parser on really big pack files. Apr 19, 2021
@tonyredondo tonyredondo changed the title Fix git parser on really big pack files. Fix git parser on really big pack files (>2GB) Apr 19, 2021
@tonyredondo tonyredondo marked this pull request as ready for review April 19, 2021 16:30
@tonyredondo tonyredondo requested a review from a team as a code owner April 19, 2021 16:30
Copy link
Collaborator

@zacharycmontoya zacharycmontoya left a comment

Choose a reason for hiding this comment

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

I'm no expert on the parsing but LGTM

Copy link
Member

@andrewlock andrewlock left a comment

Choose a reason for hiding this comment

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

I'll take your word the parsing is correct 😄 Just minor nits around error messages

src/Datadog.Trace.Ci.Shared/GitInfo.cs Outdated Show resolved Hide resolved
src/Datadog.Trace.Ci.Shared/GitInfo.cs Outdated Show resolved Hide resolved
src/Datadog.Trace.Ci.Shared/GitInfo.cs Outdated Show resolved Hide resolved
src/Datadog.Trace.Ci.Shared/GitInfo.cs Outdated Show resolved Hide resolved
@tonyredondo tonyredondo force-pushed the tony/fix-git-parser branch from f75105a to 6f8e006 Compare April 21, 2021 12:58
@tonyredondo tonyredondo merged commit 3a98585 into master Apr 21, 2021
@tonyredondo tonyredondo deleted the tony/fix-git-parser branch April 21, 2021 15:48
@andrewlock andrewlock added this to the 1.26.1 milestone Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants