Skip to content

[13.x] Add array maintenance mode driver for parallel testing#60489

Merged
taylorotwell merged 2 commits into
laravel:13.xfrom
ziadoz:array-maintenance-mode
Jun 11, 2026
Merged

[13.x] Add array maintenance mode driver for parallel testing#60489
taylorotwell merged 2 commits into
laravel:13.xfrom
ziadoz:array-maintenance-mode

Conversation

@ziadoz

@ziadoz ziadoz commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This adds a simple array-based maintenance mode driver, similar to existing cache and session drivers, that eases parallel testing.

If tests call php artisan (up|down) in a parallel testsuite, the file-based driver inevitably trips up, and the cache-based one also gets tripped up by Cache facade mocking calls. However, with this new driver parallel testing works fine.

Kinda niche I suppose, but our suppliers expect test coverage for deployment processes. Also, an array-based maintenance mode for tests in general seemed sensible to me.

@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@ziadoz ziadoz changed the title [13.x] Add array maintenance mode driver [13.x] Add array maintenance mode driver for parallel testing Jun 11, 2026
@ziadoz ziadoz marked this pull request as ready for review June 11, 2026 13:35
@taylorotwell taylorotwell merged commit 715eb7b into laravel:13.x Jun 11, 2026
55 checks passed
@ziadoz ziadoz deleted the array-maintenance-mode branch June 11, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants