Skip to content

fix(tests): update vision_config fixtures for text-only detection - #2040

Merged
inureyes merged 1 commit into
mainfrom
fix/vision-config-empty-test-fixtures
Sep 29, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/vision-config-empty-test-fixtures

Conversation

@inureyes

Copy link
Copy Markdown
Member

Summary

PR #2031 (issue #1367) changed has_vision_config so that an empty or null vision_config counts as text-only. Three existing tests still used "vision_config": {} as their VLM fixture, so they failed on main after the merge. The unit that implemented #1367 ran only its own test filters, so the failures surfaced in the post-merge integration gate of the auto-impl run.

Changes

  • src/models/detection_tests.rs: has_vision_config_detects_vlm_configs and detect_text_or_vlm_prefers_vlm_when_vision_config_exists use a non-empty vision_config. The first also asserts that {} is now text-only, so the test documents the new rule.
  • src/server/webui/catalog_contract_tests.rs: bounded_catalog_detection_reports_unknown_when_weight_index_is_required uses a non-empty vision_config for kimi_k3, so detection still reaches the weight-index probe the test is about.

No production code changes.

Verification

  • cargo test --release -p mlxcel --lib: 8683 passed, 0 failed, 155 ignored (previously 3 failed).
  • cargo fmt --all -- --check: clean.

PR #2031 made an empty vision_config count as text-only. Three tests still used `"vision_config": {}` as a VLM fixture and failed on main. Use a non-empty vision_config and assert the new empty-config rule.
@inureyes inureyes added type:bug Bug fixes, error corrections, or issue resolutions status:done Completed priority:medium Medium priority area:models Model architectures, weights, loading, metadata labels Sep 29, 2026
@inureyes
inureyes merged commit 02ca687 into main Sep 29, 2026
10 of 11 checks passed
@inureyes
inureyes deleted the fix/vision-config-empty-test-fixtures branch September 29, 2026 12:15
@inureyes inureyes added this to the 0.8 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:models Model architectures, weights, loading, metadata priority:medium Medium priority status:done Completed type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant