Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
当前CI流程中,ut_cpp和ut_python任务无论PR修改内容如何,都会执行全量测试。这导致:
非源码文件修改应跳过测试:
根据修改文件决定执行哪些测试:
当测试不需要执行时:
exit 200
新增 -f|--filelist 参数,传入PR修改文件列表用于分析
-f|--filelist
内部CIE
优化CI UT时间
修改 test/build_llt.sh:
test/build_llt.sh
NO_TEST_WHITELIST
analyze_pr_filelist()
run_check_asci()
run_python_ut()
build_test()
CI脚本配合修改:识别 exit 200 并跳过覆盖率生成。
该特性相关修改已合入,issue关闭。
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Backgroud(背景信息)
当前CI流程中,ut_cpp和ut_python任务无论PR修改内容如何,都会执行全量测试。这导致:
1. 白名单机制
非源码文件修改应跳过测试:
2. 精准触发机制
根据修改文件决定执行哪些测试:
3. 测试跳过标识
当测试不需要执行时:
exit 200标识跳过状态exit 200并跳过覆盖率生成流程4. 参数支持
新增
-f|--filelist参数,传入PR修改文件列表用于分析期望效果
Origin(信息来源)
内部CIE
Benefit / Necessity (价值/作用)
优化CI UT时间
Design(设计方案)
修改
test/build_llt.sh:NO_TEST_WHITELISTanalyze_pr_filelist()run_check_asci()和run_python_ut()支持精准测试build_test()函数支持测试跳过逻辑(exit 200)CI脚本配合修改:识别
exit 200并跳过覆盖率生成。