Implementing .NET Dapr SDK-wide nullability annotations #2417
sdk_build.yml
on: pull_request
Matrix: test
Build
57s
Publish Packages
0s
Annotations
42 errors and 4 warnings
Test .NET 8.0:
examples/Client/ServiceInvocation/InvokeServiceHttpExample.cs#L34
Dereference of a possibly null reference.
|
Test .NET 8.0:
examples/Client/ServiceInvocation/InvokeServiceHttpExample.cs#L45
Dereference of a possibly null reference.
|
Test .NET 8.0:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L31
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Test .NET 8.0:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L32
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Test .NET 8.0:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L33
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Test .NET 8.0:
src/Dapr.Actors/Runtime/ActorManager.cs#L39
The type 'Dapr.Actors.ActorId?' cannot be used as type parameter 'TKey' in the generic type or method 'ConcurrentDictionary<TKey, TValue>'. Nullability of type argument 'Dapr.Actors.ActorId?' doesn't match 'notnull' constraint.
|
Test .NET 8.0:
src/Dapr.Actors/Runtime/ActorRuntime.cs#L33
The type 'string?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'string?' doesn't match 'notnull' constraint.
|
Test .NET 8.0:
src/Dapr.Actors/Communication/ActorResponseMessageBody.cs#L30
Nullability of reference types in return type of 'object? ActorResponseMessageBody.Get(Type paramType)' doesn't match implicitly implemented member 'object IActorResponseMessageBody.Get(Type paramType)' (possibly because of nullability attributes).
|
Test .NET 8.0:
src/Dapr.Actors/Communication/ActorResponseMessageHeader.cs#L36
Nullability of reference types in type of parameter 'headerValue' of 'void ActorResponseMessageHeader.AddHeader(string headerName, byte[] headerValue)' doesn't match implicitly implemented member 'void IActorResponseMessageHeader.AddHeader(string headerName, byte[]? headerValue)' (possibly because of nullability attributes).
|
Test .NET 8.0:
src/Dapr.Actors/Builder/ActorCodeBuilderNames.cs#L55
Dereference of a possibly null reference.
|
Build:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L31
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Build:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L32
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Build:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L33
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Build:
src/Dapr.Actors/Runtime/ActorManager.cs#L39
The type 'Dapr.Actors.ActorId?' cannot be used as type parameter 'TKey' in the generic type or method 'ConcurrentDictionary<TKey, TValue>'. Nullability of type argument 'Dapr.Actors.ActorId?' doesn't match 'notnull' constraint.
|
Build:
src/Dapr.Actors/Runtime/ActorRuntime.cs#L33
The type 'string?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'string?' doesn't match 'notnull' constraint.
|
Build:
src/Dapr.Actors/Communication/ActorResponseMessageBody.cs#L30
Nullability of reference types in return type of 'object? ActorResponseMessageBody.Get(Type paramType)' doesn't match implicitly implemented member 'object IActorResponseMessageBody.Get(Type paramType)' (possibly because of nullability attributes).
|
Build:
src/Dapr.Actors/Communication/ActorResponseMessageHeader.cs#L36
Nullability of reference types in type of parameter 'headerValue' of 'void ActorResponseMessageHeader.AddHeader(string headerName, byte[] headerValue)' doesn't match implicitly implemented member 'void IActorResponseMessageHeader.AddHeader(string headerName, byte[]? headerValue)' (possibly because of nullability attributes).
|
Build:
src/Dapr.Actors/Client/ActorProxy.cs#L44
Non-nullable field 'actorRemotingClient' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|
Build:
src/Dapr.Actors/Client/ActorProxy.cs#L44
Non-nullable field 'actorNonRemotingClient' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|
Build:
src/Dapr.Actors/Client/ActorProxy.cs#L44
Non-nullable field 'DaprApiToken' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|
Test .NET 6.0
The job was canceled because "_8_0" failed.
|
Test .NET 6.0:
examples/Client/ServiceInvocation/InvokeServiceHttpExample.cs#L34
Dereference of a possibly null reference.
|
Test .NET 6.0:
examples/Client/ServiceInvocation/InvokeServiceHttpExample.cs#L45
Dereference of a possibly null reference.
|
Test .NET 6.0:
examples/Client/StateManagement/StateStoreTransactionsExample.cs#L41
Cannot convert null literal to non-nullable reference type.
|
Test .NET 6.0:
examples/Client/StateManagement/StateStoreETagsExample.cs#L38
Dereference of a possibly null reference.
|
Test .NET 6.0:
examples/Client/StateManagement/StateStoreETagsExample.cs#L51
Dereference of a possibly null reference.
|
Test .NET 6.0:
examples/Client/StateManagement/StateStoreETagsExample.cs#L64
Dereference of a possibly null reference.
|
Test .NET 6.0:
test/Shared/TestClient.cs#L419
Nullability of reference types in value of type '(HttpRequestMessage request, TestClient.CaptureToken? capture, Task task)' doesn't match target type '(HttpRequestMessage, TestClient.CaptureToken, Task)'.
|
Test .NET 6.0:
test/Shared/TestClient.cs#L419
Use of unassigned local variable 'request'
|
Test .NET 6.0:
src/Dapr.AspNetCore/DaprEndpointRouteBuilderExtensions.cs#L115
Argument of type '(string? PubsubName, string? Name, string? DeadLetterTopic, bool? EnableRawPayload, string? Match, int Priority, Dictionary<string, string[]>, string? MetadataSeparator, RoutePattern RoutePattern, DaprTopicBulkSubscribe? bulkSubscribe)' cannot be used for parameter 'item' of type '(string? PubsubName, string? Name, string? DeadLetterTopic, bool? EnableRawPayload, string? Match, int Priority, Dictionary<string, string[]>? OriginalTopicMetadata, string? MetadataSeparator, RoutePattern RoutePattern, DaprTopicBulkSubscribe bulkSubscribe)' in 'void List<(string? PubsubName, string? Name, string? DeadLetterTopic, bool? EnableRawPayload, string? Match, int Priority, Dictionary<string, string[]>? OriginalTopicMetadata, string? MetadataSeparator, RoutePattern RoutePattern, DaprTopicBulkSubscribe bulkSubscribe)>.Add((string? PubsubName, string? Name, string? DeadLetterTopic, bool? EnableRawPayload, string? Match, int Priority, Dictionary<string, string[]>? OriginalTopicMetadata, string? MetadataSeparator, RoutePattern RoutePattern, DaprTopicBulkSubscribe bulkSubscribe) item)' due to differences in the nullability of reference types.
|
Test .NET 6.0:
src/Dapr.AspNetCore/DaprEndpointRouteBuilderExtensions.cs#L136
Nullability of reference types in value of type '(string? PubsubName, string? Name, string? DeadLetterTopic, bool? EnableRawPayload, string? Match, int Priority, Dictionary<string, string[]>? OriginalTopicMetadata, string? MetadataSeparator, RoutePattern RoutePattern, DaprTopicBulkSubscribe bulkSubscribe)' doesn't match target type '(string PubsubName, string Name, string? DeadLetterTopic, bool? EnableRawPayload, string? Match, int Priority, Dictionary<string, string[]> OriginalTopicMetadata, string? MetadataSeparator, RoutePattern RoutePattern, DaprTopicBulkSubscribe bulkSubscribe)'.
|
Test .NET 7.0
The job was canceled because "_8_0" failed.
|
Test .NET 7.0:
examples/Client/ServiceInvocation/InvokeServiceHttpExample.cs#L34
Dereference of a possibly null reference.
|
Test .NET 7.0:
examples/Client/ServiceInvocation/InvokeServiceHttpExample.cs#L45
Dereference of a possibly null reference.
|
Test .NET 7.0:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L31
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Test .NET 7.0:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L32
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Test .NET 7.0:
src/Dapr.Actors/Builder/ActorCodeBuilder.cs#L33
The type 'System.Type?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'System.Type?' doesn't match 'notnull' constraint.
|
Test .NET 7.0:
src/Dapr.Actors/Communication/ActorResponseMessageBody.cs#L30
Nullability of reference types in return type of 'object? ActorResponseMessageBody.Get(Type paramType)' doesn't match implicitly implemented member 'object IActorResponseMessageBody.Get(Type paramType)' (possibly because of nullability attributes).
|
Test .NET 7.0:
src/Dapr.Actors/Communication/ActorResponseMessageHeader.cs#L36
Nullability of reference types in type of parameter 'headerValue' of 'void ActorResponseMessageHeader.AddHeader(string headerName, byte[] headerValue)' doesn't match implicitly implemented member 'void IActorResponseMessageHeader.AddHeader(string headerName, byte[]? headerValue)' (possibly because of nullability attributes).
|
Test .NET 7.0:
src/Dapr.Actors/Runtime/ActorRuntime.cs#L33
The type 'string?' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'string?' doesn't match 'notnull' constraint.
|
Test .NET 7.0:
src/Dapr.Actors/Runtime/ActorManager.cs#L39
The type 'Dapr.Actors.ActorId?' cannot be used as type parameter 'TKey' in the generic type or method 'ConcurrentDictionary<TKey, TValue>'. Nullability of type argument 'Dapr.Actors.ActorId?' doesn't match 'notnull' constraint.
|
Test .NET 7.0:
src/Dapr.Actors/Client/ActorProxy.cs#L44
Non-nullable field 'actorRemotingClient' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
|
Test .NET 8.0
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-dotnet@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test .NET 8.0
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-dotnet@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-dotnet@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-dotnet@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|