Skip to content

Feature/typed pipeline#82

Merged
eschizoid merged 18 commits intomainfrom
feature/typed-pipeline
Mar 31, 2026
Merged

Feature/typed pipeline#82
eschizoid merged 18 commits intomainfrom
feature/typed-pipeline

Conversation

@eschizoid
Copy link
Copy Markdown
Owner

No description provided.

- Add MessagePipeline<T> interface for end-to-end (byte[] <-> T) processing
- Refactor MessageSink to a single-argument Consumer<T> for processed objects
- Update KPipeConsumer, CompositeMessageSink, and all sinks/tests to use new MessageSink<T> signature
- Simplify registry and pipeline builder APIs for typed pipelines and sinks
- Enhance AvroFormat with default schema support and implement deserialize
- Remove legacy processJson/processAvro helpers in favor of pipeline-based processing
- Update tests and integration tests to use new typed sink and pipeline APIs
- Improve error handling and logging consistency in sinks
…ocessing logic

- Add getSink() method to MessagePipeline interface for terminal sink retrieval
- Update KPipeConsumer to invoke pipeline sink if present, with fallback to consumer sink
- Adjust TypedPipelineBuilder to implement getSink()
- Improve documentation for inScopedCaches methods and registry sink wrapping
- Enhance AvroFormat deserialization with error handling
- Update App to use withPipeline instead of withProcessor
…or typed pipelines

- Replace format-specific pipeline builders with unified pipeline(MessageFormat) API in MessageProcessorRegistry
- Update App to use the new typed pipeline builder for protobuf processing
- Simplify consumer creation by removing explicit sink registry wiring
- Improve documentation and usage examples for new pipeline API in registry and processor classes
…ion with additional types

- Refactor MessageProcessorRegistry to streamline operator and sink wrapping, consolidating metrics logic and improving type safety
- Update getOperator and wrapSink to always return a wrapped function, ensuring consistent behavior
- Add predefined registry keys and registrations for JSON map and Avro generic record sinks in MessageSinkRegistry
- Improve TypedPipelineBuilder to log a warning when a sink key is missing in the registry
- Remove unused startTime field from App
…ine benchmark pipelines

- Replace byte[] sink keys with typed RegistryKey variants for JSON and Avro sinks
- Remove redundant sink keys and registrations from MessageSinkRegistry
- Update benchmarks and App to use new typed pipeline and sink APIs
- Refactor manual processing in benchmarks to use MessageFormat for serialization/deserialization
- Minor cleanup in TypedPipelineBuilder and test assertions
…ator/sink addition

- Remove redundant sink key factory from RegistryKey and clarify type signatures for json/avro helpers
- Simplify TypedPipelineBuilder operator addition to support varargs and direct registry lookup
- Refactor sink addition in TypedPipelineBuilder to allow multiple sinks and remove unnecessary logging
- Update usage in App and benchmarks to use new registry key helpers and streamlined pipeline builder API
- Improve documentation for clarity and consistency
@eschizoid eschizoid merged commit 3aeb91d into main Mar 31, 2026
2 checks passed
@eschizoid eschizoid deleted the feature/typed-pipeline branch March 31, 2026 23:57
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.87%. Comparing base (dac53d6) to head (7c14c6c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #82   +/-   ##
=========================================
  Coverage     76.87%   76.87%           
  Complexity      414      414           
=========================================
  Files            33       33           
  Lines          1574     1574           
  Branches        167      167           
=========================================
  Hits           1210     1210           
  Misses          269      269           
  Partials         95       95           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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