-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Ensure <Nullable>enable<Nullable> on System.IO.Packaging and S.Resources.Extensions #41731
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
@krwq these are the only projects we we're missing to enable nullable that we're annotated. However the spreadsheet has some other differences in between ref and src. Are you going to tackle those as well? |
@safern I couldn't see any specific issues on the spreadsheet, the projects there didn't seem to have src annotated (except for perhaps few files from shared directory) |
Did not updated diff in namespaces
few diffs were not about nullable annotation, the difference between parameter name or accessor |
...aries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSourceActivity.cs
Outdated
Show resolved
Hide resolved
...raries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.netcoreapp.cs
Show resolved
Hide resolved
@roji do you recall why?
Thanks, for working on this, @buyaa-n |
I checked that, it doesn't have |
Yeah the problem is: |
Fixed System.Data.Common diffs, for some of them source looks correct, but for some ref looks correct, so updated as whichever feels correct to me, please review. Now only 2 ns left, System.ComponentModel.Annotations and System.Data.OleDb, these are not within group 9 => by my understanding, we didn't intend to annotate their src completely so the diff might be OK CC @stephentoub, |
9b52171
to
06ce738
Compare
@@ -863,7 +863,7 @@ public sealed partial class DataTableReader : System.Data.Common.DbDataReader | |||
public override System.Type GetProviderSpecificFieldType(int ordinal) { throw null; } | |||
public override object GetProviderSpecificValue(int ordinal) { throw null; } | |||
public override int GetProviderSpecificValues(object[] values) { throw null; } | |||
public override System.Data.DataTable? GetSchemaTable() { throw null; } | |||
public override System.Data.DataTable GetSchemaTable() { throw null; } |
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.
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'll revert this
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.
Sorry for the delayed response and thanks - yeah, this is wrong. GetSchemaTable should return nullable as in #41082.
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.
This was changed back per #41731 (comment)
...braries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/ActivityTagsCollection.cs
Outdated
Show resolved
Hide resolved
Once we have this finished up and merged into
|
Thanks @buyaa-n. the changes in System.Diagnostic.DiagnosticsSource looks good. |
Started backporting to release/5.0-rc2: https://github.com/dotnet/runtime/actions/runs/238588095 |
We need to re-open the PR. @akoeplinger re-opening the PRs if the PR is not merged. |
I couldn't re-open the PR. So I deleted the branch and will run the backport again. /backport to release/5.0-rc2 |
Started backporting to release/5.0-rc2: https://github.com/dotnet/runtime/actions/runs/238597367 |
Changes from @buyaa-n look good to me |
@buyaa-n @safern yeah, I'm the one who annotated System.ComponentModel.Annotations (#39611), and also System.Data.{Odbc,OleDb} (#39597). Unless I've missed something both that and System.Data.Common should be fully annotated (src and ref) apart from dependencies on TypeConverter and XML. IIRC in at least some of these (especially Odbc/OleDb) I couldn't get errors/warnings for discrepancies between src and ref, so there may have been mismatches... Are there outstanding issues with these projects (sorry, am a bit late to the party..)? If so I can take a look - feel free to ping me etc. |
@roji There is no error, we have run a tool to find diffs between ref and src and found some diff for those and other assemblies which we are trying to fix with this PR
There is only one issue related to this where the list of findings attached #41696. But no worries i believe we have covered all diffs with this PR, now its need a review |
This must-have covered/fixed all diffs now (i will try to run @terrajobst's tool again), please review the fixes @safern @stephentoub @terrajobst |
...aries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSourceActivity.cs
Outdated
Show resolved
Hide resolved
Sorry 😥, it was not covered everything updated left over diffs in:
diff in |
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.
LGTM but please wait for other reviews.
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.
LGTM, thanks!
8d9215b
to
b172655
Compare
src/libraries/System.Data.Common/src/System/Data/DataTableReader.cs
Outdated
Show resolved
Hide resolved
Updating the backport PR to capture latest commits... /backport to release/5.0-rc2 |
Started backporting to release/5.0-rc2: https://github.com/dotnet/runtime/actions/runs/245365329 |
Updating the backport PR to capture latest commit... /backport to release/5.0-rc2 |
Started backporting to release/5.0-rc2: https://github.com/dotnet/runtime/actions/runs/245476791 |
One last backport to reflect this PR being merged. /backport to release/5.0-rc2 |
Started backporting to release/5.0-rc2: https://github.com/dotnet/runtime/actions/runs/246826142 |
Fixes: #41696
Looking at the XLS and conversation seems like this is all that's left to do there