Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions tests/cov_pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,3 @@ addopts =
--ignore=tests/graph_optimization/test_cuda_graph_dynamic_subgraph.py
--ignore=tests/e2e/test_ernie_03b_pd_decode_unified_attention.py
--ignore=tests/e2e/test_ernie_03b_pd_router_v1_ipc.py
--ignore=tests/distributed/test_fusedmoe_ep_entry.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Bug 删除这条 ignore 后,coverage_run.sh 的收集阶段会导入并实际执行 tests/distributed/test_fusedmoe_ep_entry.py

coverage_run.sh 先执行 python -m pytest --collect-only -q -c ${PYTEST_INI} tests 来收集文件;被恢复的测试文件底部有未受 if __name__ == "__main__" 保护的 test_fused_moe_launch(),导入时就会启动 paddle.distributed.launch --gpus 0,1。后续 run_test_with_logging 再跑该文件时,pytest 导入会再执行一次,随后测试函数本身还会执行一次,导致覆盖率任务重复启动分布式子进程,并且第一次发生在收集阶段,绕过分类、重试和日志目录隔离。

建议修复方式:
先保留这条 ignore,或在恢复前把 tests/distributed/test_fusedmoe_ep_entry.py 的模块级调用移到 if __name__ == "__main__": 下,并给 pytest 入口补上显式的多 GPU 可用性 skip/gate,确保 collect-only 只收集、不执行分布式任务。

--ignore=tests/distributed/test_hopper_ll_precision.py
--ignore=tests/layers/test_deepgemm_fused_moe.py
--ignore=tests/rl/test_dynamic_weight_manager.py
--ignore=tests/layers/test_flash_attn_func.py
--ignore=tests/model_executor/test_ep.py
--ignore=tests/operators/test_flash_mask_attn.py
--ignore=tests/quantization/test_modelopt_nvfp4.py
Loading