Skip to content

chore: Feature/kafka consumer #15

chore: Feature/kafka consumer

chore: Feature/kafka consumer #15

Triggered via pull request June 18, 2025 15:28
Status Failure
Total duration 1m 4s
Artifacts

examples-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
build
Process completed with exit code 1.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L168
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String, BindingFlags)'. The parameter 'targetType' of method 'AWS.Lambda.Powertools.Kafka.PowertoolsKafkaSerializerBase.SetBasicProperties(JsonElement, Object, Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L161
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The parameter 'targetType' of method 'AWS.Lambda.Powertools.Kafka.PowertoolsKafkaSerializerBase.CreateConsumerRecordsInstance<T>(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L183
Using member 'System.Type.MakeGenericType(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L183
Using member 'System.Type.MakeGenericType(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L181
Using member 'System.Type.MakeGenericType(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L99
Using member 'AWS.Lambda.Powertools.Kafka.PowertoolsKafkaSerializerBase.DeserializeConsumerRecords<T>(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. ConsumerRecords deserialization uses reflection and may be incompatible with trimming.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L99
Using member 'AWS.Lambda.Powertools.Kafka.PowertoolsKafkaSerializerBase.DeserializeConsumerRecords<T>(String)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. ConsumerRecords deserialization dynamically creates generic types and may be incompatible with NativeAOT.
build: libraries/src/AWS.Lambda.Powertools.Kafka/PowertoolsKafkaSerializerBase.cs#L412
Dereference of a possibly null reference.
build: examples/Idempotency/src/HelloWorld/Function.cs#L86
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: examples/Idempotency/src/HelloWorld/Function.cs#L86
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.