mengw15 opened a new pull request, #6330:
URL: https://github.com/apache/texera/pull/6330

   ### What changes were proposed in this PR?
   
   Add unit test coverage for `ComputingUnitHelpers.getComputingUnitStatus` and 
`getComputingUnitMetrics`, on their pure `local` and unknown-type branches. 
Each constructs the jOOQ `WorkflowComputingUnit` pojo via `setType` (no DB). No 
production-code changes.
   
   The `kubernetes` branch calls the static `KubernetesClient` (`getPodByName` 
/ `getPodMetrics`) and needs a mock seam — out of scope here, per the issue. 
(`WorkflowComputingUnitTypeEnum` defines only `local` and `kubernetes`, so an 
untyped unit exercises the `unknown` branch.)
   
   ### Any related issues, documentation, discussions?
   
   Closes #6326.
   
   ### How was this PR tested?
   
   ```
   sbt "ComputingUnitManagingService/testOnly *ComputingUnitHelpersSpec"
   ```
   
   All 4 pass. `scalafmt` and `scalafix --check` are clean. The spec touches no 
cluster or DB — it constructs pojos and exercises only the pure `local` / 
unknown branches.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
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]

Reply via email to