Skip to content

Commit f0a8a76

Browse files
disable test parallelization for ML.Test assembly to avoid crash (#4896)
* disable test parallelization for ML.Test assembly to avoid crash * refine comments
1 parent acce352 commit f0a8a76

File tree

8 files changed

+9
-16
lines changed

8 files changed

+9
-16
lines changed

test/Microsoft.ML.Tests/DatabaseLoaderTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ public void IrisVectorLightGbm()
170170
}
171171

172172
[LightGBMFact]
173-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
174-
[Trait("Category", "SkipInCI")]
175173
public void IrisVectorLightGbmWithLoadColumnName()
176174
{
177175
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))

test/Microsoft.ML.Tests/FeatureContributionTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ public void TestPoissonRegression()
9191
}
9292

9393
[Fact]
94-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
95-
[Trait("Category", "SkipInCI")]
9694
public void TestGAMRegression()
9795
{
9896
TestFeatureContribution(ML.Regression.Trainers.Gam(), GetSparseDataset(numberOfInstances: 100), "GAMRegression");

test/Microsoft.ML.Tests/OnnxConversionTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ public void TestVectorWhiteningOnnxConversionTest()
339339
}
340340

341341
[Fact]
342-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
343-
[Trait("Category", "SkipInCI")]
344342
public void PlattCalibratorOnnxConversionTest()
345343
{
346344
var mlContext = new MLContext(seed: 1);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Xunit;
6+
7+
// TODO: [TEST_STABILITY] disable test parallelization for this assembly as running test in parallel sometimes cause test host process to crash
8+
[assembly: CollectionBehavior(DisableTestParallelization = true)]
9+

test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamplesDynamicApi.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,6 @@ public void GlobalFeatureImportance()
365365
}
366366

367367
[Fact]
368-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
369-
[Trait("Category", "SkipInCI")]
370368
public void GetLinearModelWeights()
371369
{
372370
var dataPath = GetDataPath("housing.txt");

test/Microsoft.ML.Tests/TrainerEstimators/TrainerEstimators.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ public void KMeansEstimator()
8787
/// HogwildSGD TrainerEstimator test (logistic regression).
8888
/// </summary>
8989
[Fact]
90-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
91-
[Trait("Category", "SkipInCI")]
9290
public void TestEstimatorHogwildSGD()
9391
{
9492
var trainers = new[] { ML.BinaryClassification.Trainers.SgdCalibrated(l2Regularization: 0, numberOfIterations: 80),

test/Microsoft.ML.Tests/TrainerEstimators/TreeEstimators.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ public void LightGBMBinaryEstimator()
6969
}
7070

7171
[LightGBMFact]
72-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
73-
[Trait("Category", "SkipInCI")]
7472
public void LightGBMBinaryEstimatorUnbalanced()
7573
{
7674
var (pipe, dataView) = GetBinaryClassificationPipeline();
@@ -95,8 +93,6 @@ public void LightGBMBinaryEstimatorUnbalanced()
9593
/// LightGBMBinaryTrainer CorrectSigmoid test
9694
/// </summary>
9795
[LightGBMFact]
98-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
99-
[Trait("Category", "SkipInCI")]
10096
public void LightGBMBinaryEstimatorCorrectSigmoid()
10197
{
10298
var (pipe, dataView) = GetBinaryClassificationPipeline();

test/Microsoft.ML.Tests/Transformers/NormalizerTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,6 @@ public void GcnWorkout()
751751
}
752752

753753
[Fact]
754-
//Skipping test temporarily. This test will be re-enabled once the cause of failures has been determined
755-
[Trait("Category", "SkipInCI")]
756754
public void TestGcnNormCommandLine()
757755
{
758756
Assert.Equal(Maml.Main(new[] { @"showschema loader=Text{col=A:R4:0-10} xf=GcnTransform{col=B:A} in=f:\2.txt" }), (int)0);

0 commit comments

Comments
 (0)