You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/05/03 01:17:08 UTC
[I] test(amber): add unit test coverage for engine common Utils [texera]
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: notifications-unsubscribe@texera.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] add unit test coverage for engine common Utils [texera]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang closed issue #4742: add unit test coverage for engine common Utils
URL: https://github.com/apache/texera/issues/4742
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org