The GitHub Actions job "Build" on texera.git/xinyuan-test-scheduler-spec has 
succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
993bca9af479a35ddf3868b2682f2e8ace7d8dc2 / Xinyuan Lin <[email protected]>
test(amber): add unit test coverage for WorkflowScheduler

### What changes were proposed in this PR?

Add `WorkflowSchedulerSpec` covering the public contract of
`WorkflowScheduler`:

- `updateSchedule` populates `getSchedule` and `physicalPlan` from the
  input workflow
- The produced schedule covers every operator in the (post-update)
  physical plan
- `getNextRegions` exhausts the schedule and then returns an empty set
- The union of region sets pulled via `getNextRegions` matches
  `getSchedule.getRegions`

### Any related issues, documentation, discussions?

Closes #4563

### How was this PR tested?

`sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.controller.WorkflowSchedulerSpec"` 
— 4/4 tests pass.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.7)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/25150826983

With regards,
GitHub Actions via GitBox

Reply via email to