Test parallellization uses a stupid strategy
未关闭
还没有人认领这个 Issue。
Bug
Category: Tests
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
When running ./run-test.php with the -j argument, all the tests are scheduled to the workers before even running them. This means that if you have a worker which finishes all its tests quickly it'll sit idle even if there are many more other tests to run. One can observe this often because at the end of a test run the number of concurrent working test runners drops quickly.
PHP Version
8.4+
Operating System
N/A
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 ./run-test.php 开始,跟踪 -j 选项进入测试调度和 worker 分派逻辑。确认测试在执行前是如何分配的,然后让调度持续为可用的 worker 提供任务,直到没有剩余测试;验证并行运行不再在仍有待处理工作时让 worker 闲置。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- testing-qa, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100