mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Allow test-prof to be disabled completely with PREFABRICATION env (#25294)
Why this change? We have been looking into a flaky system tests in one of our plugins where the DB transaction flow can be messed up from time to time. Our debugging effort is complicated by that fact that `test-prof` starts a DB transaction in a `before(:all)` block which makes it hard to properly log information. By allowing test-prof to be disabled completely, we believe it will make it easier for us to isolate the problem we are investigating. What does this change do? 1. Avoid loading test-prof files if `PREFABRICATION` env has been set to `0`. 2. Set `PREFABRICATION=0` for plugin system tests in Github actions
This commit is contained in:
committed by
GitHub
parent
ebd3971533
commit
54e6c1d823
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -241,7 +241,7 @@ jobs:
|
||||
if: matrix.build_type == 'system' && matrix.target == 'plugins'
|
||||
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
|
||||
PREFABRICATION=0 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
|
||||
shell: bash
|
||||
timeout-minutes: 30
|
||||
|
||||
|
||||
Reference in New Issue
Block a user