Skip to content

[test][smoke]补齐性能模式可选能力冒烟用例 - #707

Open
SJTUyh wants to merge 1 commit into
AISBench:masterfrom
SJTUyh:test/perf-smoke-optional-flags
Open

SJTUyh wants to merge 1 commit into
AISBench:masterfrom
SJTUyh:test/perf-smoke-optional-flags

Conversation

@SJTUyh

@SJTUyh SJTUyh commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

PR Type / PR类型

  • Feature(功能新增)
  • Bugfix(Bug 修复)
  • Docs(文档更新)
  • CI/CD(持续集成/持续部署)
  • Refactor(代码重构)
  • Perf(性能优化)
  • Dependency(依赖项更新)
  • Test-Cases(测试用例更新)
  • Other(其他)

Related Issue | 关联 Issue
Fixes #705

🔍 Motivation / 变更动机

补齐性能模式的端到端冒烟覆盖:--spec-decode、--num-warmups 与多值 --batch-size/--num-prompts 目前只有单元测试或完全没有用例入口,CLI 串接、模拟器 /metrics 与结果落盘缺少回归保护。

📝 Modification / 修改内容

新增 3 个冒烟用例(均归入 run_server_performance 与 short):

用例 覆盖点 断言
perf_spec_decode_metrics_na_gsm8k --mode perf --spec-decode,模拟器默认 metrics.mode: static_counters 退出码 0;performances/spec_decode_*.json 存在且 status == "na"、error 包含 No spec decode activity detected during benchmark window;tmplog.txt 无 Traceback
perf_num_warmups_gsm8k --num-warmups 0 与 --num-warmups 4 退出码 0;分别命中 Warmup size is 0, skip 与 Warmup finished + Total Count: 4
perf_batch_size_sweep_gsm8k --batch-size 8 16 --num-prompts 32 64 退出码 0;combos_manifest.json 的 combos 数量为 2、batch_size 为 8/16;batch_perf_summary.csv 含 -bs8/-bs16;两个组合的 performances/*/gsm8k.json 均落盘

实现说明:

  • 用例目录与配置沿用现有 run_server_performance 结构,复用 vllm_api_stream_chat + gsm8k,未新增依赖。
  • --num-warmups 用例使用 --debug:现有实现中 Warmup finished Total Count: ... 仅在 debug 下打印,而 debug 模式不会把子进程输出重定向到 logs/infer/*.out,因此在用例 tmplog 中做断言;Warmup size is 0, skip... 为 info 级日志。
  • 除上述日志位置外,断言字符串与产物路径均与当前实现一致(workers.py、reporter.py、perf_manifest.py、config_manager.py、perf_batch.py)。

📐 Associated Test Results / 关联测试结果

本地已完成静态校验(未运行冒烟,需自托管 ascend 环境):

  • python -c "yaml.safe_load(...)" 解析 3 个 case.yml;用 smoke_tests/framework/run_test_case.py:get_test_case_config 校验 case_tags 含 run_server_performance/short、rank_size=3。
  • bash -n 校验 3 个 run.sh,退出码均为 0。
  • python -m py_compile 校验 3 个模型配置文件,退出码 0。
  • 冒烟执行由 .github/workflows/run_smoke_test_pr_and_daily.yml 的 -t short 触发,结果待 CI 补充。

⚠️ BC-breaking (Optional) / 向后不兼容变更(可选)

不适用。

⚠️ Performance degradation (Optional) / 性能下降(可选)

不适用。

🌟 Use cases (Optional) / 使用案例(可选)

本地按用例组执行:bash smoke_tests/scripts/run_steps.sh -t perf_optional_flags perf_batch_sweep。

✅ Checklist / 检查列表

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues. / 使用预提交或其他 linting 工具来修复潜在的 lint 问题。
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests. / 修复的 Bug 已完全由单元测试覆盖,导致 Bug 的情况应在单元测试中添加。
  • The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness. / 此拉取请求中的修改已完全由单元测试覆盖。如果不是,请添加更多单元测试以确保正确性。
  • All relevant documentation (API docs, docstrings, example tutorials) has been updated to reflect these changes. / 所有相关文档(API 文档、文档字符串、示例教程)已更新以反映这些更改。

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects. / 如果此拉取请求对下游或其他相关项目有潜在影响,应在那些项目中测试此 PR。
  • CLA has been signed and all committers have signed the CLA in this PR. / CLA 已签署,且本 PR 中的所有提交者均已签署 CLA。

说明:本 PR 仅新增冒烟用例,不含业务代码修改;UT 与文档项不适用,Checklist 交由实际执行方确认。

👥 Collaboration Info / 协作信息

  • Suggested Reviewers / 建议审核人: 待维护者指派
  • Relevant Module Owners / 相关模块负责人: 待维护者指派
  • Other Collaboration Notes / 其他协作说明:冒烟用例需在自托管 smoke 环境验证,fork PR 需维护者批准触发。

覆盖 --spec-decode 的 N/A 分支、--num-warmups 0/4 行为,以及多值 --batch-size/--num-prompts 的 sweep 展开与汇总产物。

Fixes AISBench#705

Signed-off-by: SJTUyh <[email protected]>
@SJTUyh
SJTUyh temporarily deployed to smoke-test-approval November 23, 2026 11:17 — with GitHub Actions Inactive
@github-actions github-actions Bot added test-cases no_review PR 未包含任何检视意见,合入前必须包含检视意见 labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:no_review

  • 无检视意见:请至少邀请一位 reviewer 提交检视意见(Approve / Request changes / Comment 均可)。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

This branch was previously deployed

1 inactive deployment
smoke-test-approval — 9d08e1d0 Deployed Nov 23, 2026 by SJTUyh via run_smoke_test_cases #928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no_review PR 未包含任何检视意见,合入前必须包含检视意见 test-cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 补齐性能模式冒烟用例:--spec-decode、--num-warmups 与多档 sweep

1 participant