Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bf0ed7b to0e4ca67Compareeb6c9ee to03fce7eCompare598be05 tobdae8d7Comparejderusse commentedAug 23, 2017
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 in18ed089
Memcache does not take the namespace into account in the doClear method symfony/src/Symfony/Component/Cache/Traits/MemcachedTrait.php Lines 234 to 237 in18ed089
testBasicUsage,testClear,testClearWithDeferredItems and all other tests due to the call in theteardown method.For the redis tests, I think we can remove the usage of Other fix: do not run |
jderusse commentedAug 24, 2017
Memecached fixed by#23969 |
f594d3e toecc7ca5Compareecc7ca5 toe6f3fffComparenicolas-grekas commentedSep 3, 2017
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 PRCommits-------26948cf Fix race condition in tests between cache and lock
nicolas-grekas commentedSep 3, 2017
Merged in 3.3 |
Uh oh!
There was an error while loading.Please reload this page.
Currently trying to fix
Workflow: