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

Enabling NRT for SWF (no API changes yet) #2702

Merged
merged 2 commits into from
Jan 23, 2020
Merged

Conversation

Logerfo
Copy link
Contributor

@Logerfo Logerfo commented Jan 13, 2020

Work for #1107.
Refers to #2678.
Relates to #2676.


Changes

  • Added <Nullable>enable</Nullable> to System.Windows.Forms.csproj.
  • Added #nullable disable to every src/System.Windows.Forms/src/**/*.cs file header.

Next steps


cc @RussKie @sharwell @hughbe

Microsoft Reviewers: Open in CodeFlow

@codecov
Copy link

codecov bot commented Jan 13, 2020

Codecov Report

Merging #2702 into master will increase coverage by 0.01189%.
The diff coverage is n/a.

@@                Coverage Diff                 @@
##              master       #2702        +/-   ##
==================================================
+ Coverage   58.88815%   58.90005%   +0.0119%     
==================================================
  Files           1242        1242                
  Lines         428565      428565                
  Branches       38912       38912                
==================================================
+ Hits          252374      252425        +51     
+ Misses        170849      170796        -53     
- Partials        5342        5344         +2
Flag Coverage Δ
#Debug 58.90005% <ø> (+0.01189%) ⬆️
#production 31.83119% <ø> (+0.01993%) ⬆️
#test 98.97497% <ø> (ø) ⬆️

@Logerfo
Copy link
Contributor Author

Logerfo commented Jan 13, 2020

I just did a full eye-check on the API and found a couple of changes: one for a file I had considered as safe and the other one for a file I forgot to edit.
I don't think their changes were relevant (only [NullableContext(1)][Nullable(0)] at class site), but "reverted" them anyway, just for the sake of it.
I'd call the PR API-changeless, but I'd rather be sure with some sort of currently lacking automated API-diffing.

@RussKie
Copy link
Member

RussKie commented Jan 14, 2020

I will need to get #2705 before this can go in.

@Logerfo
Copy link
Contributor Author

Logerfo commented Jan 14, 2020

@RussKie Oh, I didn't know about that txt files feature. That's exactly what I needed for the API diff. While rebasing, I removed that change from this branch and also filed #2708. After merged, this branch (and #2676) can be rebased again and the diagnosis will tell us if we have any undesired API changes (my local merge tells me this branch doesn't).

@Logerfo Logerfo changed the title WIP: Enabling NRT for SWF (no API changes yet) Enabling NRT for SWF (no API changes yet) Jan 21, 2020
@Logerfo Logerfo marked this pull request as ready for review January 21, 2020 14:22
@Logerfo Logerfo requested a review from a team as a code owner January 21, 2020 14:22
@Logerfo
Copy link
Contributor Author

Logerfo commented Jan 21, 2020

@RussKie rebasing didn't throw any warning, I guess we're good to go.

@RussKie
Copy link
Member

RussKie commented Jan 22, 2020

Let's breaking it up in two:

  • the first PR adds #nullable disable (the commits 1 and 2), and
  • the second one - remove decorations where safe (the commits 3 and 4).

Right now commit 53bac09def1dc10c0674e5bdd39636e3c476dd92 undo changes made in dfd4820ab5f5947d0efc9784a74e9bc9096b69f8.
So squashing them together doesn't feel right, taking as is - we'll be merging in "draft changes" (the internal ways of you arriving to the final result).

@RussKie RussKie added the 📭 waiting-author-feedback The team requires more information from the author label Jan 22, 2020
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Jan 22, 2020
@Logerfo
Copy link
Contributor Author

Logerfo commented Jan 22, 2020

@RussKie done. This PR is acting as the first one you mentioned. I'm ready to send the other one once this one is merged.

@Logerfo Logerfo changed the title Enabling NRT for SWF (no API changes yet) WIP: Enabling NRT for SWF (no API changes yet) Jan 22, 2020
@Logerfo
Copy link
Contributor Author

Logerfo commented Jan 22, 2020

Missed a new file from 9dc2a1d. It's an internal class, so it didn't show up in the API diff.

@Logerfo Logerfo changed the title WIP: Enabling NRT for SWF (no API changes yet) Enabling NRT for SWF (no API changes yet) Jan 22, 2020
@RussKie RussKie merged commit b666dc7 into dotnet:master Jan 23, 2020
@ghost ghost added this to the 5.0 milestone Jan 23, 2020
@RussKie
Copy link
Member

RussKie commented Jan 23, 2020

Thank you

kpreisser added a commit to kpreisser/winforms that referenced this pull request Jan 23, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants