Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-pipelines-internal-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ extends:
condition: always()
jobs:
- job: Validate_Job_Results
displayName: Validate Job Results
displayName: Job Results
pool:
name: $(DncEngInternalBuildPool)
demands: ImageOverride -equals 1es-windows-2022
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ stages:
condition: always()
jobs:
- job: Validate_Job_Results
displayName: Validate Job Results
displayName: Job Results
pool:
name: $(DncEngPublicBuildPool)
demands: ImageOverride -equals 1es-windows-2022-open
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]
public sealed class SkipOnHelixConditionAttribute : Attribute, ITestCondition
{
public ValueTask<bool> IsMetAsync()
=> new(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is null);

public string SkipReason { get; set; } = "Test does not run on Helix.";
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geography;

public class SqlServerGeographyCollectionTypeTest(SqlServerGeographyCollectionTypeTest.GeographyCollectionTypeFixture fixture, ITestOutputHelper testOutputHelper)
Expand Down Expand Up @@ -175,15 +177,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geography;

public class SqlServerGeographyLineStringTypeTest(
Expand Down Expand Up @@ -169,15 +171,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geography;

public class SqlServerGeographyMultiLineStringTypeTest(
Expand Down Expand Up @@ -173,15 +175,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geography;

public class SqlServerGeographyMultiPointTypeTest(SqlServerGeographyMultiPointTypeTest.MultiPointTypeFixture fixture, ITestOutputHelper testOutputHelper)
Expand Down Expand Up @@ -175,15 +177,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geography;

public class SqlServerGeographyMultiPolygonTypeTest(
Expand Down Expand Up @@ -173,15 +175,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geography;

public class SqlServerGeographyPointTypeTest(SqlServerGeographyPointTypeTest.PointTypeFixture fixture, ITestOutputHelper testOutputHelper)
Expand Down Expand Up @@ -167,15 +169,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geography;

public class SqlServerGeographyPolygonTypeTest(SqlServerGeographyPolygonTypeTest.PolygonTypeFixture fixture, ITestOutputHelper testOutputHelper)
Expand Down Expand Up @@ -167,15 +169,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geometry;

public class SqlServerGeometryCollectionTypeTest(SqlServerGeometryCollectionTypeTest.GeometryCollectionTypeFixture fixture, ITestOutputHelper testOutputHelper)
Expand Down Expand Up @@ -175,15 +177,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geometry;

public class SqlServerGeometryLineStringTypeTest(
Expand Down Expand Up @@ -169,15 +171,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geometry;

public class SqlServerGeometryMultiLineStringTypeTest(
Expand Down Expand Up @@ -173,15 +175,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geometry;

public class SqlServerGeometryMultiPointTypeTest(SqlServerGeometryMultiPointTypeTest.MultiPointTypeFixture fixture, ITestOutputHelper testOutputHelper)
Expand Down Expand Up @@ -175,15 +177,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geometry;

public class SqlServerGeometryMultiPolygonTypeTest(
Expand Down Expand Up @@ -173,15 +175,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using NetTopologySuite.Geometries;

using Microsoft.EntityFrameworkCore.TestUtilities.Xunit;

namespace Microsoft.EntityFrameworkCore.Types.Geometry;

public class SqlServerGeometryPointTypeTest(SqlServerGeometryPointTypeTest.PointTypeFixture fixture, ITestOutputHelper testOutputHelper)
Expand Down Expand Up @@ -167,15 +169,11 @@ FROM [JsonTypeEntity] AS [j]
}
}

// TODO: Currently failing on Helix only, see #36746
[SqlServerCondition(SqlServerCondition.SupportsFunctions2022)]
[SkipOnHelixCondition]
public override async Task ExecuteUpdate_within_json_to_nonjson_column()
{
// TODO: Currently failing on Helix only, see #36746
if (Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null)
{
return;
}

await base.ExecuteUpdate_within_json_to_nonjson_column();

if (Fixture.UsingJsonType)
Expand Down
Loading
Loading