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

Laravel MySQL Spatial interferes with parallel testing #169

Open
osteel opened this issue Apr 10, 2021 · 3 comments
Open

Laravel MySQL Spatial interferes with parallel testing #169

osteel opened this issue Apr 10, 2021 · 3 comments

Comments

@osteel
Copy link

osteel commented Apr 10, 2021

Hi,

First of all apologies because I don't really have time to investigate this.

We use Laravel 8's parallel testing feature in our CI pipeline and it recently broke. I've just realised that this started happening from the commit where I introduced this package.

I ran a quick test and can confirm that removing the Laravel MySQL Spatial package immediately fixed the issue.

For reference this is the kind of MySQL error it generates:

Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [1049] Unknown database 'laravel_test_2'

It's like it's preventing the creation of separate database schemas for parallel processes somehow.

This may or may not be related to #147.

@desaintflorent
Copy link

I confirm that unfortunately, using Laravel 8's parallel testing feature with this package doesn't work.
Switching to classic testing is working.
Any news about this problem ?

@osteel
Copy link
Author

osteel commented May 11, 2021

@desaintflorent haven't heard anything yet – still using classic testing in the meantime

@Livijn
Copy link

Livijn commented Nov 21, 2021

I removed the support for changing columns that require custom Doctrine types. That is what interferes with Laravel's parallel testing. You can use this repo if you want: https://github.com/Livijn/laravel-mysql-spatial

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

No branches or pull requests

3 participants