Skip to content

Conversation

@williamjallen
Copy link
Collaborator

We currently apply the RUN_SERIAL property to tests which need an empty database, so they can wipe the database without conflicting with other tests. The growing number of tests using RUN_SERIAL bottlenecks our ability to parallelize the test suite. This PR adds a new testing database and switches most of Laravel tests to use it, running each test in a transaction so the database is always clean. This resulted in a 35-second reduction in overall running time for the test suite on my development machine.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Jan 16, 2026
Merged via the queue into Kitware:master with commit dbe45fb Jan 16, 2026
7 checks passed
@williamjallen williamjallen deleted the tests-in-transactions branch January 16, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants