Run scenarios in parallel
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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分
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 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)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンsync-en
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
Перевод устарел
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
craftcms/cms#20613 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信