You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by GitBox <gi...@apache.org> on 2026/07/22 07:15:56 UTC
[GH] (texera/gh-readonly-queue/main/pr-6756-6165a7e59e56b2648361c40c5a996c71819846a2): Workflow run "Required Checks" is working again!
The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-6756-6165a7e59e56b2648361c40c5a996c71819846a2 has succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).
Head commit for run:
57f2e23fa530bc3bfda40eda32846b7452b441c8 / Meng Wang <me...@uci.edu>
test(frontend): cover ComputingUnitSelectionComponent resource-formatting and status getters (#6756)
### What changes were proposed in this PR?
Extends the existing `ComputingUnitSelectionComponent` spec to cover its
previously-untested resource-formatting and status-display getters
(`frontend/src/app/workspace/component/power-button/computing-unit-selection.component.ts`).
The selected computing unit is seeded directly so each getter's own
logic is
exercised.
13 tests cover: fallbacks when no unit is selected; `getButtonText` /
`computeStatus` / `isComputingUnitRunning` across statuses; the raw gpu
/ jvm /
shared-memory passthroughs; `getCpuLimit` / `getMemoryLimit`; the
display-unit
derivation (empty cpu unit → "Cores", empty memory unit → "B"); the
N/A-metrics
0% / `success` case and a real cpu percentage; `getBadgeColor`;
`getUnitStatusTooltip`; `cannotSelectUnit` / `isSelectedUnit`;
`isCreateDisabled`;
and the `trackByCuid` / `trackByIndex` identities.
No production code was changed.
### Any related issues, documentation, discussions?
Closes #6745
### How was this PR tested?
New unit tests, run locally in `frontend/` (all green; the failure path
was
verified by breaking an assertion to confirm the suite goes red):
```
ng test --watch=false --include src/app/workspace/component/power-button/computing-unit-selection.component.spec.ts
# Test Files 1 passed (1) | Tests 113 passed (113)
prettier --write <spec> # clean
eslint <spec> # clean
```
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8 [1M context])
Report URL: https://github.com/apache/texera/actions/runs/29898313829
With regards,
GitHub Actions via GitBox