Repository navigation
Add unit tests and simplify condition - #225
Merged
Merged
Conversation
Performance Comparison
|
|
The author of this PR, apsonawane, is not an activated member of this organization on Codecov. |
Contributor
There was a problem hiding this comment.
Pull request overview
Follow-up to #223 to add unit coverage for Gemma4 audio processor config generation and to simplify the vision-config branching in genai_config.json generation.
Changes:
- Added unit tests for
_write_audio_processor_config()(no-audio, non-Gemma4, Gemma4 JSON schema/content). - Added end-to-end tests validating
write_ort_genai_config()writesaudio_feature_extraction.jsonand the Gemma4speechsection ingenai_config.json. - Simplified the condition that determines when to attach vision
config_filename/spatial_merge_sizekwargs duringgenai_config.jsongeneration.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/mobius/integrations/ort_genai/auto_export_test.py |
Adds targeted unit + end-to-end tests for Gemma4 audio processor config and genai_config.json speech section. |
src/mobius/integrations/ort_genai/auto_export.py |
Refactors the Gemma4/has-speech branching for vision kwargs in _write_genai_config() without changing behavior. |
justinchuby
reviewed
Apr 28, 2026
justinchuby
approved these changes
Apr 28, 2026
rui-ren
approved these changes
Apr 28, 2026
apsonawane
enabled auto-merge (squash)
April 28, 2026 23:30
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.
follow up from this PR: #223