test: list the slowest tests on request and stop waiting 30 s on a held WAL (#487)

PM_TEST_SLOWEST=N makes tests/run_suite.py list the N slowest tests.
Three history tests restored while their own read held a snapshot, so
each publish sat out the 30 s WAL-truncate wait; they now use a short wait.
Temporary diagnostics for the Windows timings ride along in this commit.
This commit is contained in:
Vito Sansevero
2026-10-29 09:34:06 -07:00
parent a4a7b7129a
commit 72a769d752
7 changed files with 265 additions and 7 deletions
+17
View File
@@ -51,5 +51,22 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: DIAG 487 microbench (temporary)
if: matrix.python-version == '3.12'
run: python diag_487.py
- name: DIAG 487 profile (temporary)
if: matrix.python-version == '3.12'
run: python diag_487_profile.py tests.test_database tests.test_review_schema tests.test_api_admin tests.test_lora_utils
- name: Run tests
env:
PM_TEST_SLOWEST: "40"
run: python -m tests.run_suite -v
- name: DIAG 487 microbench without Defender realtime (temporary)
if: always() && matrix.python-version == '3.12' && runner.os == 'Windows'
shell: pwsh
run: |
Set-MpPreference -DisableRealtimeMonitoring $true
python diag_487.py