Solve PG deadlock issues

pull/16220/head
Alberto Miedes Garcés 4 years ago
parent 871f810b6e
commit 63a947eba6

@ -0,0 +1,31 @@
# TODO: not sure why this is required by some step in run_tests.sh
# We should research it and remove this to avoid confussion
development:
adapter: postgresql
encoding: unicode
host: localhost
port: 5432
direct_port: 5432
database: carto_db_development
username: postgres
password:
conn_validator_timeout: 900
connect_timeout: 3
pool: 50
prepared_statements: false
test:
adapter: postgresql
encoding: unicode
database: cartodb_test<%= ENV['TEST_ENV_NUMBER'] %>
host: localhost
port: 5432
direct_port: 5432
username: postgres
password:
conn_validator_timeout: -1
connect_timeout: -1
pool: 100
prepared_statements: false
variables:
statement_timeout: 10000

@ -41,7 +41,7 @@ development:
test: test:
adapter: postgresql adapter: postgresql
encoding: unicode encoding: unicode
database: cartodb_test<%= ENV['TEST_ENV_NUMBER'] %> database: carto_db_test
host: localhost host: localhost
port: 5432 port: 5432
direct_port: 5432 direct_port: 5432

@ -38,7 +38,7 @@ cd /cartodb
## Setup configuration files ## Setup configuration files
cp config/app_config.yml.sample config/app_config.yml cp config/app_config.yml.sample config/app_config.yml
cp config/database.yml.sample config/database.yml cp config/database.ci.yml config/database.yml
if [ -v DEBUG ] && [ $DEBUG = 'true' ]; then if [ -v DEBUG ] && [ $DEBUG = 'true' ]; then
echo 'Final configuration for running the CI' echo 'Final configuration for running the CI'
cat config/app_config.yml cat config/app_config.yml

Loading…
Cancel
Save