Skip to content

Commit 68b0c14

Browse files
committed
Disable test on ARM for CI stability.
1 parent ae97ece commit 68b0c14

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

test/Microsoft.ML.TestFramework/Attributes/NotArm32FactAttribute.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using System;
65
using System.Runtime.InteropServices;
7-
using Microsoft.ML.TestFrameworkCommon.Attributes;
86

97
namespace Microsoft.ML.TestFramework.Attributes
108
{
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 System.Runtime.InteropServices;
6+
7+
namespace Microsoft.ML.TestFramework.Attributes
8+
{
9+
class NotArmFactAttribute : EnvironmentSpecificFactAttribute
10+
{
11+
public NotArmFactAttribute(string skipMessage) : base(skipMessage)
12+
{
13+
}
14+
15+
/// <inheritdoc />
16+
protected override bool IsEnvironmentSupported()
17+
{
18+
return RuntimeInformation.ProcessArchitecture != Architecture.Arm && RuntimeInformation.ProcessArchitecture != Architecture.Arm64;
19+
}
20+
}
21+
}

test/Microsoft.ML.Tests/ImagesTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Microsoft.ML.Model;
1212
using Microsoft.ML.RunTests;
1313
using Microsoft.ML.Runtime;
14+
using Microsoft.ML.TestFramework.Attributes;
1415
using Microsoft.ML.Transforms.Image;
1516
using Xunit;
1617
using Xunit.Abstractions;
@@ -472,7 +473,7 @@ public void TestBackAndForthConversionWithDifferentOrder()
472473
Done();
473474
}
474475

475-
[Fact]
476+
[NotArmFact("System.Drawing has some issues on ARM. Disabling this test for CI stability. Tracked in https://github.com/dotnet/machinelearning/issues/6043")]
476477
public void TestBackAndForthConversionWithAlphaNoInterleave()
477478
{
478479
IHostEnvironment env = new MLContext(1);

0 commit comments

Comments
 (0)