Skip to content

fix CI: correct patch targets in test_quick_start_lite.py#140

Merged
MaojiaSheng merged 3 commits intovolcengine:mainfrom
ZaynJarvis:fix/test-lite-patching
Feb 12, 2026
Merged

fix CI: correct patch targets in test_quick_start_lite.py#140
MaojiaSheng merged 3 commits intovolcengine:mainfrom
ZaynJarvis:fix/test-lite-patching

Conversation

@ZaynJarvis
Copy link
Collaborator

Problem

The test-lite workflow was failing with:

AttributeError: module 'openviking.utils.config' has no attribute 'embedding_config'. Did you mean: 'EmbeddingConfig'?

Root Cause

The test was patching:

  • openviking.utils.config.embedding_config.EmbeddingConfig.get_embedder
  • openviking.utils.config.vlm_config.VLMConfig.get_vlm_instance

But these classes are now exported directly from openviking.utils.config (via __init__.py), not as submodules.

Fix

Changed patch targets to:

  • openviking.utils.config.EmbeddingConfig.get_embedder
  • openviking.utils.config.VLMConfig.get_vlm_instance

Testing

  • Import check passes
  • Patch targets resolve correctly

The test was patching 'openviking.utils.config.embedding_config.EmbeddingConfig'
and 'openviking.utils.config.vlm_config.VLMConfig' but these modules are now
exported directly from 'openviking.utils.config'.

Changed patch targets to:
- openviking.utils.config.EmbeddingConfig.get_embedder
- openviking.utils.config.VLMConfig.get_vlm_instance
@ZaynJarvis ZaynJarvis changed the title fix: correct patch targets in test_quick_start_lite.py [WIP] fix: correct patch targets in test_quick_start_lite.py Feb 12, 2026
The test modifies sys.path before importing from openviking,
which is intentional for test isolation. Added noqa comment to
suppress the linter warning.
@ZaynJarvis ZaynJarvis changed the title [WIP] fix: correct patch targets in test_quick_start_lite.py fix: correct patch targets in test_quick_start_lite.py Feb 12, 2026
@ZaynJarvis ZaynJarvis changed the title fix: correct patch targets in test_quick_start_lite.py fix CI: correct patch targets in test_quick_start_lite.py Feb 12, 2026
@MaojiaSheng MaojiaSheng merged commit 7a3e85c into volcengine:main Feb 12, 2026
5 checks passed
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.

3 participants