test(perf): 添加API性能基线测试,核心接口响应时间阈值监控 #190
Reference in New Issue
Block a user
Delete Branch "feat/add-performance-baseline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
API 性能基线测试
为核心 API 接口添加性能基线测试,确保接口响应时间在合理范围内。
新增文件
tests/integration/conftest.py - 性能测试基础设施
tests/integration/test_api_performance.py - 13 个性能测试用例
修改文件
.gitea/workflows/ci-cd.yml - 在集成测试后添加性能测试步骤
tests/e2e/api_smoke_test.sh - 冒烟测试脚本增加响应时间检查
跳过方式
性能报告格式
每个接口输出 PERF_RESULT 行,包含:
CI 中通过 grep 解析即可快速统计。