[PR #4228] [MERGED] parity: give the mob_ai oracle an 8g heap (4g runs out on a fresh run) #5500

Closed
opened 2026-11-03 05:13:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4228
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/mob-ai-oracle-heap


📝 Commits (1)

  • 186540e parity: give the mob_ai oracle an 8g heap

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 tools/test_mob_ai_parity.py (+2 -1)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.

What and why

The mob_ai harness fails on main whenever its vanilla oracle has to run fresh. VanillaMobAiOracle runs out of its 4g heap (java.lang.OutOfMemoryError: Java heap space, 34 times in one run, in the server's IO workers) about 3 minutes in. The oracle then exits with status 3, or hangs until the harness's 3600 s timeout.

Runs that reuse cached oracle results (parity_shim) kept passing, which hid this until recent merges changed the mob scenarios. It showed up while proving the latest mob PRs locally: main and each PR failed the same way, with no scenario mismatch.

This raises the oracle heap from 4g to 8g, the same kind of change as 17e4d547c (3g to 4g).

Testing

  • python3 tools/parity.py --fresh mob_ai on current main, alone on the machine:
    • with 4g: fails (OOM, 34 errors in vanilla.log)
    • with 8g: PASS in 2.9 min, 0 OOM
  • With 12g, main and #3942, #3791, #3949, #3948 and #3946 (each merged into main) also passed. 8g is the smaller limit that passes, for machines with less RAM.
  • python3 -m py_compile tools/test_mob_ai_parity.py

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4228 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/mob-ai-oracle-heap` --- ### 📝 Commits (1) - [`186540e`](https://github.com/horizon-rust/horizon/commit/186540eb84b5e6c409e4d7ecea4654e1ad126488) parity: give the mob_ai oracle an 8g heap ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_mob_ai_parity.py` (+2 -1) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves. ## What and why The `mob_ai` harness fails on `main` whenever its vanilla oracle has to run fresh. `VanillaMobAiOracle` runs out of its 4g heap (`java.lang.OutOfMemoryError: Java heap space`, 34 times in one run, in the server's IO workers) about 3 minutes in. The oracle then exits with status 3, or hangs until the harness's 3600 s timeout. Runs that reuse cached oracle results (`parity_shim`) kept passing, which hid this until recent merges changed the mob scenarios. It showed up while proving the latest mob PRs locally: main and each PR failed the same way, with no scenario mismatch. This raises the oracle heap from 4g to 8g, the same kind of change as 17e4d547c (3g to 4g). ## Testing - `python3 tools/parity.py --fresh mob_ai` on current `main`, alone on the machine: - with 4g: fails (OOM, 34 errors in `vanilla.log`) - with 8g: **PASS** in 2.9 min, 0 OOM - With 12g, main and #3942, #3791, #3949, #3948 and #3946 (each merged into main) also passed. 8g is the smaller limit that passes, for machines with less RAM. - `python3 -m py_compile tools/test_mob_ai_parity.py` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:01 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5500
No description provided.