You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/06/07 01:56:26 UTC

[I] add unit test coverage for ClientEvent sealed-trait family [texera]

aglinxinyuan opened a new issue, #5437:
URL: https://github.com/apache/texera/issues/5437

   `amber/.../engine/architecture/controller/ClientEvent.scala` defines a small sealed-trait family (`ExecutionStateUpdate`, `ExecutionStatsUpdate`, `RuntimeStatisticsPersist`, `ReportCurrentProcessingTuple`, `WorkerAssignmentUpdate`, `FatalError`, `UpdateExecutorCompleted`, `ReplayStatusUpdate`, `WorkflowRecoveryStatus`) that flows from the controller to the client over Pekko via `WorkflowFIFOMessagePayload`. Nothing pins the data contract or the serialization round-trip today.
   
   | Surface | Behavior to pin |
   | --- | --- |
   | Per-subtype data contract | Each subtype's constructor params round-trip via case-class accessors; case-class equality holds; the subtype extends `ClientEvent` and `WorkflowFIFOMessagePayload` (compile-time pins). |
   | Pekko Serialization | Round-trip via `AmberRuntime.serde` — the wire path actually used by the controller-to-client channel. Each subtype must deserialize back to a value-equal instance. |
   | `FatalError` optional sender | `fromActor` defaults to `None`; can be set to `Some(actorId)`. |
   | `ReplayStatusUpdate` boolean flag | Both `true` and `false` round-trip. |
   
   Spec owns a suite-local `ActorSystem` injected into `AmberRuntime.serde` via reflection and tears it down in `afterAll` (same pattern as `CheckpointSubsystemSpec`).
   
   ### Priority
   P3 - Low
   
   ### Task Type
   - [x] Testing / QA


-- 
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: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] add unit test coverage for ClientEvent sealed-trait family [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan closed issue #5437: add unit test coverage for ClientEvent sealed-trait family
URL: https://github.com/apache/texera/issues/5437


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org