Unexpected long waiting time when testing components with Volt
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
調査の方向性
まず Laravel Livewire Starter Kit の再現環境から Pest スイートを実行し、その後 tests/Feature/Auth/AuthenticationTest.php にある最初の Volt::test 呼び出しを tests/Feature/Auth/PasswordResetTest.php にあるものと比較します。初期化の遅延を測定し、報告された Volt テストの動作を調査します。遅延が想定されたものかどうかを確認するか、再現可能なリグレッションを切り分ければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Volt Version
1.7
Laravel Version
12.2
PHP Version
8.4.5
Database Driver & Version
SQLite / MySQL 8.4.3
Description
Here's the context:
- I installed Laravel's Livewire Starter Kit (+ Volt) via Herd.
- A test is missing to achieve 100% coverage with Pest.
The tests are fast enough overall, I was going to make a PR to their repo but I realised the following:
- Each time I run
pest, the first test running and usingVolt::testalways takes more than 20s. - Following tests (using
Volt::testor not) are fast as expected.
Using a clean installation (filtering the tests so we have small examples to work with):
Indeed, the test at the very top uses Volt.
Now, changing the order a bit:
In this case, the first test in the list using Volt::test is "reset password link can be requested" (can be found here).
This time, the execution time was 27.32s instead of 0.22s (in the first screenshot).
Is it expected behavior?
Does Volt need a first long initialisation so the other tests can run lightning fast?
Love Volt so far btw.
Steps To Reproduce
- Install Laravel's Livewire Starter Kit (+ Volt) using Herd.
- Run
pestin the terminal once it's ready. - Expect an odd waiting time, if not I am crazy or it's time to get a new PC.
- 主要言語
- PHP
- スター
- 422
- フォーク
- 35
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
livewire/volt のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
似ている issue
-
[Type] Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
-
ai-handle
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
🔍 Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
coollabsio/coolify#12363 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Automattic/blocks-engine#3618 ·
メンテナーはふだん 1 日以内に返信