Skip to content

feat: adds tee resources description#3377

Merged
stalniy merged 1 commit into
mainfrom
feat/adds-tee-resource-details
Jun 30, 2026
Merged

feat: adds tee resources description#3377
stalniy merged 1 commit into
mainfrom
feat/adds-tee-resource-details

Conversation

@stalniy

@stalniy stalniy commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Why

ref CON-573

What

image

Summary by CodeRabbit

  • New Features
    • Added confidential compute CPU–GPU resource previews in the deployment setup flow, including CPU, memory, and carve-out details.
    • Added a GPU-resource warning when a GPU-based option is selected but no GPU resources are available.
  • Documentation
    • Updated the confidential compute tooltip to link to the official documentation.
  • Bug Fixes
    • Improved confidential compute resource formatting so CPU/memory values stay aligned and don’t wrap.
  • Tests
    • Expanded UI tests for confidential compute carve-outs and GPU-resource validation.

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 27b3f522-a6b3-4490-acd4-c8623f9a8cd0

📥 Commits

Reviewing files that changed from the base of the PR and between 4039f86 and fa889ff.

📒 Files selected for processing (5)
  • apps/deploy-web/src/components/deployments/ConfidentialComputeResources.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/cardTooltips.tsx
  • apps/deploy-web/src/utils/confidentialCompute.ts
✅ Files skipped from review due to trivial changes (1)
  • apps/deploy-web/src/components/deployments/ConfidentialComputeResources.tsx
🚧 Files skipped from review as they are similar to previous changes (4)
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/cardTooltips.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.spec.tsx
  • apps/deploy-web/src/utils/confidentialCompute.ts

📝 Walkthrough

Walkthrough

Adds buildFormTeeCarveout and CONFIDENTIAL_COMPUTE_DOCS_URL in confidentialCompute.ts. Wires carveout preview and GPU mismatch handling into ConfidentialComputeCard. Updates ConfidentialComputeResources layout and tooltip styling, and switches the docs link to the shared URL. Expands tests for the new conditional UI.

Changes

Confidential Compute carveout preview and GPU warning

Layer / File(s) Summary
Build form carveout helper
apps/deploy-web/src/utils/confidentialCompute.ts
Adds CONFIDENTIAL_COMPUTE_DOCS_URL, a memoryUnits-based byte lookup, and buildFormTeeCarveout for converting form CPU/RAM/GPU values into a TeeResourceCarveout.
ConfidentialComputeCard carveout and warning
apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.tsx
Watches profile and count, computes gpuMismatch for cpu-gpu when GPU resources are absent, builds a carveout from current form values, and renders the warning Alert plus ConfidentialComputeResources.
ResourceLine layout and tooltip docs link
apps/deploy-web/src/components/deployments/ConfidentialComputeResources.tsx, apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/cardTooltips.tsx
Adjusts resource value alignment and tooltip styling, and replaces the hardcoded confidential-compute docs URL with CONFIDENTIAL_COMPUTE_DOCS_URL.
ConfidentialComputeCard test coverage
apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.spec.tsx
Adds TooltipProvider to the render tree and covers carveout visibility plus GPU warning behavior with and without GPU resources.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • akash-network/console#3353: Modifies the same ConfidentialComputeResources.tsx component, adding the initial carve-out summary UI that this PR further refines.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/adds-tee-resource-details

Warning

Tools execution failed with the following error:

Failed to run tools: Ping-pong health check failed


Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.44%. Comparing base (0f7d883) to head (fa889ff).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3377      +/-   ##
==========================================
- Coverage   69.80%   68.44%   -1.37%     
==========================================
  Files        1100     1010      -90     
  Lines       26926    24593    -2333     
  Branches     6455     5997     -458     
==========================================
- Hits        18797    16833    -1964     
+ Misses       7141     6804     -337     
+ Partials      988      956      -32     
Flag Coverage Δ *Carryforward flag
api 85.13% <ø> (ø) Carriedforward from 0f7d883
deploy-web 55.01% <ø> (ø) Carriedforward from 0f7d883
log-collector ?
notifications 91.44% <ø> (ø) Carriedforward from 0f7d883
provider-console 81.38% <ø> (ø) Carriedforward from 0f7d883
provider-inventory ?
provider-proxy 86.26% <ø> (ø) Carriedforward from 0f7d883
tx-signer ?

*This pull request uses carry forward flags. Click here to find out more.
see 90 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stalniy stalniy force-pushed the feat/adds-tee-resource-details branch 2 times, most recently from 625dfbf to 4039f86 Compare June 30, 2026 13:10
@stalniy stalniy enabled auto-merge June 30, 2026 13:10

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.spec.tsx`:
- Around line 136-145: The current tests for ConfidientialComputeCard only
pre-seed the tee state, so they do not verify the actual cpu-gpu selection flow.
Update the “selected” case in ConfidentialComputeCard.spec.tsx to interact with
the radio group through the component’s selection path, using the existing
setTee()/enableGpu behavior, while keeping direct state seeding only for the
persisted mismatch scenario. Use the existing setup helper and the cpu-gpu
option assertions to ensure the GPU fields stay in sync when the user selects
cpu-gpu.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cd64dceb-1d11-4e93-a745-d7dd3ccd4331

📥 Commits

Reviewing files that changed from the base of the PR and between 32de49b and 4039f86.

📒 Files selected for processing (5)
  • apps/deploy-web/src/components/deployments/ConfidentialComputeResources.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/ConfidentialComputeCard/ConfidentialComputeCard.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigurationPane/cardTooltips.tsx
  • apps/deploy-web/src/utils/confidentialCompute.ts

@stalniy stalniy force-pushed the feat/adds-tee-resource-details branch from 4039f86 to f2ef979 Compare June 30, 2026 14:12
@stalniy stalniy force-pushed the feat/adds-tee-resource-details branch from f2ef979 to fa889ff Compare June 30, 2026 14:13
@stalniy stalniy added this pull request to the merge queue Jun 30, 2026
Merged via the queue into main with commit 1112d73 Jun 30, 2026
57 checks passed
@stalniy stalniy deleted the feat/adds-tee-resource-details branch June 30, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants