Repository navigation
[13.x] Speed up slow tests - #62443
Merged
Merged
Conversation
binaryfire
added a commit
to hypervel/components
that referenced
this pull request
Nov 15, 2026
Read the effective BCRYPT_ROUNDS value before falling back to the normal package or framework default. Exported environment values take precedence over the shared PHPUnit default introduced with laravel/framework#62443. The configuration class with an exported override and the package-mode Testbench contract suite pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, this PR makes the test suite around 50 seconds faster per CI job. On PHP 8.5 with PHPUnit 13 (prefer-stable), it goes from 2:27 to 1:34.
Most time was spent sleeping 😴, and in most cases the sleep could be faked. Bcrypt was also taking multiple seconds, so the tests now use 4 rounds, like the Laravel skeleton.
Below is an AI-generated overview of the performance gain.
Each changed test file run on its own, locally.