Skip to content

Commit

Permalink
testing light gbm tests sequentially (dotnet#6968)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgsharp authored Jan 23, 2024
1 parent 125b6d5 commit 54fa44f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Microsoft.ML.TestFramework/BaseTestClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void IDisposable.Dispose()
Cleanup();
Process proc = Process.GetCurrentProcess();
Console.WriteLine($"Finished test: {FullTestName} " +
$"with memory usage {proc.WorkingSet64.ToString("N", CultureInfo.InvariantCulture)}");
$"with memory usage {proc.WorkingSet64.ToString("N", CultureInfo.InvariantCulture)} and max memory usage {proc.PeakWorkingSet64.ToString("N", CultureInfo.InvariantCulture)}");
}

protected virtual void Initialize()
Expand Down
4 changes: 4 additions & 0 deletions test/Microsoft.ML.Tests/TrainerEstimators/TreeEstimators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

namespace Microsoft.ML.Tests.TrainerEstimators
{
[CollectionDefinition(nameof(NoParallelizationDefinition), DisableParallelization = true)]
public class NoParallelizationDefinition { }

[Collection(nameof(NoParallelizationDefinition))]
public partial class TrainerEstimators : TestDataPipeBase
{
/// <summary>
Expand Down

0 comments on commit 54fa44f

Please sign in to comment.