执行摘要
修复 ROCm 上 spawn 子进程导入失败
ROCm CI 中 Distributed Torchrun + Shutdown Tests (2 GPUs) 步骤失败,原因为子进程因缺少 __init__.py 无法导入 test_delete 模块。PR body 明确指出:"The spawn child re-imports the test via f.__module__. Because tests/v1/shutdown/ had no __init__.py, pytest collected the file under the bare module name test_delete instead of tests.v1.shutdown.test_delete, so the child interpreter — which only has the repo root on its path — could not import it."
该 PR 改动极小但定位精准,值得快速合入。对于使用 spawn_new_process_for_each_test 装饰器的其他测试目录,可检查是否也缺少 __init__.py 以防止类似问题。
无 review 讨论(仅 Claude 自动评论和 AndreasKaratzas 的 LGTM 批准)。
参与讨论