Expand description
Environment validation — .mlstack_env checking with sensible defaults.
Ports functionality from scripts/env_validation_utils.sh:
- Validates
.mlstack_envfile exists and contains required variables - Provides sensible defaults for missing values
- Validates ROCM_CHANNEL value
- Auto-detects GPU_ARCH and ROCM_VERSION when possible
§Validation Assertions
- VAL-INFRA-017: .mlstack_env validation with sensible defaults
- VAL-INFRA-022: Graceful handling of missing dependencies (no panics)
Structs§
- EnvValidation
Result - Result of validating the
.mlstack_envfile. - EnvVars
- Resolved environment variables from
.mlstack_env.
Functions§
- default_
env_ path - Get the default path for
.mlstack_env. - default_
venv_ base - Get the default venv base directory.
- load_
mlstack_ env - Load the
.mlstack_envfile into the current process environment. - require_
mlstack_ env - Require
.mlstack_envvalidation — always succeeds with defaults. - validate_
mlstack_ env - Validate the
.mlstack_envfile and return resolved variables.