From cf57c84dd1d04942686eb214d57fd36c14e4bd43 Mon Sep 17 00:00:00 2001 From: Corback Date: Tue, 16 Jun 2026 09:48:38 +0000 Subject: [PATCH] fix: crash test timeout 180s, indent fix, Ollama via host.docker.internal + iptables --- tools/llm_crash_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/llm_crash_test.py b/tools/llm_crash_test.py index 01794f0..9d21866 100644 --- a/tools/llm_crash_test.py +++ b/tools/llm_crash_test.py @@ -45,7 +45,7 @@ MJ_PROMPTS = [ # LLM call # --------------------------------------------------------------------------- -def call_llm(model: str, prompt: str, timeout: int = 60) -> dict: +def call_llm(model: str, prompt: str, timeout: int = 180) -> dict: """Appel Ollama, retourne {tokens, elapsed, error, text}.""" t0 = time.time() body = json.dumps({ @@ -269,8 +269,7 @@ def print_report(results: dict, mode: str): print(sep) # Export JSON - RESULTS_PATH = os.getenv("CRASH_RESULTS_PATH", "/home/ubuntu/fallout-venice/src/config/crash_results.json") - report_path = RESULTS_PATH + report_path = os.getenv("CRASH_RESULTS_PATH", "/home/ubuntu/fallout-venice/src/config/crash_results.json") try: with open(report_path, "w") as f: json.dump({"mode": mode, "results": results,