Skip to content

Commit c03fa22

Browse files
Revert "perf: optimize test scheduling with --dist loadfile for 25% faster test runs (#157)"
This reverts commit 8879fcf. The --dist loadfile optimization caused race conditions between tests that share resources (e.g., test_custom_events_uuid and test_custom_events_list both operate on custom events and can interfere with each other when run in parallel by file). Reliability > speed. Better to have tests take 40s with no race conditions than 30s with intermittent failures.
1 parent 3e09a81 commit c03fa22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ _setup:
1313

1414
# Run all tests
1515
test-all: _setup test-import
16-
{{pytest}} -n auto --dist loadfile -m "not setup" --html=report.html --self-contained-html --cov=cortexapps_cli --cov-append --cov-report term-missing tests
16+
{{pytest}} -n auto -m "not setup" --html=report.html --self-contained-html --cov=cortexapps_cli --cov-append --cov-report term-missing tests
1717

1818
# Run all tests serially - helpful to see if any tests seem to be hanging
1919
_test-all-individual: test-import

0 commit comments

Comments
 (0)