Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Unexpected long waiting time when testing components with Volt

オープン
#132 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
laravel, mysql, php, sqlite
領域
backend, testing

調査の方向性

まず 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:

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 using Volt::test always takes more than 20s.
  • Following tests (using Volt::test or not) are fast as expected.

Using a clean installation (filtering the tests so we have small examples to work with):

Image

Indeed, the test at the very top uses Volt.


Now, changing the order a bit:

Image

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
  1. Install Laravel's Livewire Starter Kit (+ Volt) using Herd.
  2. Run pest in the terminal once it's ready.
  3. 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

livewire/volt のほかの issue

livewire/volt の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。