Skip to content

Flaky profiling tests #4371

@jamescrosswell

Description

@jamescrosswell

Description

CI run from main

Sentry.Profiling.Tests.SamplingTransactionProfilerTests.Profiler_MultipleProfiles_Works

Sentry.Profiling.Tests.SamplingTransactionProfilerTests.Profiler_MultipleProfiles_Works(startTimeoutSeconds: 0)
Expected profile.Samples not to be empty.
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func1 failReasonFunc) at FluentAssertions.Execution.AssertionScope.FailWith(Func1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Execution.GivenSelector1.FailWith(String message, Object[] args) at FluentAssertions.Execution.GivenSelector1.FailWith(String message)
at FluentAssertions.Collections.GenericCollectionAssertions3.NotBeEmpty(String because, Object[] becauseArgs) at Sentry.Profiling.Tests.SamplingTransactionProfilerTests.ValidateProfile(SampleProfile profile, UInt64 maxTimestampNs) in /Users/runner/work/sentry-dotnet/sentry-dotnet/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs:line 55 at Sentry.Profiling.Tests.SamplingTransactionProfilerTests.CaptureAndValidate(ITransactionProfilerFactory factory) in /Users/runner/work/sentry-dotnet/sentry-dotnet/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs:line 113 at Sentry.Profiling.Tests.SamplingTransactionProfilerTests.Profiler_MultipleProfiles_Works(Int32 startTimeoutSeconds) in /Users/runner/work/sentry-dotnet/sentry-dotnet/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs:line 155 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span1 copyOfArgs, BindingFlags invokeAttr)

EventPipeSession_ReceivesExpectedCLREvents

EventPipeSession_ReceivesExpectedCLREvents
Assert.Contains() Failure: Item not found in set
Set: []
Not found: "Method/LoadVerbose"
at Sentry.Profiling.Tests.SamplingTransactionProfilerTests.EventPipeSession_ReceivesExpectedCLREvents() in /Users/runner/work/sentry-dotnet/sentry-dotnet/test/Sentry.Profiling.Tests/SamplingTransactionProfilerTests.cs:line 214
--- End of stack trace from previous location ---

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeFlaky TestA test fails intermittently, passes on retry. Productivity killer.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions