Reenable gcdump test (#39555)
authorDavid Mason <davmason@microsoft.com>
Mon, 20 Jul 2020 09:41:26 +0000 (02:41 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2020 09:41:26 +0000 (02:41 -0700)
lower gcdump thresholds to make test pass on all platforms/architectures

src/coreclr/tests/issues.targets
src/tests/tracing/eventpipe/gcdump/gcdump.cs

index e19d521..eb1f6be 100644 (file)
@@ -5,9 +5,6 @@
         <ExcludeList Include="$(XunitTestBinBase)/tracing/tracecontrol/tracecontrol/*">
             <Issue>https://github.com/dotnet/runtime/issues/11204</Issue>
         </ExcludeList>
-        <ExcludeList Include="$(XunitTestBinBase)/tracing/eventpipe/gcdump/gcdump/*">
-            <Issue>https://github.com/dotnet/runtime/issues/39361</Issue>
-        </ExcludeList>
         <ExcludeList Include="$(XunitTestBinBase)/readytorun/DynamicMethodGCStress/DynamicMethodGCStress/*">
             <Issue>timeout</Issue>
         </ExcludeList>
index 1ee96f8..963544d 100644 (file)
@@ -82,17 +82,15 @@ namespace Tracing.Tests.EventSourceError
 
             return () => 
             {
-                // These values are ~80% (rounded to nice whole numbers) of the values
-                // I saw when writing the test. The idea is that I want to catch
-                // any real deviation in the number of types, but don't want to have
-                // to maintain this test as the number of types varies. (And they will vary due to 
-                // framework code changes). If this test needs any sort of ongoing maintenance
-                // just change all these values to a low number like 10 and move on.
-                if (_bulkTypeCount > 125
-                    && _bulkNodeCount > 600
-                    && _bulkEdgeCount > 850
-                    && _bulkRootEdgeCount > 250
-                    && _bulkRootStaticVarCount > 70)
+                // Hopefully it is low enough to be resilient to changes in the runtime
+                // and high enough to catch issues. There should be between hundreds and thousands
+                // for each, but the number is variable and the point of the test is to verify
+                // that we get any events at all.
+                if (_bulkTypeCount > 50
+                     && _bulkNodeCount > 50
+                     && _bulkEdgeCount > 50
+                     && _bulkRootEdgeCount > 50
+                     && _bulkRootStaticVarCount > 50)
                 {
                     return 100;
                 }
@@ -108,4 +106,4 @@ namespace Tracing.Tests.EventSourceError
             };
         };
     }
-}
\ No newline at end of file
+}