Skip to content

feat(devbox): vgpu support#6846

Open
mlhiter wants to merge 4 commits intolabring:release-v5.1from
mlhiter:feat/vgpu-support
Open

feat(devbox): vgpu support#6846
mlhiter wants to merge 4 commits intolabring:release-v5.1from
mlhiter:feat/vgpu-support

Conversation

@mlhiter
Copy link
Copy Markdown
Member

@mlhiter mlhiter commented Mar 27, 2026

  • Introduced GPU inventory data structure and related types for better management.
  • Updated the Devbox creation page to utilize GPU inventory for selection and validation.
  • Enhanced GPU component to display available models and specifications.
  • Implemented logic for GPU pod configuration and resource limits.
  • Added validation for GPU specifications and improved error messaging.
  • Updated API schemas to include GPU model, spec type, and pod configuration details.
  • Enhanced price calculation logic to account for GPU specifications and limits.

This update improves the user experience when configuring GPU resources in the Devbox, ensuring accurate representation and management of GPU capabilities.

mlhiter added 3 commits March 26, 2026 18:01
- Introduced GPU inventory data structure and related types for better management.
- Updated the Devbox creation page to utilize GPU inventory for selection and validation.
- Enhanced GPU component to display available models and specifications.
- Implemented logic for GPU pod configuration and resource limits.
- Added validation for GPU specifications and improved error messaging.
- Updated API schemas to include GPU model, spec type, and pod configuration details.
- Enhanced price calculation logic to account for GPU specifications and limits.

This update improves the user experience when configuring GPU resources in the Devbox, ensuring accurate representation and management of GPU capabilities.
- Enhanced the normalization function to support additional fields for GPU specifications, including specType, specMemory, and specValue.
- Updated stock retrieval to consider multiple potential properties (stock, available, count) for better accuracy.

These changes ensure more robust handling of GPU resource data in the Devbox, improving inventory management and user experience.
- Removed dependency on GPU inventory configuration for enabling GPU features.
- Streamlined the logic to determine if GPU features are enabled based solely on the environment variable.

This change simplifies the handling of GPU features in the resource price API, ensuring a more straightforward implementation.
@mlhiter mlhiter requested a review from a team as a code owner March 27, 2026 02:17
@pull-request-size
Copy link
Copy Markdown

Whoa! Easy there, Partner!

This PR is too big. Please break it up into smaller PRs.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-v5.1@73d6fbb). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release-v5.1    #6846   +/-   ##
===============================================
  Coverage                ?   61.86%           
===============================================
  Files                   ?        8           
  Lines                   ?      653           
  Branches                ?        0           
===============================================
  Hits                    ?      404           
  Misses                  ?      202           
  Partials                ?       47           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant