aglinxinyuan opened a new pull request, #6147:
URL: https://github.com/apache/texera/pull/6147

   ### What changes were proposed in this PR?
   
   Extends `DataProcessorSpec` to cover previously-untested state and error 
paths of `DataProcessor` (amber worker), reusing the spec's existing in-JVM 
harness (real `DataProcessor` with a ScalaMock `OperatorExecutor` and mocked 
output handler / timer service) — no actor system or external service:
   
   - `processDataPayload(StateFrame)` → `processInputState` → `emitState` when 
`processState` returns `Some`, and the no-emit path when it returns `None`;
   - executor exceptions on `processState`, `processTupleMultiPort`, and while 
advancing the output iterator — each routed through `handleExecutorException` 
without propagating.
   
   No production code changed.
   
   ### Any related issues, documentation, discussions?
   
   Coverage gaps identified from the Codecov report for `apache/texera` (amber 
module coverage push toward 80%).
   
   ### How was this PR tested?
   
   ```
   sbt "WorkflowExecutionService/testOnly *DataProcessorSpec"
   ```
   
   All pass. `scalafmt` and `scalafixAll --check` are clean.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to