fix open issue release blockers

This commit is contained in:
ruv
2026-07-18 18:01:23 -04:00
parent 1692b16f6e
commit 8c0bdaef92
5 changed files with 52 additions and 11 deletions
@@ -3,6 +3,8 @@ import time
import os
import sys
import pytest
# Add project root and archive/v1 to sys.path so we can import src modules
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../../")))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")))
@@ -47,12 +49,7 @@ async def run_test():
# In pre-fix code, psutil.cpu_percent(interval=1) blocks for 1.0s,
# causing a gap of >1.0s. With our fix, it should be close to 0.1s.
if max_gap >= 0.35:
print("FAIL: Event loop was frozen/blocked!")
sys.exit(1)
else:
print("SUCCESS: Event loop remained fully responsive during metrics query!")
sys.exit(0)
return max_gap, duration
@pytest.mark.asyncio
async def test_get_system_metrics_does_not_starve_event_loop():