Skip to content
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

Cleanup | SNI Native Wrapper #3056

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

benrr101
Copy link
Contributor

@benrr101 benrr101 commented Dec 3, 2024

Description: This is a followup to the SNI Native Wrapper code merge. Each commit in this PR is an atomic change, so if the PR gets too cluttered to review all up, it can be stepped through one commit at a time. Most of these changes are just renaming and moving code around. One larger change is removing a bunch of private methods that were no longer necessary after extracting the DLL imports (as mentioned by @edwardneal).

Testing: There aren't really any functional changes here, so CI pass should be sufficient validation.

@benrr101 benrr101 added ➕ Code Health Issues/PRs that are targeted to source code quality improvements. Common Project 🚮 Things that relate to the common project project labels Dec 3, 2024
@benrr101 benrr101 added this to the 7.0-preview1 milestone Dec 3, 2024
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 93.58289% with 12 lines in your changes missing coverage. Please review.

Project coverage is 72.70%. Comparing base (46e8714) to head (c0f51c8).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...ient/src/Microsoft/Data/SqlClient/SqlDependency.cs 75.00% 4 Missing ⚠️
...src/Microsoft/Data/SqlClient/LocalDBAPI.Windows.cs 0.00% 2 Missing ⚠️
...t/netfx/src/Microsoft/Data/SqlClient/LocalDBAPI.cs 0.00% 2 Missing ⚠️
...Client/src/Interop/Windows/Sni/SniNativeWrapper.cs 98.14% 2 Missing ⚠️
...nt/netfx/src/Microsoft/Data/SqlClient/TdsParser.cs 87.50% 1 Missing ⚠️
...ft/Data/Sql/SqlDataSourceEnumeratorNativeHelper.cs 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3056      +/-   ##
==========================================
+ Coverage   72.66%   72.70%   +0.04%     
==========================================
  Files         283      283              
  Lines       58975    58934      -41     
==========================================
- Hits        42853    42848       -5     
+ Misses      16122    16086      -36     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore 75.46% <93.89%> (+0.02%) ⬆️
netfx 71.18% <94.01%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

SqlClientEventSource.Log.TryNotificationTraceEvent("<sc.SqlDependency.ObtainProcessDispatcher|DEP|ERR> ERROR - AppDomain.CreateInstance returned null!");
throw ADP.InternalError(ADP.InternalErrorCode.SqlDependencyProcessDispatcherFailureCreateInstance);
SqlClientEventSource.Log.TryNotificationTraceEvent("<sc.SqlDependency.ObtainProcessDispatcher|DEP|ERR> ERROR - ObjectHandle.Unwrap returned null!");
throw ADP.InternalError(ADP.InternalErrorCode.SqlDependencyObtainProcessDispatcherFailureObjectHandle);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The net change here will result in a different error code (and trace message), but I think the change makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Common Project 🚮 Things that relate to the common project project ➕ Code Health Issues/PRs that are targeted to source code quality improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants