-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Lock] Fix race condition in tests between cache and lock component #23958
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
Conversation
bf0ed7b
to
0e4ca67
Compare
eb6c9ee
to
03fce7e
Compare
598be05
to
bdae8d7
Compare
Issue spotted: This is a race condition with Cache's tests. (run in parallel in the travis test suite). Redis is flushed (regardless the namespace) at the end of each tests. For instance symfony/src/Symfony/Component/Cache/Tests/Adapter/AbstractRedisAdapterTest.php Lines 42 to 46 in 18ed089
Memcache does not take the namespace into account in the doClear method symfony/src/Symfony/Component/Cache/Traits/MemcachedTrait.php Lines 234 to 237 in 18ed089
testBasicUsage , testClear , testClearWithDeferredItems and all other tests due to the call in the teardown method.
For the redis tests, I think we can remove the usage of Other fix: do not run |
Memecached fixed by #23969 |
f594d3e
to
ecc7ca5
Compare
ecc7ca5
to
e6f3fff
Compare
Thank you @jderusse. |
…k component (jderusse) This PR was submitted for the 3.4 branch but it was merged into the 3.3 branch instead (closes #23958). Discussion ---------- [Lock] Fix race condition in tests between cache and lock component | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Currently trying to fix * [x] php 5.5 in testSaveWithDifferentResources "Failed asserting that false is true" * [x] php 5.5 in testSaveWithDifferentKeysOnSameResources "The store shouldn't save the second key" Workflow: * [x] find a reproducer * [x] fix memcached tests => #23969 * [x] fix redis tests => this PR Commits ------- 26948cf Fix race condition in tests between cache and lock
Merged in 3.3 |
Currently trying to fix
Workflow: