aglinxinyuan opened a new pull request, #4838: URL: https://github.com/apache/texera/pull/4838
### What changes were proposed in this PR? Add `CheckpointSubsystemSpec` covering the three classes/traits in `amber/.../engine/common` that make up the checkpoint data contract: - `SerializedState`: well-known key constants pinned (`CP_STATE_KEY`, `DP_STATE_KEY`, `IN_FLIGHT_MSG_KEY`, `DP_QUEUED_MSG_KEY`, `OUTPUT_MSG_KEY`); `fromObject` / `toObject` round-trip via the configured Pekko Serialization; field-shape and size accounting - `CheckpointState`: defaults, save/load round-trip on primitive and String values, overwrite-by-key, multi-key independence, missing-key RuntimeException, size summation across entries - `CheckpointSupport` trait: implementable by a custom subclass forwarding to a `CheckpointState`, exercising `serializeState` / `deserializeState` / `getEstimatedCheckpointCost` Complements the in-flight #4687 (CheckpointState unknown-key negative test in `CheckpointSpec`) with dedicated unit-level coverage. ### Any related issues, documentation, discussions? Closes #4837 ### How was this PR tested? `sbt "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.common.CheckpointSubsystemSpec"` - 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]
