feat(FR-1726): Auto-populate ENV variables based on selected Inference Runtime Variant
resolves FR-1726
Enhance Environment Variable Management for Model Services
This PR adds runtime-specific environment variable configurations and improves the environment variable form component with the following features:
- Added support for runtime-specific environment variables with predefined configurations for vllm, sglang, and nim runtimes
- Implemented autocomplete for environment variable names based on the selected runtime
- Added dynamic placeholders for environment variable values based on the selected variable
- Created exception for NGC_API_KEY to prevent sanitization despite matching sensitive patterns
- Improved form validation and filtering of empty environment variables
- Added translations for all new environment variable placeholders across multiple languages
These changes make it easier for users to configure model services with the correct environment variables for each runtime type, providing better guidance through placeholders and autocomplete suggestions.



Checklist:
- [x] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [x] Test case(s) to demonstrate the difference of before/after
-
#4721
π (View in Graphite)
-
main
How to use the Graphite Merge Queue
Add either label to this PR to merge it via the merge queue:
- flow:merge-queue - adds this PR to the back of the merge queue
- flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next
You must have a Graphite account in order to use the merge queue. Sign up using this link.
An organization admin has required the Graphite Merge Queue in this repository.
Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.
This stack of pull requests is managed by Graphite. Learn more about stacking.
Coverage report for ./react
St.:grey_question: |
Category | Percentage | Covered / Total |
|---|---|---|---|
| π΄ | Statements | 4.21% (-0.03% π») |
496/11794 |
| π΄ | Branches | 3.67% (+0.01% πΌ) |
302/8235 |
| π΄ | Functions | 2.53% (-0.02% π») |
92/3631 |
| π΄ | Lines | 4.18% (-0.03% π») |
482/11536 |
Show new covered files π£
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π΄ | ... / useVariantConfigs.ts |
0% | 100% | 0% | 0% |
Show files with reduced coverage π»
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π΄ | ... / EnvVarFormList.tsx |
16.33% (-11.26% π») |
16.33% (-14.44% π») |
14.81% (-10.19% π») |
15.22% (-10.71% π») |
Test suite run success
145 tests passing in 13 suites.
Report generated by π§ͺjest coverage report action from 2b2f963c260a2bebf807332e01d627f7679aeea0