You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Ma77Ball (via GitHub)" <gi...@apache.org> on 2026/06/05 19:38:46 UTC
[I] Expand unit test coverage for ExecutionResultService [texera]
Ma77Ball opened a new issue, #5389:
URL: https://github.com/apache/texera/issues/5389
### Task Summary
`amber/src/main/scala/org/apache/texera/web/service/ExecutionResultService.scala` has a spec, but it exercises only `convertTuplesToJson`, and even there it under-asserts. Tighten the cleanly unit-testable surface:
- **Binary preview formatting**: the existing cases assert only byte size and the presence of an ellipsis. Pin the exact preview bits for both branches: the 13-bits-or-fewer branch (a non-empty small field renders its full bit string with no ellipsis) and the leading-10 + ellipsis + trailing-3 format for larger fields.
- **Web result-update ADT JSON contract**: add serialization tests for the `WebOutputMode` / `WebResultUpdate` types the frontend dispatches on, namely the `type` discriminator for `PaginationMode`/`SetSnapshotMode`/`SetDeltaMode` and the shapes of `WebPaginationUpdate` and `WebDataUpdate`.
Note: the storage/DB/actor-dependent methods (`handleResultPagination`, `convertWebResultUpdate`, `attachToExecution`, `onResultUpdate`) need integration infrastructure and are out of scope for this unit-test task.
### 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] Expand unit test coverage for ExecutionResultService [texera]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang closed issue #5389: Expand unit test coverage for ExecutionResultService
URL: https://github.com/apache/texera/issues/5389
--
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