Api test:improve API test infrastructure with dual-mode CI#950
Merged
qin-ctx merged 1 commit intovolcengine:mainfrom Mar 26, 2026
Merged
Api test:improve API test infrastructure with dual-mode CI#950qin-ctx merged 1 commit intovolcengine:mainfrom
qin-ctx merged 1 commit intovolcengine:mainfrom
Conversation
|
Failed to generate code suggestions for PR |
qin-ctx
requested changes
Mar 25, 2026
Collaborator
qin-ctx
left a comment
There was a problem hiding this comment.
This review focuses on correctness and CI reliability. I found three blocking issues in the new test suite/workflow and two follow-up suggestions around API contract drift and PR hygiene.
2f46d7a to
bf6f580
Compare
1ceeadb to
1151a1b
Compare
- 使用 uv 管理依赖和虚拟环境 - 实现双模式测试策略(有 secrets 运行完整测试,无 secrets 跳过 VLM/Embedding 测试) - 添加 GitHub Actions CI 配置 - 添加本地化脚本 local-test.sh - 优化测试用例,添加场景化断言和中文测试数据 - 修复 API 客户端字段名与服务端契约不一致问题 - 确保在干净环境中可重复运行
qin-ctx
approved these changes
Mar 26, 2026
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.
feat: improve API test infrastructure with dual-mode CI
变更概述
本次 PR 对 API 测试基础设施进行了全面升级,主要包含以下改进:
1. 场景化测试用例优化
scenarios/目录下 9 个测试用例2. CI/CD 流水线优化
uv sync --frozen替代 pip,解决 litellm 依赖安装问题3. 代码格式修复
pyproject.toml配置不变tools/目录下的 E402 和格式问题4. 测试用例修复
test_add_resource.py:使用本地临时文件而非已索引的 Viking URIadd_resource:将target参数改为to,与服务器 API 保持一致test_grep.py:交换了uri和pattern参数顺序local-test.sh:添加配置文件创建和合理的测试范围测试范围
始终运行的基础测试
有 secrets 时运行的完整测试
验证结果