Skip to content

Fix WebUI validation adapter config file paths - #3211

Merged
bghira merged 1 commit into
mainfrom
fix/3205-validation-adapter-config
Sep 6, 2026
Merged

bghira merged 1 commit into
mainfrom
fix/3205-validation-adapter-config

Conversation

@bghira

@bghira bghira commented Sep 6, 2026

Copy link
Copy Markdown
Owner

WebUI configuration normalization converted existing validation adapter JSON files under the configured directory into relative paths. Unlike the other JSON configuration fields, validation_adapter_config was missing from the fields resolved back to absolute paths. Training could therefore no longer load the file and raised the misleading "must be a list or a dict containing 'runs'" error, while inline JSON worked.

Include validation adapter configs in the existing JSON path handling. Regression coverage follows WebUI normalization, configuration serialization/loading, and adapter run construction for a single adapter object, an array, and a runs object. Absolute and relative paths match inline JSON; files outside the config directory still work and malformed inputs still fail.

Validation: the existing absolute-file regression reproduced the reported error before the fix. All 54 tests pass with .venv/bin/python -m unittest -v -f tests.test_validation_adapter_config tests.test_validation_adapters tests.test_configs_service_environment tests.test_training_service. Black and isort checks pass for both changed files.

Closes #3205.

@bghira
bghira merged commit 1e137ad into main Sep 6, 2026
2 checks passed
@bghira
bghira deleted the fix/3205-validation-adapter-config branch September 6, 2026 18:56
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.

[bug] Training resume with training adapter is failing

1 participant