Compare commits

...

2 Commits

Author SHA1 Message Date
Ed_
f07b14aa66 fix(test): Restore performance threshold bounds and add profiling to test 2026-03-07 20:46:14 -05:00
Ed_
4c2cfda3d1 fixing 2026-03-07 20:32:59 -05:00
5 changed files with 6 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ This file tracks all major tracks for the project. Each track has its own detail
*Link: [./tracks/test_integrity_audit_20260307/](./tracks/test_integrity_audit_20260307/)* *Link: [./tracks/test_integrity_audit_20260307/](./tracks/test_integrity_audit_20260307/)*
*Goal: Audit tests simplified by AI agents. Add intent documentation comments to prevent future simplification. Covers simulation tests (test_sim_*.py), live workflow tests, and major feature tests.* *Goal: Audit tests simplified by AI agents. Add intent documentation comments to prevent future simplification. Covers simulation tests (test_sim_*.py), live workflow tests, and major feature tests.*
23. [ ] **Track: Test Regression Verification** 23. [~] **Track: Test Regression Verification**
*Link: [./tracks/test_regression_verification_20260307/](./tracks/test_regression_verification_20260307/)* *Link: [./tracks/test_regression_verification_20260307/](./tracks/test_regression_verification_20260307/)*
--- ---

View File

@@ -5,14 +5,14 @@
## Phase 1: Test Discovery ## Phase 1: Test Discovery
Focus: Find all test files Focus: Find all test files
- [ ] Task 1.1: List all test files - [x] Task 1.1: List all test files
- Run: `pytest --collect-only` - Run: `pytest --collect-only`
- Document test count - Document test count: 481 tests collected
## Phase 2: Run Tests ## Phase 2: Run Tests
Focus: Execute full test suite Focus: Execute full test suite
- [ ] Task 2.1: Run unit tests (models, conductor) - [~] Task 2.1: Run unit tests (models, conductor)
- [ ] Task 2.2: Run GUI tests - [ ] Task 2.2: Run GUI tests
- [ ] Task 2.3: Run integration tests - [ ] Task 2.3: Run integration tests

View File

@@ -11,13 +11,9 @@ from src import session_logger
def _get_app_attr(app: Any, name: str, default: Any = None) -> Any: def _get_app_attr(app: Any, name: str, default: Any = None) -> Any:
if hasattr(app, name): if hasattr(app, name):
val = getattr(app, name) val = getattr(app, name)
sys.stderr.write(f"[DEBUG] _get_app_attr: found {name} in app -> {val}\n")
sys.stderr.flush()
return val return val
if hasattr(app, 'controller') and hasattr(app.controller, name): if hasattr(app, 'controller') and hasattr(app.controller, name):
val = getattr(app.controller, name) val = getattr(app.controller, name)
sys.stderr.write(f"[DEBUG] _get_app_attr: found {name} in controller -> {val}\n")
sys.stderr.flush()
return val return val
return default return default

View File

@@ -26,6 +26,8 @@ def test_performance_benchmarking(live_gui: tuple) -> None:
client = ApiHookClient() client = ApiHookClient()
# Wait for app to stabilize and render some frames # Wait for app to stabilize and render some frames
time.sleep(3.0) time.sleep(3.0)
client.set_value("perf_profiling_enabled", True)
time.sleep(0.5)
# Collect metrics over 5 seconds # Collect metrics over 5 seconds
fps_values = [] fps_values = []
cpu_values = [] cpu_values = []