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

   ### What changes were proposed in this PR?
   
   Add `SchedulingUtilsSpec` covering the single public function 
`SchedulingUtils.replaceVertex` 
(`amber/src/main/scala/org/apache/texera/amber/engine/architecture/scheduling/SchedulingUtils.scala`),
 which rewrites a vertex (and its incident edges) in a JGraphT 
`DirectedAcyclicGraph[Region, RegionLink]`.
   
   Cases:
   - Isolated vertex with no incident edges
   - Outgoing edges are rewritten to originate from the new vertex
   - Incoming edges are rewritten to terminate at the new vertex
   - Chain-middle replacement preserves upstream and downstream edges
   - No-op when old and new vertices are equal
   
   ### Any related issues, documentation, discussions?
   
   Closes #4565
   
   ### How was this PR tested?
   
   `sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.scheduling.SchedulingUtilsSpec"` — 
5/5 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