mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Debug AR connection pool queue on CI (#25687)
Why this change? On CI, we have been seeing flaky system tests because ActiveRecord is unable to checkout a connection. This patch is meant to help us debug which thread is not returning the connection to the queue.
This commit is contained in:
committed by
GitHub
parent
c1577019c8
commit
796af077c5
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -244,6 +244,7 @@ jobs:
|
||||
if: matrix.build_type == 'system' && matrix.target == 'plugins'
|
||||
env:
|
||||
CHECKOUT_TIMEOUT: 10
|
||||
DEBUG_AR_CONNECTION_QUEUE: 1
|
||||
run: |
|
||||
GLOBIGNORE="plugins/chat/*";
|
||||
LOAD_PLUGINS=1 RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --use-runtime-info --profile=50 --verbose --format documentation plugins/*/spec/system
|
||||
@@ -254,6 +255,7 @@ jobs:
|
||||
if: matrix.build_type == 'system' && matrix.target == 'chat'
|
||||
env:
|
||||
CHECKOUT_TIMEOUT: 10
|
||||
DEBUG_AR_CONNECTION_QUEUE: 1
|
||||
run: LOAD_PLUGINS=1 RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --use-runtime-info --profile=50 --verbose --format documentation plugins/chat/spec/system
|
||||
timeout-minutes: 30
|
||||
|
||||
|
||||
Reference in New Issue
Block a user