[PR #288] [MERGED] Run the save round-trip harness on macOS without vscreen #2459

Closed
opened 2026-11-02 15:56:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/save-roundtrip-macos


📝 Commits (1)

  • e64c802 Run the save round-trip harness on macOS without vscreen

📊 Changes

2 files changed (+17 additions, -13 deletions)

View changed files

📝 tools/parity_hosts.json (+2 -4)
📝 tools/test_save_roundtrip_parity.py (+15 -9)

📄 Description

What

tools/test_save_roundtrip_parity.py no longer needs vscreen. On macOS, Horizon's resave step runs the client with --offscreen and HORIZON_NO_AUDIO=1 from the logged-in session (a locked screen is fine). Linux keeps vscreen and the null ALSA device. The vanilla side was already a headless dedicated server.

  • --bin-dir is resolved to an absolute path: the client runs with the run folder as its working directory, so a relative target/fast failed.
  • tools/parity_hosts.json: save_roundtrip leaves linux_only, so parity.py runs it on the Mac mini. It stays local_only, because a worker over SSH can't render.

Why

#284 (fix #249) merged without save_roundtrip, because the harness needed the Linux desktop, which has been off for days. Its CI parity job was skipped.

How tested (Mac mini, screen locked)

  • save_roundtrip on main 3df34df8 (with #284): runs end to end.
    • 78 chunks compared. Vanilla 26.3 loads Horizon's save with no log problems and no data get view differences.
    • 1 unexplained difference: a copper golem saved with PersistenceRequired 1 (vanilla 0).
  • Same harness, same vanilla V0, client built at 8965ca5e (main before #284): the same single difference, with the same 78 chunks and the same ignored set. It predates #284 and is not caused by it.
  • python3 -m unittest discover -s tests: 2 errors (test_parity_runner java stub, test_rust_parity /private tmp path). Plain origin/main on this Mac has the same 2 errors.

Needs Ludovic

  • save_roundtrip still fails on main because of the copper golem PersistenceRequired difference. That's a separate entity-save bug, not this PR's and not #284's.

🤖 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/288 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/save-roundtrip-macos` --- ### 📝 Commits (1) - [`e64c802`](https://github.com/horizon-rust/horizon/commit/e64c80243d347187fdcebbc5f2417ef8f42a8167) Run the save round-trip harness on macOS without vscreen ### 📊 Changes **2 files changed** (+17 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `tools/parity_hosts.json` (+2 -4) 📝 `tools/test_save_roundtrip_parity.py` (+15 -9) </details> ### 📄 Description ## What `tools/test_save_roundtrip_parity.py` no longer needs `vscreen`. On macOS, Horizon's resave step runs the client with `--offscreen` and `HORIZON_NO_AUDIO=1` from the logged-in session (a locked screen is fine). Linux keeps `vscreen` and the null ALSA device. The vanilla side was already a headless dedicated server. - `--bin-dir` is resolved to an absolute path: the client runs with the run folder as its working directory, so a relative `target/fast` failed. - `tools/parity_hosts.json`: `save_roundtrip` leaves `linux_only`, so `parity.py` runs it on the Mac mini. It stays `local_only`, because a worker over SSH can't render. ## Why #284 (fix #249) merged without save_roundtrip, because the harness needed the Linux desktop, which has been off for days. Its CI `parity` job was skipped. ## How tested (Mac mini, screen locked) - save_roundtrip on main 3df34df8 (with #284): runs end to end. - 78 chunks compared. Vanilla 26.3 loads Horizon's save with no log problems and no `data get` view differences. - 1 unexplained difference: a copper golem saved with `PersistenceRequired` 1 (vanilla 0). - Same harness, same vanilla V0, client built at 8965ca5e (main before #284): **the same single difference**, with the same 78 chunks and the same ignored set. It predates #284 and is not caused by it. - `python3 -m unittest discover -s tests`: 2 errors (`test_parity_runner` java stub, `test_rust_parity` `/private` tmp path). Plain origin/main on this Mac has the same 2 errors. ## Needs Ludovic - save_roundtrip still fails on main because of the copper golem `PersistenceRequired` difference. That's a separate entity-save bug, not this PR's and not #284's. 🤖 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-02 15:56:20 +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#2459
No description provided.