Merged
Conversation
Contributor
Author
Contributor
Author
Contributor
Author
Contributor
Author
|
后面两个 commit 之后的行为跟上述截图依然一致,就不再贴图了 |
Chamberlain0w0
commented
Mar 11, 2026
| import sys | ||
|
|
||
|
|
||
| def collect_log_files(base_dir: Path): |
Contributor
Author
There was a problem hiding this comment.
这个是在 log 目录下面,递归收集可比较日志,不看 tag,只按 basename 索引
Chamberlain0w0
commented
Mar 11, 2026
| return files, duplicates | ||
|
|
||
|
|
||
| def exit_if_duplicate_logs(base_dir: Path, duplicates): |
Contributor
Author
There was a problem hiding this comment.
由于只按 basename 索引,所以要求了不同 tag 下面的测例不能重名(我们目前也做到了这一点)
Chamberlain0w0
commented
Mar 11, 2026
| cat <<'EOF' | ||
| Usage: run_models_and_profile.bash [--test-config path] [--only-run tag1,tag2] | ||
|
|
||
| Options: |
kilinchange
approved these changes
Mar 11, 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.



test_config.json:测试配置从单一平铺列表调整为按 tag 分组的 test_groups 结构,目前所有脚本的逻辑都是按组维护测例;run_models_and_profile.bash:测试日志和 profile 日志改为按 tag 分类存储到logs/<tag>/以及profile_logs/<tag>中;新增了--only-run参数,可以按单个或多个 tag(半角逗号分隔)选择性执行测试;token.json:由于每个功能模块单开表格记录,所以每个 tag 对应一套表格,现在长这样:write_to_feishu_sheet.py:按 tag 读取 log,并写入对应的表格;同时由于服务器网络环境成谜,新增 retry 逻辑,如果同一请求连续 3 次超时,脚本会直接报 fatal 并退出,这时需要人工手动回退飞书表格历史版本。compare_xxx.py:适配新的日志目录结构,能够兼容带 tag 子目录的日志组织方式,逻辑改为对比最终的不带目录的纯文件名(test id),可以拿新的日志目录跟以前的旧的比。