-
Couldn't load subscription status.
- Fork 316
Align Constrained Execution Region with netcore for merging netcore/netfx #2969
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
Conversation
|
Unfortunately it seems the diff that github creates looks really complicated. |
src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
Outdated
Show resolved
Hide resolved
|
Please use ?w=1 in the GitHub URL to ignore whitespace changes, and the diff looks much much cleaner!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I see what you're going for here, but.... I don't really think this is the right approach. As far as I can tell, this is basically adding a massive amount of no-ops to the netcore code just so it matches the structure of the netfx code. While yeah it'll definitely make a merge easier, I'm not sure what your plan is for actually merging the two files after it the files are modified enough to look like each other.
My thought is that if there's something that can be done the some on netcore and netfx, we should try to get them doing things the same way (without making huge changes to the code). If it can't be done the same in both, eg constrained execution is only needed in netfx, then the merged version should have the constrained execution specific code wrapped in #if NETFRAMEWORK.
Ideally, all the code is of course identical in the end, so you can just take one version of the file and move it to the shared project. But even if it's not 100% identical, doing it this way, and slowly aligning them still (IMHO) is a low-risk way to ease the way to merging them in the (hopefully near) future. If you think this is not a viable way to go - I'll stop with these, that's not an issue for me
I'm happy to wrap them around Lines 312 to 320 in 1742793
it does not wrap the call into a conditional. On another note, What does the Just let me know what you prefer, and I'll adjust to that |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2969 +/- ##
==========================================
- Coverage 72.50% 72.45% -0.05%
==========================================
Files 288 288
Lines 59529 59498 -31
==========================================
- Hits 43159 43109 -50
- Misses 16370 16389 +19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
5e7fe95 to
1742793
Compare
1742793 to
4bc9ee6
Compare
|
@MichelZ Sorry if I sounded a bit harsh previously - I definitely appreciate the effort you're putting in, but just want to make sure we're working towards the same goals. It's also worth noting that I've only been (sorta) in charge of merging the two projects for a month or two. If there's an difference between older merging and newer merging, that's likely why. So, to address your points:
|
|
Understood, thanks. |
Attempting to align CER changes from netfx to netcore for code merging