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

Container cache miss occurs on tests since Symfony 3.2. #284

Open
issei-m opened this issue Aug 30, 2017 · 0 comments
Open

Container cache miss occurs on tests since Symfony 3.2. #284

issei-m opened this issue Aug 30, 2017 · 0 comments

Comments

@issei-m
Copy link

issei-m commented Aug 30, 2017

Symfony 3.2 introduces a new config cache metadata ClassExistenceResource.
It assumes the cache is not fresh when the class is added or lost since previous check.

If I enable the doctrine_integration config of this bundle, the proxy of EntityManager will be generated.
And the proxy would be assumed not to exist at the first time of Kernel initializes container because it's never loaded as far as I don't retrieve the EntityManager from the container.
But If the container is initialized after the EntityManager was retrieved previous time, the existence state of it was changed, so cache miss happens.

This thing has no problem on almost every HTTP requests, destroying the class existence info after request and second check never happens.
However on the functional tests, the container will be initialized many times, it means container cache miss always occurs from second test case which relies on Kernel and container.

It leads testsuite to be significant bad performance.

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 a pull request may close this issue.

1 participant