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

Merge | SqlFileStream (Opt 1) #2898

Merged
merged 29 commits into from
Oct 25, 2024

Conversation

benrr101
Copy link
Contributor

@benrr101 benrr101 commented Oct 7, 2024

Description: This PR aims to merge SqlFileStream from the netfx and netcore projects. The strategy for this merge is to use the Interop.* libraries from the netcore project to enable merging the classes. Therefore, the code for this class is mostly based on the netcore implementation with a handful of #if NETFRAMEWORK blocks to add overrides for netfx behavior.

The commits are broken up into fairly digestible chunks that explain each step along the process. I'd recommend reviewing the PR by stepping through the commits and seeing if you agree with the changes. Nevertheless, this PR has a lot of code cleanup changes at the end that make the overall PR fairly large. In anticipation of pushback on this, I will offer a separate PR that only contains the merge changes. If that one is accepted, I'll still send out the cleanup change on a separate PR. But, I think this option would be faster overall.

Testing: The existing manual tests for SqlFileStream were used to validate behavior.

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 279 lines in your changes missing coverage. Please review.

Project coverage is 72.24%. Comparing base (39c4604) to head (967e888).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...c/Microsoft/Data/SqlTypes/SqlFileStream.Windows.cs 0.00% 279 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2898      +/-   ##
==========================================
+ Coverage   71.92%   72.24%   +0.32%     
==========================================
  Files         294      291       -3     
  Lines       60342    59769     -573     
==========================================
- Hits        43398    43180     -218     
+ Misses      16944    16589     -355     
Flag Coverage Δ
addons 92.90% <ø> (ø)
netcore 75.81% <0.00%> (-0.02%) ⬇️
netfx 70.59% <0.00%> (+0.13%) ⬆️

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.

@benrr101 benrr101 force-pushed the common-sqlfilestream-smallercleanup branch from 9e157a5 to efad644 Compare October 10, 2024 21:11
@cheenamalhotra cheenamalhotra added this to the 6.0-preview2 milestone Oct 15, 2024
@cheenamalhotra
Copy link
Member

Can you please take a look at conflicts, thanks!

@benrr101 benrr101 modified the milestones: 6.0-preview3, 6.0-preview2 Oct 25, 2024
@benrr101 benrr101 merged commit 2e163b2 into dotnet:main Oct 25, 2024
124 checks passed
@benrr101 benrr101 deleted the common-sqlfilestream-smallercleanup branch October 25, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants