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

Creating parallel databases fails for each DB #6

Open
jisaac01 opened this issue Oct 14, 2016 · 1 comment
Open

Creating parallel databases fails for each DB #6

jisaac01 opened this issue Oct 14, 2016 · 1 comment
Assignees

Comments

@jisaac01
Copy link

For each database, the tests fail on initial db setup. Running it again gets one DB further.

10:40 $ bundle exec qa rspec
Warming up (overridden) config {"adapter"=>"postgresql", "username"=>"", "password"=>"", "host"=>"localhost", "database"=>"whatever_test_qa0"}
Warming up (overridden) config {"adapter"=>"postgresql", "username"=>"", "password"=>"", "host"=>"localhost", "database"=>"whatever_test_qa1"}
WARNING the given database DOES NOT EXIST YET! Will create it now.

...

/Users//.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec': An error has occurred, this and all later migrations canceled: (StandardError)

@ajbouh
Copy link
Owner

ajbouh commented Oct 14, 2016

Hi @jisaac01

Do you have a reproducible test case I can use to debug the issue? This is obviously something that should not happen.

You see this message because qa wants to create one DB for each worker process. If you specify -jobs 1 it will not create any databases and instead use your default test database. Can you try this and see if your tests will run otherwise?

@ajbouh ajbouh self-assigned this Oct 14, 2016
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

No branches or pull requests

2 participants