mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
DEV: Set database checkout timeout to 10 on CI (#25604)
Why this change? We have been seeing checkout timeouts happening on CI when using the default of 5 seconds. This can happen in system tests when the server has to process many requests using the same database connection. Therefore, we will double the timeout for now and monitor if stuff continues to timeout.
This commit is contained in:
parent
9f884cdaab
commit
96ae5c395f
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
|
@ -236,10 +236,14 @@ jobs:
|
|||
|
||||
- name: Core System Tests
|
||||
if: matrix.build_type == 'system' && matrix.target == 'core'
|
||||
env:
|
||||
CHECKOUT_TIMEOUT: 10
|
||||
run: 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 spec/system
|
||||
|
||||
- name: Plugin System Tests
|
||||
if: matrix.build_type == 'system' && matrix.target == 'plugins'
|
||||
env:
|
||||
CHECKOUT_TIMEOUT: 10
|
||||
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
|
||||
|
@ -248,11 +252,15 @@ jobs:
|
|||
|
||||
- name: Chat System Tests
|
||||
if: matrix.build_type == 'system' && matrix.target == 'chat'
|
||||
env:
|
||||
CHECKOUT_TIMEOUT: 10
|
||||
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
|
||||
|
||||
- name: Theme System Tests
|
||||
if: matrix.build_type == 'system' && matrix.target == 'themes'
|
||||
env:
|
||||
CHECKOUT_TIMEOUT: 10
|
||||
run: |
|
||||
RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --profile=50 --verbose --format documentation tmp/themes/*/spec/system
|
||||
shell: bash
|
||||
|
|
|
@ -38,6 +38,7 @@ test:
|
|||
min_messages: warning
|
||||
pool: 1
|
||||
reaping_frequency: 0
|
||||
checkout_timeout: <% ENV["CHECKOUT_TIMEOUT"] || 5 %>
|
||||
host_names:
|
||||
- test.localhost
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user