From 17e4d547c738ce1317a3cb592fd46f50c83a8d6f Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 26 Oct 2026 15:45:13 +0100 Subject: [PATCH] parity: give the mob_ai oracle a 4g heap VanillaMobAiOracle ran out of its 3g heap in PoiManager.tick on a busy CI runner. Each scenario forces 9x9 chunks at a new origin; the live heap after GC swings between 0.3 and 1 GB over a run, with peaks near 2 GB before GC. Co-Authored-By: Claude Opus 5.5 --- tools/test_mob_ai_parity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/test_mob_ai_parity.py b/tools/test_mob_ai_parity.py index 2ce6541e8..133deca2d 100644 --- a/tools/test_mob_ai_parity.py +++ b/tools/test_mob_ai_parity.py @@ -519,7 +519,9 @@ def main(): # The oracle's server world: cleared before each run, never left in /tmp. world = build / 'world' shutil.rmtree(world, ignore_errors=True) - oracle_harness.run_logged(['java', '-Xmx3g', '-Djava.awt.headless=true', '-cp', str(classes) + os.pathsep + dependencies, + # Each scenario forces 9x9 chunks 512 blocks past the last one, so a run generates ~80 chunks per scenario; + # 3g ran out of heap in PoiManager.tick on a busy runner (#2160's CI, 143 scenarios). + oracle_harness.run_logged(['java', '-Xmx4g', '-Djava.awt.headless=true', '-cp', str(classes) + os.pathsep + dependencies, 'dev.horizonlab.parity.VanillaMobAiOracle', inputs, build / 'vanilla.txt', world], build, 'vanilla', timeout=3600) if not args.java_only: