Skip to content

fix(validate-models): support exported variables in env_value in validate-models.py - #5563

Open
vaibhavsrv wants to merge 1 commit into
Osmantic:public-betafrom
vaibhavsrv:fix/validate-models-export-prefix
Open

vaibhavsrv wants to merge 1 commit into
Osmantic:public-betafrom
vaibhavsrv:fix/validate-models-export-prefix

Conversation

@vaibhavsrv

Copy link
Copy Markdown
Contributor

Why this matters

In ods/scripts/validate-models.py, env_value() checked lines with line.startswith(f"{key}="). In installations where .env entries are prepended with export , model and backend settings were missed, causing validation to silently fall back to default configuration.

Strip leading export prefixes prior to key matching, ensuring consistency with shell environment definitions.

Validation

  • Baseline reproduction: env_value() with export ODS_MODE=cloud failed to read the key and returned local.
  • Post-fix: test_validate_models_export_prefix.py validates that export-prefixed configuration keys are recognized.
  • Model validation suites: 1 passed. Ruff and diff checks pass; regression wired into Linux CI.

Overlap check

Searched live open/closed PRs by validate-models.py. #5402 handles offline GGUF checks; this aligns environment variable reading.

Risk / AI disclosure

AI-assisted investigation, implementation and CLI regressions. This strengthens model environment validation. Independent review remains a gate.

Follow-up integration evidence

Composed with #5402 at 3c186f3 without conflicts. Model validation routines remain intact.
Backlog composition was local-only (production/test diffs, excluding workflow/Makefile wiring); it is not an upstream merge or independent human approval. Declared live-review gates remain open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant