Closed gaetan-yg closed 1 year ago
I'm afraid I don't have any inspiration on what might be causing this - your setup is very similar to a project of my own, and the tests for that run reliably on GitHub Actions. 🤔
I do see that you're running old versions of TS and FS - upgrading is certainly recommended, but I would be surprised if that resolves this specific problem.
I guess it might be worth diving into your local copies of the TS and Riddle gems to try and catch the shell output from the stop/start calls to see if they hold any clues?
Thanks Pat, I'll have dig further when I get a chance.
Hi @gaetan-yg - I'm going to close this issue as it's been a few months without any change here. That said: if you find it's still a problem and have any further questions/fixes, please do comment, I'll be happy to re-open the issue.
Hi @pat We are running into MySQL connection issue when running feature test relying on sphinx. It seems to happen if there is more than one test requiring sphinx, ie if we run each test one by one manually we don't get the error. My dev environment is setup with docker but we have the same issue in our CI environment.
In the example below, the first test will pass and the second will fail with an Error connecting to Sphinx.
It looks like
ThinkingSphinx
isn't ready yet for the second test, I tried adding asleep
after sleepThinkingSphinx::Test.start
but no luck. I also addedThinkingSphinx::Test.running?
but it tells me thatThinkingSphinx
is still running at the start of the test, even when it's failing.Any pointers? I am not sure what else I can check.
Gems version
sphinx config
spec/support/sphinx.rb
stacktrace