Skip to content

Commit e4e3733

Browse files
authored
Merge pull request #932 from jeschu1/turnoffverify2
[releases/shipped] Turn off Commit Graph Verify
2 parents 0633108 + 9c425c0 commit e4e3733

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

GVFS/GVFS.Common/Maintenance/PostFetchStep.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ protected override void PerformMaintenance()
4848

4949
this.RunGitCommand((process) => process.WriteCommitGraph(this.Context.Enlistment.GitObjectsRoot, this.packIndexes), nameof(GitProcess.WriteCommitGraph));
5050

51+
// Turning off Verify for commit graph due to performance issues.
52+
/*
5153
GitProcess.Result verifyResult = this.RunGitCommand((process) => process.VerifyCommitGraph(this.Context.Enlistment.GitObjectsRoot), nameof(GitProcess.VerifyCommitGraph));
5254
5355
if (verifyResult.ExitCodeIsFailure)
5456
{
5557
this.LogErrorAndRewriteCommitGraph(activity, this.packIndexes);
5658
}
59+
*/
5760
}
5861
}
5962
}

GVFS/GVFS.UnitTests/Maintenance/PostFetchStepTests.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ public void WriteMultiPackIndexAndGraphWithPacks()
7373
this.tracer.StartActivityTracer.RelatedWarningEvents.Count.ShouldEqual(0);
7474
this.tracer.RelatedInfoEvents.Count.ShouldEqual(0);
7575

76-
List<string> commands = this.gitProcess.CommandsRun;
77-
commands.Count.ShouldEqual(4);
76+
List<string> commands = this.gitProcess.CommandsRun;
77+
78+
// Turning off Commit Graph Verify while we address performance issues
79+
// commands.Count.ShouldEqual(4);
80+
commands.Count.ShouldEqual(3);
7881
commands[0].ShouldEqual(this.MultiPackIndexWriteCommand);
7982
commands[1].ShouldEqual(this.MultiPackIndexVerifyCommand);
8083
commands[2].ShouldEqual(this.CommitGraphWriteCommand);
81-
commands[3].ShouldEqual(this.CommitGraphVerifyCommand);
84+
//// commands[3].ShouldEqual(this.CommitGraphVerifyCommand);
8285
}
8386

8487
[TestCase]
@@ -106,15 +109,19 @@ public void RewriteMultiPackIndexOnBadVerify()
106109
this.tracer.StartActivityTracer.RelatedWarningEvents.Count.ShouldEqual(0);
107110

108111
List<string> commands = this.gitProcess.CommandsRun;
109-
commands.Count.ShouldEqual(5);
112+
113+
// Turning off Commit Graph Verify, while we address performance issues
114+
// commands.Count.ShouldEqual(5);
115+
commands.Count.ShouldEqual(4);
110116
commands[0].ShouldEqual(this.MultiPackIndexWriteCommand);
111117
commands[1].ShouldEqual(this.MultiPackIndexVerifyCommand);
112118
commands[2].ShouldEqual(this.MultiPackIndexWriteCommand);
113119
commands[3].ShouldEqual(this.CommitGraphWriteCommand);
114-
commands[4].ShouldEqual(this.CommitGraphVerifyCommand);
120+
//// commands[4].ShouldEqual(this.CommitGraphVerifyCommand);
115121
}
116122

117123
[TestCase]
124+
[Ignore("Turn off Commit Graph Verify, while we address performance issues")]
118125
public void RewriteCommitGraphOnBadVerify()
119126
{
120127
this.TestSetup();

0 commit comments

Comments
 (0)