aglinxinyuan opened a new issue, #4571: URL: https://github.com/apache/texera/issues/4571
### Task Summary `WorkflowExecution` (`amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/execution/WorkflowExecution.scala`) tracks per-region executions for the controller but currently has no dedicated unit tests. Add `WorkflowExecutionSpec` covering its lifecycle and lookup contract: - `initRegionExecution` creates a new `RegionExecution`; throws on re-init for the same region id - `hasRegionExecution` reflects init state - `getRegionExecution` throws `NoSuchElementException` for unknown ids - `getAllRegionExecutions` preserves insertion order (LinkedHashMap) - `restartRegionExecution` behaves like a fresh init when no prior region exists, and replaces a completed region with a fresh execution - `getRunningRegionExecutions` excludes completed regions - `getState` returns UNINITIALIZED on empty and COMPLETED when every initialized region is completed - `getLatestOperatorExecutionOption` returns None when none exists and the latest match across regions otherwise ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
