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

More nullable annotations #23938

Merged
1 commit merged into from
Feb 2, 2021
Merged

More nullable annotations #23938

1 commit merged into from
Feb 2, 2021

Conversation

roji
Copy link
Member

@roji roji commented Jan 22, 2021

I know it looks huge, but this one is actually easy. Starting to see the end of the tunnel...

This annotates the following for nullability:

  • Infrastructure
  • Proxies
  • Abstractions
  • Analyzers
  • Diagnostics (separate commit)

@ajcvickers there have been various tweaks in the logging/interception, probably worth taking a look. As usual I'll self-review this PR to highlight places where I'd appreciate some attention.

* Infrastructure
* Diagnostics
* Proxies
* Abstractions
* Analyzers

Part of #19007
@ghost
Copy link

ghost commented Feb 2, 2021

Hello @roji!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost
Copy link

ghost commented Feb 2, 2021

Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:

  1. Azure Pipelines

These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check.

Give feedback on this
From the bot dev team

We've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments.

Please reach out to us at fabricbotservices@microsoft.com to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin.

@ghost ghost merged commit b848377 into main Feb 2, 2021
@ghost ghost deleted the InfrastructureNullability branch February 2, 2021 13:09
@roji roji linked an issue Feb 2, 2021 that may be closed by this pull request
23 tasks
Ali-YousefiTelori pushed a commit to Ali-YousefiTelori/EntityFrameworkCore that referenced this pull request Feb 10, 2021
* Infrastructure
* Diagnostics
* Proxies
* Abstractions
* Analyzers

Part of dotnet#19007
@@ -1713,7 +1715,7 @@ private static string MultipleNavigationProperties(EventDefinitionBase definitio
/// <param name="targetType"> The target type. </param>
public static void MultipleInversePropertiesSameTargetWarning(
[NotNull] this IDiagnosticsLogger<DbLoggerCategory.Model> diagnostics,
[NotNull] IEnumerable<Tuple<MemberInfo, Type>> conflictingNavigations,
[NotNull] IEnumerable<Tuple<MemberInfo?, Type>> conflictingNavigations,
Copy link
Member

Choose a reason for hiding this comment

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

@roji I'm getting a nullable warning when I build locally from command-line on line 1728 which indeed dereferences a possible null reference (n.Item1.Name).

Do you know why/how this didn't fail CI?

Copy link
Member Author

Choose a reason for hiding this comment

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

We purposefully don't (currently!) fail the build on nullability warnings (<WarningsNotAsErrors>nullable</WarningsNotAsErrors>), to not hold people back until we're done. The plan is to reenable those as errors when we complete the annotation process.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Annotate EF Core for nullable reference types
3 participants