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

   ### What changes were proposed in this PR?
   
   Add `AmberMessageEnvelopesSpec` covering the engine message envelope layer:
   
   - `WorkflowFIFOMessage` / `WorkflowRecoveryMessage` round-trip via case 
class accessors and the `WorkflowMessage` / `Serializable` traits
   - `RecoveryPayload` subtypes (`UpdateRecoveryStatus`, `ResendOutputTo`, 
`NotifyFailedNode`) carry their args; the `ResendOutputTo` ActorRef field is 
exercised via a real Pekko `ActorSystem`
   - `WorkflowMessage.getInMemSize` for a DataFrame payload, an empty-frame 
DataFrame, and the 200L default for any other `WorkflowFIFOMessagePayload`
   - `WorkflowFIFOMessagePayload` / `DirectControlMessagePayload` trait wiring
   
   The catch-all `case _ => 200L` for non-`WorkflowFIFOMessage` subtypes is 
intentionally not tested because `WorkflowMessage` is sealed and today has only 
one subtype, so that branch is dead by construction.
   
   ### Any related issues, documentation, discussions?
   
   Closes #4828
   
   ### How was this PR tested?
   
   `sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.common.ambermessage.AmberMessageEnvelopesSpec"` 
— 11/11 tests pass.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 4.7)


-- 
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