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

spring-kafka: ser/de #658

Merged
merged 7 commits into from
Nov 29, 2024
Merged

spring-kafka: ser/de #658

merged 7 commits into from
Nov 29, 2024

Conversation

osoykan
Copy link
Collaborator

@osoykan osoykan commented Nov 28, 2024

This pull request includes several changes to improve the serialization mechanism and enhance the Spring Kafka testing infrastructure. It is one of the works that need to be done to improve serialization support when users want to use Protobuf, Avro, JSON(already supported), and other serialization systems.

Most notable change is the change for TestSystemKafkaInterceptor<*,*>. The dependency for this class was an ObjectMapper instance that you can provide through bean provider/Spring-Boot DI, but now it relies on StoveSerde<T, K> interface, hence users can replace it with their ser/de choices. I have written a test to prove the approach is working, take a look, ProtobufSerdeKafkaSystemTest.kt.

Improvements to serialization mechanism:

Enhancements to Kafka testing infrastructure:

Codebase simplifications:

Adresses #560

@osoykan osoykan force-pushed the feature/ser-de branch 3 times, most recently from a6f0386 to afcac98 Compare November 28, 2024 16:40
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 59.85915% with 57 lines in your changes missing coverage. Please review.

Project coverage is 82.21%. Comparing base (2043ba4) to head (9858527).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...m/trendyol/stove/testing/e2e/kafka/StoveMessage.kt 33.33% 28 Missing ⚠️
...om/trendyol/stove/testing/e2e/kafka/KafkaSystem.kt 63.46% 17 Missing and 2 partials ⚠️
...l/stove/testing/e2e/kafka/TestSystemInterceptor.kt 71.42% 3 Missing and 3 partials ⚠️
...com/trendyol/stove/testing/e2e/kafka/Extensions.kt 86.66% 0 Missing and 2 partials ⚠️
...m/trendyol/stove/testing/e2e/kafka/MessageStore.kt 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #658      +/-   ##
==========================================
- Coverage   83.14%   82.21%   -0.93%     
==========================================
  Files          85       85              
  Lines        2462     2508      +46     
  Branches      143      161      +18     
==========================================
+ Hits         2047     2062      +15     
- Misses        316      346      +30     
- Partials       99      100       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@osoykan osoykan marked this pull request as ready for review November 29, 2024 12:23
@osoykan osoykan merged commit 60e8b52 into main Nov 29, 2024
0 of 2 checks passed
@osoykan osoykan deleted the feature/ser-de branch November 29, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant