rmfrall opened a new pull request, #13510:
URL: https://github.com/apache/seatunnel/pull/13510

   ### Purpose of this pull request
   
   `CheckpointSerializeTest#testPipelineStateDeserialize` has been `@Disabled` 
since it deserialized a checkpoint snapshot from a hardcoded developer-machine 
path (`/private/tmp/seatunnel/checkpoint_snapshot/...`), so it could never run 
anywhere else, and its body also predates the `ActionStateKey`-keyed task 
states (`getTaskStates().get(1L)`), so it no longer reflects the current data 
model.
   
   This PR replaces it with a self-contained round-trip test that:
   
   * builds a `CompletedCheckpoint` with real connector state bytes — a fake 
source with the split-enumerator state in the coordinator slot 
(`FakeSourceState` wrapping `FakeSourceSplit`s) and one split state per 
subtask, and a file sink with `FileAggregatedCommitInfo` in the coordinator 
slot and `FileSinkState` per subtask;
   * round-trips it through the two serialization layers checkpoint storage 
actually uses: ProtoStuff for the `PipelineState` envelope and the 
`CompletedCheckpoint` nested in it, and the JDK serialization behind 
`DefaultSerializer` for the connector state bytes nested in 
`ActionSubtaskState`;
   * asserts every layer keeps the information intact (job/pipeline/checkpoint 
ids, checkpoint type, parallelism, split assignment, transaction ids, file-move 
maps), instead of the old `assertNotNull`-level checks the surviving sibling 
tests settle for.
   
   This restores CI coverage for the checkpoint serialization path, including 
the `ActionStateKey`-keyed state map and the coordinator/subtask state split as 
`CheckpointPlan` records them.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Test-only change.
   
   ### How was this patch tested?
   
   `mvn -pl seatunnel-engine/seatunnel-engine-server 
-Dtest=CheckpointSerializeTest test` — passes (1/1).
   
   The full `org.apache.seatunnel.engine.server.checkpoint` package was also 
re-run to confirm no regression in the sibling tests, and `mvn spotless:check` 
passes for the module.
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License 
Notice according [New License 
Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new 
feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If necessary, please update `incompatible-changes.md` to describe the 
incompatibility caused by this PR.
   * [ ] If you are contributing the connector code, please check that the 
following files are updated: (N/A — engine test only)
   
   ---
   
   This PR was created with the assistance of generative AI tooling 
(TeleAgent); the code was reviewed and tested by the contributor before 
submission.
   


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