Run scenarios in parallel
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start from issue #384 to get per-scenario timings. Examine the composer prepare-tests script and the Behat runner that currently executes scenarios serially. Implement worker isolation (own DB, temp dir) and a scenario-level splitter, then verify behat-rerun and merged reports still work.
由索引模型根據 Issue 內容生成。
描述
Scenarios run strictly one after another, even though almost all of them are independent and the CI runners have several cores. In a local experiment with 213 entity-command scenarios, a serial run took 491 seconds. With 8 workers it took 164 seconds when split by feature file, where one large file set the floor. Split by scenario, it took 140 seconds (3.5×).
Steps:
- Give each worker its own state: temporary directory,
HOME, WP-CLI cache and test database.composer prepare-testsneeds to grant access to the additional databases. - Keep scenarios that rely on fixed shared resources, such as port 8080 or the scaffold test database, from running at the same time.
- Split the work by scenario rather than by file, balanced by the per-scenario timings from #384.
- Merge the results into a single report and keep
behat-rerunworking.
Measuring: take the baseline from #384, then open a draft PR, run the same CI jobs against it with the parallel runner enabled and record both results here before we decide. CI runners have fewer cores than a development machine, so the gain there will be smaller than locally.
- 主要語言
- PHP
- 星號
- 42
- 分支
- 29
- 平均合併
- 21 小時 6 分鐘
- 30 天內合併 PR
- 24
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
wp-cli/wp-cli-tests 的其他 Issue
-
scope:testing status:unconfirmed
難度 2/5 1-3 小時 新手友好度 65/100
wp-cli/wp-cli-tests#389 · 1 則留言 ·
維護者通常 1 天內回覆
-
os:windows scope:testing status:unconfirmed
難度 4/5 3-5 天 新手友好度 25/100
wp-cli/wp-cli-tests#427 ·
維護者通常 1 天內回覆
-
bug scope:testing
難度 4/5 3-5 天 新手友好度 22/100
wp-cli/wp-cli-tests#426 ·
維護者通常 1 天內回覆
-
scope:artifacts scope:distribution scope:testing
難度 4/5 3-5 天 新手友好度 25/100
wp-cli/wp-cli-tests#425 ·
維護者通常 1 天內回覆
-
scope:testing
難度 5/5 一週以上 新手友好度 20/100
wp-cli/wp-cli-tests#395 ·
維護者通常 1 天內回覆
查看 wp-cli/wp-cli-tests 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 3 天內回覆
-
sync-en
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
[Sync EN] Formatting improvements to "Large Objects (LOBs)" docs (#6056)可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉sync-en
難度 1/5 1 小時以內 新手友好度 74/100
維護者通常 1 天內回覆
-
Перевод устарел
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆
-
repo:cms
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆