You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "mengw15 (via GitHub)" <gi...@apache.org> on 2026/07/11 06:30:18 UTC

[PR] test(computing-unit-managing-service): add unit test coverage for ComputingUnitHelpers [texera]

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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(computing-unit-managing-service): add unit test coverage for ComputingUnitHelpers [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6330:
URL: https://github.com/apache/texera/pull/6330#issuecomment-4943083073

   <!-- texera-reviewer-suggestion -->
   ### Automated Reviewer Suggestions
   
   Based on the `git blame` history of the changed files, we recommend the following reviewers:
   
   - No candidates found from `git blame` history.
   


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


Re: [PR] test(computing-unit-managing-service): add unit test coverage for ComputingUnitHelpers [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #6330:
URL: https://github.com/apache/texera/pull/6330#issuecomment-4943099570

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/6330?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 61.05%. Comparing base ([`9f9f85b`](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`8f6c169`](https://app.codecov.io/gh/apache/texera/commit/8f6c16982fb25be41d01fdd8e1a894651e0f1dd3?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff            @@
   ##               main    #6330   +/-   ##
   =========================================
     Coverage     61.05%   61.05%           
     Complexity     3380     3380           
   =========================================
     Files          1140     1140           
     Lines         44932    44932           
     Branches       4944     4944           
   =========================================
     Hits          27432    27432           
     Misses        15987    15987           
     Partials       1513     1513           
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
   |---|---|---|---|
   | [access-control-service](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.00% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [agent-service](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `44.59% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [amber](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `66.57% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [config-service](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.30% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [file-service](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.97% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [frontend](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `53.25% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.94% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [pyamber](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `91.18% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/6330/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.14% <ø> (ø)` | | Carriedforward from [9f9f85b](https://app.codecov.io/gh/apache/texera/commit/9f9f85b88687ca398c48f7426cecbdc187f935b8?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   *This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/6330?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


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


Re: [PR] test(computing-unit-managing-service): add unit test coverage for ComputingUnitHelpers [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 merged PR #6330:
URL: https://github.com/apache/texera/pull/6330


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