-
Notifications
You must be signed in to change notification settings - Fork 11k
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
#40119 broke how dbal
array in config/database.php
is handled.
#40297
Comments
@canvural Thank you for creating an issue out of our previous discussion!
This only works for sequential test runners. As soon as you run |
@bakerkretzmar @TomHAnderson if we can't find a solution right now it might be best that we revert the PR. |
@canvural thanks a lot for reproducing it in a repo, I'll dig into this right now. @driesvints agreed, I can do that later today if we can't figure this out. |
I've been working with @bakerkretzmar all day. I think his PR #40303 addresses 1) problems with running unit tests in series and 2) accounts for unit tests in parallel and makes concessions for them. I'm not certain parallel testing is 100% because I've been unable to run such tests locally. I don't feel reverting PR #40119 is the right move. |
Description:
#40119 introduced an improvement for handling custom Doctrine types. But for some people it broke the test suites. (#40119 (comment) and #40119 (comment))
For sequential test runs issue happens when there is only the
dbal
array inconfig/database.php
And the issue is gone when addingDB::registerDoctrineType call
toAppServiceProvider
. Which is not a good solution because it causes the application to make DB connection while the app is booting.For parallel test runs issue happens in both cases.
Steps To Reproduce:
This repo shows the bug.
The text was updated successfully, but these errors were encountered: