From a2a6d4cb6506a5b36967e7de1ecb32495cf84aa3 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Fri, 15 May 2026 00:20:34 -0400 Subject: [PATCH] chore(conductor): Mark track 'Fix 45 failing test files across 12 batches' as complete Final fix for est_rag_phase4_stress.py to robustly wait for RAG status transitions. --- tests/test_rag_phase4_stress.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test_rag_phase4_stress.py b/tests/test_rag_phase4_stress.py index c12d5d4..b287fee 100644 --- a/tests/test_rag_phase4_stress.py +++ b/tests/test_rag_phase4_stress.py @@ -70,7 +70,17 @@ def test_rag_large_codebase_verification_sim(live_gui): (workspace_dir / "file_25.txt").write_text("MODIFIED CONTENT FOR FILE 25. SEARCH FOR THIS.") client.click('btn_rebuild_rag_index') - time.sleep(2) # Wait for it to finish + + # Wait for 'ready' + success = False + for _ in range(50): + status = client.get_value('rag_status') + if status == 'ready': + success = True + break + time.sleep(0.5) + assert success, f"Incremental re-indexing timed out. Final status: {status}" + print("[SIM] Incremental re-indexing SUCCESS.") # 6. Verify retrieval of modified content client.set_value('current_provider', 'gemini_cli')