[PR #1629] [MERGED] Parity: a pass trims only its own .local directory #3644

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1629
Author: @ludovic111
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: fix/parity-trim-own-dirs


📝 Commits (1)

  • cb1c9e6 Parity: a pass trims only its own .local directory

📊 Changes

2 files changed (+21 additions, -1 deletions)

View changed files

📝 tests/test_parity_runner.py (+17 -0)
📝 tools/parity.py (+4 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What and why

chunk_generation failed in CI three times today (#1569, #1571, #1584) with FileNotFoundError on .local/chunk-generation-parity/{rust,vanilla}-overworld-987654321987-full.txt, and passed on rerun. Cause: after a pass, clear_large_outputs deletes the large files in every .local directory the harness's commands touched. decorated_region compiles its oracle into chunk-generation-parity/classes (it reuses test_chunk_generation_parity.Oracle), so when it passed while chunk_generation was still running beside it, it deleted that harness's dumps mid-run.

Now a pass only trims the directory named after the harness (chunk_generation → chunk-generation-parity). A directory another harness merely reads is trimmed when its owner passes.

Vanilla reference

none (tooling).

Self-check

  • New tests/test_parity_runner.py LargeOutputTests: fails without the fix, passes with it.
  • python3 -m unittest discover -s tests -p 'test_parity*.py': the one error (OracleReuseTests, java not on PATH on this Mac) is the same on main.

🤖 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/1629 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/parity-trim-own-dirs` --- ### 📝 Commits (1) - [`cb1c9e6`](https://github.com/horizon-rust/horizon/commit/cb1c9e6935708a1eb4084ef57a95bf0c50e40b37) Parity: a pass trims only its own .local directory ### 📊 Changes **2 files changed** (+21 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_parity_runner.py` (+17 -0) 📝 `tools/parity.py` (+4 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why `chunk_generation` failed in CI three times today (#1569, #1571, #1584) with `FileNotFoundError` on `.local/chunk-generation-parity/{rust,vanilla}-overworld-987654321987-full.txt`, and passed on rerun. Cause: after a pass, `clear_large_outputs` deletes the large files in every `.local` directory the harness's commands touched. `decorated_region` compiles its oracle into `chunk-generation-parity/classes` (it reuses `test_chunk_generation_parity.Oracle`), so when it passed while `chunk_generation` was still running beside it, it deleted that harness's dumps mid-run. Now a pass only trims the directory named after the harness (`chunk_generation` → `chunk-generation-parity`). A directory another harness merely reads is trimmed when its owner passes. ## Vanilla reference none (tooling). ## Self-check - New `tests/test_parity_runner.py` `LargeOutputTests`: fails without the fix, passes with it. - `python3 -m unittest discover -s tests -p 'test_parity*.py'`: the one error (`OracleReuseTests`, `java` not on PATH on this Mac) is the same on main. 🤖 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 04:11:05 +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#3644
No description provided.