Repository navigation
fix(tests): update vision_config fixtures for text-only detection - #2040
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #2031 (issue #1367) changed
has_vision_configso that an empty or nullvision_configcounts 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_configsanddetect_text_or_vlm_prefers_vlm_when_vision_config_existsuse a non-emptyvision_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_requireduses a non-emptyvision_configforkimi_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.