Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Set process timeout to null for load mysql schema into database #36126

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

ggcasuso
Copy link
Contributor

@ggcasuso ggcasuso commented Feb 2, 2021

When we execute parallel testing and we have a huge schema to load, the process throws a timeout error:

$ php artisan test --recreate-databases --parallel 

Symfony\Component\Process\Exception\ProcessTimedOutException: The process "mysql  --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" exceeded the timeout of 60 seconds.

With this change, we remove the timeout just like it was already in the dump method (protected function executeDumpProcess) allowing to load huge schemas or execute the parallel tests in computers with bad performance (like docker containers running in macOS) without any problems.

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