-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Break recursion in GetTypeInfo (#4415)
* Break recursion in GetTypeInfo * Algo fix and test added * Fixed c++ warning * Fix ASM instrumentations being enabled when they should not * Improved RegisterCallTarget traces * Add smoke tests for deeply nested hierarchies * Add net462 support to DeepNestedHierachy test * Minor fix and perf improvement --------- Co-authored-by: Andrew Lock <[email protected]>
- Loading branch information
1 parent
cc4f12b
commit c64aef8
Showing
14 changed files
with
933 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$n = 0 | ||
While($n -lt 100) | ||
{ | ||
#nuke runmanagedunittests --verbosity normal -filter Waf | ||
dotnet test --no-restore --configuration release | ||
$n++ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...est/Datadog.Trace.ClrProfiler.IntegrationTests/SmokeTests/DeepNestedHierarchySmokeTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// <copyright file="DeepNestedHierarchySmokeTest.cs" company="Datadog"> | ||
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc. | ||
// </copyright> | ||
|
||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Datadog.Trace.ClrProfiler.IntegrationTests.SmokeTests; | ||
|
||
public class DeepNestedHierarchySmokeTest : SmokeTestBase | ||
{ | ||
public DeepNestedHierarchySmokeTest(ITestOutputHelper output) | ||
: base(output, "DeepNestedHierarchy") | ||
{ | ||
} | ||
|
||
[SkippableFact] | ||
[Trait("Category", "Smoke")] | ||
public void NoExceptions() | ||
{ | ||
CheckForSmoke(shouldDeserializeTraces: false); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
tracer/test/Datadog.Trace.Security.Unit.Tests/_launch_test.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$n = 0 | ||
While($n -lt 100) | ||
{ | ||
#nuke runmanagedunittests --verbosity normal -filter Waf | ||
dotnet test --no-restore --configuration release | ||
$n++ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tracer/test/test-applications/regression/DeepNestedHierarchy/DeepNestedHierarchy.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net462;netcoreapp2.1;netcoreapp3.0;netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="$(TargetFramework) == 'netcoreapp2.1' OR $(TargetFramework) == 'netcoreapp3.0'"> | ||
<PackageReference Include="Microsoft.AspNetCore.OData" Version="7.7.0" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(TargetFramework) != 'netcoreapp2.1' AND $(TargetFramework) != 'netcoreapp3.0' AND $(TargetFramework) != 'net462'"> | ||
<PackageReference Include="Microsoft.AspNetCore.OData" Version="8.2.0" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.