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

[M153 Hotfix] Update Git to revert slow commit-graph write #1420

Merged

Conversation

derrickstolee
Copy link
Contributor

See microsoft/git#168 for full details.

v2.22.0 had a change that made writing commit-graph files much
slower by always parsing from pack-files instead of from the
commit-graph file. For some users of the OS repo, this caused
super-slow performance and high memory usage.

See microsoft/git#168 for full details.

v2.22.0 had a change that made writing commit-graph files much
slower by always parsing from pack-files instead of from the
commit-graph file. For some users of the OS repo, this caused
super-slow performance and high memory usage.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
@derrickstolee
Copy link
Contributor Author

/azp run PR - Mac - Build and Unit Test
/azp run PR - Windows - Build and Unit Test
/azp run PR - Windows - Extra
/azp run PR - Windows - Functional Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@derrickstolee
Copy link
Contributor Author

derrickstolee commented Aug 6, 2019

I didn't set up the servicing/* refspace properly with the builds, so the checks are not updating correctly. Here are the builds I started manually:

@derrickstolee
Copy link
Contributor Author

/azp run GitHub VFSForGit Mac Functional Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@derrickstolee derrickstolee merged commit 07a97fb into microsoft:servicing/M153 Aug 6, 2019
derrickstolee added a commit that referenced this pull request Aug 6, 2019
This PR does two things:

1. Updates Git to include the slow commit-graph write fix from microsoft/git#168. Also see #1420 for the M153 hotfix.

2. Removes the multi-pack-index writes from the `PostFetchStep` and instead only writes the multi-pack-index during the `PackfileMaintenanceStep`. In order to get the most out of the step, we need to ensure we have a multi-pack-index before running the `expire` and `repack` steps. Also, we can only expire the packs from that day if they are contained in the multi-pack-index.

If we agree that we should send (2) as a hotfix to the M155 release (in addition to (1), which is necessary), then I'll create a hotfix PR to that branch.
derrickstolee added a commit that referenced this pull request Aug 7, 2019
This PR does two things:

Updates Git to include the slow commit-graph write fix from microsoft/git#168. Also see #1420 for the M153 hotfix.

Removes the multi-pack-index writes from the PostFetchStep and instead only writes the multi-pack-index during the PackfileMaintenanceStep. In order to get the most out of the step, we need to ensure we have a multi-pack-index before running the expire and repack steps. Also, we can only expire the packs from that day if they are contained in the multi-pack-index.

If we agree that we should send (2) as a hotfix to the M155 release (in addition to (1), which is necessary), then I'll create a hotfix PR to that branch.
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.

3 participants