Skip to content

Commit

Permalink
Subset of tests moved to net 7.0 due to Internal CLR error. (0x801315…
Browse files Browse the repository at this point in the history
…06).
  • Loading branch information
jaffinito committed Nov 17, 2023
1 parent 799a4ab commit 7560970
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,30 @@ public ConsoleDynamicMethodFixtureCoreLatest()
}
}

/// <summary>
/// Use this fixture for High Security Mode tests
/// </summary>
public class ConsoleDynamicMethodFixtureCore70HSM : ConsoleDynamicMethodFixtureCore70
{
public override string TestSettingCategory { get { return "HSM"; } }
public ConsoleDynamicMethodFixtureCore70HSM()
{
}

}

/// <summary>
/// Use this fixture for Configurable Security Policy tests
/// </summary>
public class ConsoleDynamicMethodFixtureCore70CSP : ConsoleDynamicMethodFixtureCore70
{
public override string TestSettingCategory { get { return "CSP"; } }
public ConsoleDynamicMethodFixtureCore70CSP()
{
}

}

/// <summary>
/// Use this fixture for High Security Mode tests
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ public CustomSpanNameApiTestsFWLatest(ConsoleDynamicMethodFixtureFWLatest fixtur
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class CustomSpanNameApiTestsCoreLatest : CustomSpanNameApiTests<ConsoleDynamicMethodFixtureCoreLatest>
public class CustomSpanNameApiTestsCoreLatest : CustomSpanNameApiTests<ConsoleDynamicMethodFixtureCore70>
{
public CustomSpanNameApiTestsCoreLatest(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public CustomSpanNameApiTestsCoreLatest(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output)
{
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 New Relic, Inc. All rights reserved.
// Copyright 2020 New Relic, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0


Expand Down Expand Up @@ -59,10 +59,12 @@ public TransactionNameTestsFW(ConsoleDynamicMethodFixtureFWLatest fixture, ITest
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class TransactionNameTestsCore : TransactionNameTests<ConsoleDynamicMethodFixtureCoreLatest>
public class TransactionNameTestsCore : TransactionNameTests<ConsoleDynamicMethodFixtureCore70>
{
public TransactionNameTestsCore(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public TransactionNameTestsCore(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ public TransactionUserIdTestsFW(ConsoleDynamicMethodFixtureFWLatest fixture, ITe
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class TransactionUserIdTestsCore : TransactionUserIdTests<ConsoleDynamicMethodFixtureCoreLatest>
public class TransactionUserIdTestsCore : TransactionUserIdTests<ConsoleDynamicMethodFixtureCore70>
{
public TransactionUserIdTestsCore(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public TransactionUserIdTestsCore(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output)
{
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 New Relic, Inc. All rights reserved.
// Copyright 2020 New Relic, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0


Expand Down Expand Up @@ -87,10 +87,12 @@ public AppDomainCachingEnabledTestsFWLatestTests(ConsoleDynamicMethodFixtureFWLa
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class AppDomainCachingEnabledTestsNetCoreLatestTests : AppDomainCachingTestsBase<ConsoleDynamicMethodFixtureCoreLatest>
public class AppDomainCachingEnabledTestsNetCoreLatestTests : AppDomainCachingTestsBase<ConsoleDynamicMethodFixtureCore70>
{
public AppDomainCachingEnabledTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public AppDomainCachingEnabledTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output, false)
{
}
Expand All @@ -107,10 +109,12 @@ public AppDomainCachingDisabledTestsFWLatestTests(ConsoleDynamicMethodFixtureFWL
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class AppDomainCachingDisabledTestsNetCoreLatestTests : AppDomainCachingTestsBase<ConsoleDynamicMethodFixtureCoreLatest>
public class AppDomainCachingDisabledTestsNetCoreLatestTests : AppDomainCachingTestsBase<ConsoleDynamicMethodFixtureCore70>
{
public AppDomainCachingDisabledTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public AppDomainCachingDisabledTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output, true)
{
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 New Relic, Inc. All rights reserved.
// Copyright 2020 New Relic, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0


Expand Down Expand Up @@ -29,10 +29,12 @@ public NetStandardLibraryInstrumentationNetCoreOldest(ConsoleDynamicMethodFixtur
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class NetStandardLibraryInstrumentationNetCoreLatest : NetStandardLibraryInstrumentation<ConsoleDynamicMethodFixtureCoreLatest>
public class NetStandardLibraryInstrumentationNetCoreLatest : NetStandardLibraryInstrumentation<ConsoleDynamicMethodFixtureCore70>
{
public NetStandardLibraryInstrumentationNetCoreLatest(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output) : base(fixture, output)
public NetStandardLibraryInstrumentationNetCoreLatest(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output) : base(fixture, output)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 New Relic, Inc. All rights reserved.
// Copyright 2020 New Relic, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

using System.Collections.Generic;
Expand Down Expand Up @@ -88,18 +88,23 @@ public Log4netCSPDisablesForwardingTestsFWLatestTests(ConsoleDynamicMethodFixtur
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class Log4netHSMDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCoreLatestHSM>
public class Log4netHSMDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCore70HSM>
{
public Log4netHSMDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatestHSM fixture, ITestOutputHelper output)
public Log4netHSMDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70HSM fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.Log4net)
{
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class Log4netCSPDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCoreLatestCSP>
public class Log4netCSPDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCore70CSP>
{
public Log4netCSPDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatestCSP fixture, ITestOutputHelper output)
public Log4netCSPDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70CSP fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.Log4net)
{
}
Expand Down Expand Up @@ -165,10 +170,13 @@ public SerilogHSMDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodF
{
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class SerilogCSPDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCoreLatestCSP>
public class SerilogCSPDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCore70CSP>
{
public SerilogCSPDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatestCSP fixture, ITestOutputHelper output)
public SerilogCSPDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70CSP fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.Serilog)
{
}
Expand Down Expand Up @@ -196,18 +204,23 @@ public NLogCSPDisablesForwardingTestsFWLatestTests(ConsoleDynamicMethodFixtureFW
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class NLogHSMDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCoreLatestHSM>
public class NLogHSMDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCore70HSM>
{
public NLogHSMDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatestHSM fixture, ITestOutputHelper output)
public NLogHSMDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70HSM fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.NLog)
{
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class NLogCSPDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCoreLatestCSP>
public class NLogCSPDisablesForwardingTestsNetCoreLatestTests : HSMOrCSPDisablesForwardingTestsBase<ConsoleDynamicMethodFixtureCore70CSP>
{
public NLogCSPDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatestCSP fixture, ITestOutputHelper output)
public NLogCSPDisablesForwardingTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70CSP fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.NLog)
{
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 New Relic, Inc. All rights reserved.
// Copyright 2020 New Relic, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

using System.Linq;
Expand Down Expand Up @@ -81,10 +81,12 @@ public Log4netZeroMaxSamplesStoredTestsFW462Tests(ConsoleDynamicMethodFixtureFW4
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class Log4netZeroMaxSamplesStoredTestsNetCoreLatestTests : ZeroMaxSamplesStoredTestsBase<ConsoleDynamicMethodFixtureCoreLatest>
public class Log4netZeroMaxSamplesStoredTestsNetCoreLatestTests : ZeroMaxSamplesStoredTestsBase<ConsoleDynamicMethodFixtureCore70>
{
public Log4netZeroMaxSamplesStoredTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public Log4netZeroMaxSamplesStoredTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.Log4net)
{
}
Expand All @@ -103,10 +105,12 @@ public Log4netZeroMaxSamplesStoredTestsNetCoreOldestTests(ConsoleDynamicMethodFi

#region MicrosoftLogging

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class MicrosoftLoggingZeroMaxSamplesStoredTestsNetCoreLatestTests : ZeroMaxSamplesStoredTestsBase<ConsoleDynamicMethodFixtureCoreLatest>
public class MicrosoftLoggingZeroMaxSamplesStoredTestsNetCoreLatestTests : ZeroMaxSamplesStoredTestsBase<ConsoleDynamicMethodFixtureCore70>
{
public MicrosoftLoggingZeroMaxSamplesStoredTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public MicrosoftLoggingZeroMaxSamplesStoredTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.MicrosoftLogging)
{
}
Expand Down Expand Up @@ -210,10 +214,12 @@ public NLogZeroMaxSamplesStoredTestsFW462Tests(ConsoleDynamicMethodFixtureFW462
}
}

// Test fails in net8.0 with "Fatal error. Internal CLR error. (0x80131506)" and "Remote application exited with a failure exit code of C0000005".
// Keep as net7.0.
[NetCoreTest]
public class NLogZeroMaxSamplesStoredTestsNetCoreLatestTests : ZeroMaxSamplesStoredTestsBase<ConsoleDynamicMethodFixtureCoreLatest>
public class NLogZeroMaxSamplesStoredTestsNetCoreLatestTests : ZeroMaxSamplesStoredTestsBase<ConsoleDynamicMethodFixtureCore70>
{
public NLogZeroMaxSamplesStoredTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCoreLatest fixture, ITestOutputHelper output)
public NLogZeroMaxSamplesStoredTestsNetCoreLatestTests(ConsoleDynamicMethodFixtureCore70 fixture, ITestOutputHelper output)
: base(fixture, output, LoggingFramework.NLog)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<PackageReference Include="System.Data.SqlClient" Version="4.4.0" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.4" Condition="'$(TargetFramework)' == 'net7.0'" />
<!--<PackageReference Include="System.Data.SqlClient" Version="4.8.4" Condition="'$(TargetFramework)' == 'net8.0'" />-->
<!-- Package does not support net8.0 -->

<!--Microsoft.Data.SqlClient-->
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.0.19239.1" Condition="'$(TargetFramework)' == 'net462'" />
Expand All @@ -59,6 +60,7 @@
<PackageReference Include="Microsoft.Data.SqlClient" Version="3.1.1" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.1" Condition="'$(TargetFramework)' == 'net7.0'" />
<!--<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.2" Condition="'$(TargetFramework)' == 'net8.0'" />-->
<!-- Package does not support net8.0 -->

<!-- MySql.Data framework references -->
<PackageReference Include="MySql.Data" Version="6.10.7" Condition="'$(TargetFramework)' == 'net462'" />
Expand Down

0 comments on commit 7560970

Please sign in to comment.