aglinxinyuan opened a new issue, #4742: URL: https://github.com/apache/texera/issues/4742
### Task Summary `Utils` (`amber/src/main/scala/org/apache/texera/amber/engine/common/Utils.scala`) bundles state-name conversion, status-code mapping, retry-with-backoff, and lock helpers used across the engine. None of them currently has unit tests. Add `UtilsSpec` covering: - `aggregatedStateToString` round-trips every named `WorkflowAggregatedState` through `stringToAggregatedState`, and renders the `Unrecognized` variant with its raw value - `stringToAggregatedState` is case-insensitive, trims whitespace, accepts the `Initializing` alias for `READY`, and throws `IllegalArgumentException` for unknown names - `maptoStatusCode` returns the documented byte codes for known states and `-1` for the rest - `retry` returns immediately on success, retries on failure up to the attempt limit, and rethrows after exhaustion - `withLock` releases the lock after both normal return and exception ### 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]
