-
Notifications
You must be signed in to change notification settings - Fork 317
Merge | Enable SqlClientDiagnosticListener in SqlCommand on .NET Framework #3658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge | Enable SqlClientDiagnosticListener in SqlCommand on .NET Framework #3658
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #3658 +/- ##
===========================================
- Coverage 90.82% 70.20% -20.62%
===========================================
Files 6 268 +262
Lines 316 45338 +45022
===========================================
+ Hits 287 31829 +31542
- Misses 29 13509 +13480
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@edwardneal - I'm seeing failures in these new diagnostics you added in my Authentication PR: Do you think these changes could be sensitive to timing or environment? I'll re-run the failing tests again, but this is the second time they've failed in this pipeline run, both times in .NET 8 on ARM64. |
|
Yes, possibly; the failing tests are Have you seen any failures in the sync variants? I can see a measure of sync-over-async in the tests which wait for RemoteExecutor, so maybe we're left waiting on threads unnecessarily. If that's the cause, then I'd test changing the |
|
The entire ManualTests assembly disables parallel test execution: I don't think there are any tests running in parallel here. I can make your suggested changes to see if that helps anyway though. The failures seem to only be when testing via MDS |
|
That's interesting. Lines 480-494 of the linked logs show that tests are overlapping. We can see that four extra tests start and finish in the time it takes to proceed with Perhaps it simply takes some time for the console output from the child process to be flushed from the parent. I don't think that's necessarily the issue (I can see a similar pattern in |
Description
This picks up where #3493 left off. Now that the SqlCommand methods with instrumentation have been merged, I've enabled the SqlClientDiagnosticListener functionality on the class.
I also noticed that tests in the DiagnosticTest class were passing unexpectedly, so dug a little deeper. These tests currently verify that the diagnostics we receive have a valid structure, but don't verify that we receive all of the diagnostics we expect to. I've modified the test to tighten this logic and explicitly specify the diagnostics we expect each scenario to receive.
@benrr101 I think we've passed the point where I'm likely to generate merge conflicts, but I'm happy to re-merge if you think that's likely.
Issues
Contributes to #1261.
Testing
Automated tests pass (even with the stricter validation.) Could someone run CI please?