Reset and restore the test database without starting client processes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
Inspect the framework's database setup code that invokes the mysql client per scenario, likely in the Behat test bootstrap. Read #384 to capture baseline CI timings before changing anything. Done means a single persistent connection handles drop/create/restore per suite and the drafted PR shows reduced times recorded in this issue.
索引モデルが issue の本文から書いたものです。
説明
The framework runs its own database bookkeeping through a new mysql client process each time. Per scenario that means a connection test and a DROP DATABASE before it starts. Scenarios that install WordPress add a CREATE DATABASE and an import of the cached install dump. Each client process costs about 25 ms before it does any work, and the import costs about 260 ms.
Steps:
- Test the database connection once per suite instead of once per scenario.
- Run the drop and create statements over a single persistent connection from the Behat process.
- Restore the cached install over that same connection.
Locally this brought a trivial query from 28 ms to 0.2 ms, and the import from 258 to 191 ms on a regular database (79 to 15 ms on an in-memory one). The database ends up in the same state as before.
Measuring: take the baseline from #384, then open a draft PR, run the same CI jobs against it and record both results here before we decide.
- 主要言語
- 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 日以内に返信