Skip to content

XEvent tests intermittent failures #3453

@paulmedynski

Description

@paulmedynski

We're seeing intermittent failures during CI test runs:

[xUnit.net 00:00:04.93]     Microsoft.Data.SqlClient.ManualTesting.Tests.XEventsTracingTest.XEventActivityIDConsistentWithTracing(query: "sp_help", commandType: StoredProcedure, xEvent: "rpc_starting") [FAIL]
  [xUnit.net 00:00:04.93]       Assert.Equal() Failure: Values differ
  [xUnit.net 00:00:04.93]       Expected: 1
  [xUnit.net 00:00:04.93]       Actual:   0
  [xUnit.net 00:00:04.93]       Stack Trace:
  [xUnit.net 00:00:04.93]         /_/src/Microsoft.Data.SqlClient/tests/ManualTests/TracingTests/XEventsTracingTest.cs(67,0): at Microsoft.Data.SqlClient.ManualTesting.Tests.XEventsTracingTest.GetCommandActivityId(String commandText, String eventName, Guid connectionId, XmlDocument xEvents)
  [xUnit.net 00:00:04.93]         /_/src/Microsoft.Data.SqlClient/tests/ManualTests/TracingTests/XEventsTracingTest.cs(51,0): at Microsoft.Data.SqlClient.ManualTesting.Tests.XEventsTracingTest.XEventActivityIDConsistentWithTracing(String query, CommandType commandType, String xEvent)
  [xUnit.net 00:00:04.93]            at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  [xUnit.net 00:00:04.93]            at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
    Failed Microsoft.Data.SqlClient.ManualTesting.Tests.XEventsTracingTest.XEventActivityIDConsistentWithTracing(query: "sp_help", commandType: StoredProcedure, xEvent: "rpc_starting") [1 s]

These tests run commands against SQL Server instances and capture events. I suspect some timing issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area\TestsIssues that are targeted to tests or test projectsP3Use for tagging low priority issues, impacts a single customer, and is not a critical/high issue.Triage Done ✔️Issues that are triaged by dev team and are in investigation.Up-for-Grabs 🙌Issues that are ready to be picked up for anyone interested. Please self-assign and remove the label

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions