APITest 测试优化:🔧 补齐运行脚本参数说明并新增 run.py YAML 任务启动器#661
Open
cangtianhuang wants to merge 7 commits into
Open
Conversation
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.
🧭 背景
engineV4.py已兼容engineV2.py的主要调用方式,并额外支持 compute-sanitizer 参数FLAGS_use_accuracy_compatible_kernel,默认关闭🔧 主要变更
1. run.py — YAML 配置驱动的任务启动器
新增
run.py作为主要任务入口,取代直接调用 shell 脚本的方式。基本用法:
YAML 配置结构:
多轮复测(retest): 开启后
run.py自动读取上一轮log_dir中的失败配置文件(api_config_accuracy_error.txt等)作为下一轮输入,无需手动编写复测命令。2. 预置场景配置文件
新增
test_pipeline/V4_configs/目录,提供开箱即用的任务配置:run_gpu_accuracy_full.yamlrun_gpu_0size_full.yamlrun_cpu_0size_full.yamlrun_gpu_bigtensor_full.yamlrun_dsv4_0size_accuracy.yamlrun_dsv4_0size_paddleonly.yamlrun_dsv4_1M_accuracy.yamlrun_dsv4_1M_paddleonly.yamlrun_v2_0size_accuracy.yamlrun_v2_1M_paddleonly.yaml3. 补齐 shell 模板参数和说明
run-example.sh(engineV2 示例)和run-v4.sh补充全部 engine 参数注释,包含custom_device_vs_gpu、manual_threshold_config_file、random_seed、show_runtime_status等run-v4.sh在ENGINE=engineV2时跳过 sanitizer 参数传递FLAGS_use_accuracy_compatible_kernel=false${BASH_SOURCE[0]##*/},支持用户复制脚本为不同任务名4. 修正 runner 参数白名单和 schema
run.py ENGINE_ARG_TYPES补齐manual_threshold_config_file、use_gpu_cache_moderun_config.schema.json补齐缺失字段并为所有 engine 参数添加对应 CLI 参数描述📁 改动文件