aglinxinyuan opened a new pull request, #4570: URL: https://github.com/apache/texera/pull/4570
### What changes were proposed in this PR? Add `ExecutionUtilsSpec` covering the three pure aggregator functions exposed by `ExecutionUtils` (`amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/execution/ExecutionUtils.scala`): - `aggregateStates` — empty, all-completed, all-terminated, has-running, all-uninitialized, all-paused, all-ready (maps to RUNNING), and mixed (UNKNOWN) - `aggregatePortMetrics` — empty, single mapping, sum on same port, group by port id when ports differ - `aggregateMetrics` — empty defaults, scalar sums and per-port merges across operators, and internal-port filtering ### Any related issues, documentation, discussions? Closes #4569 ### How was this PR tested? `sbt "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.architecture.controller.execution.ExecutionUtilsSpec"` — 15/15 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]
