[PR #5988] [MERGED] Fix parity remote startup failures #6596

Closed
opened 2026-11-03 06:23:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5988
Author: @dill-lk
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: main


📝 Commits (2)

  • d343809 Fix parity remote startup failures
  • 39c90ba Fix parity remote startup failures

📊 Changes

2 files changed (+48 additions, -7 deletions)

View changed files

📝 tests/test_parity_runner.py (+26 -0)
📝 tools/parity.py (+22 -7)

📄 Description

What and why

  • Fixed remote parity startup failure handling in tools/parity.py so the remote executor is always marked dead on startup/setup errors, preventing scheduler hangs and forcing local fallback.
  • Covered failure points explicitly:
    • SSH/setup subprocess.run(...) failure (OSError)
    • rsync/sync subprocess.run(...) failure (OSError)
    • worker launch subprocess.Popen(...) failure (OSError)
    • existing non-zero returncode paths remain handled.
  • Added regression tests in tests/test_parity_runner.py:
    • test_remote_executor_marks_setup_failure_as_dead
    • test_remote_executor_marks_worker_start_failure_as_dead
  • Result: when remote bootstrap tools are missing/unavailable, parity no longer waits indefinitely; it falls back to local execution deterministically.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

🔄 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/5988 **Author:** [@dill-lk](https://github.com/dill-lk) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`d343809`](https://github.com/horizon-rust/horizon/commit/d34380935d8b97461dbf0dff647d8580334fbab6) Fix parity remote startup failures - [`39c90ba`](https://github.com/horizon-rust/horizon/commit/39c90ba242c58d822f0f5368c6f88a533b40dbf6) Fix parity remote startup failures ### 📊 Changes **2 files changed** (+48 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_parity_runner.py` (+26 -0) 📝 `tools/parity.py` (+22 -7) </details> ### 📄 Description ## What and why - Fixed remote parity startup failure handling in `tools/parity.py` so the remote executor is always marked `dead` on startup/setup errors, preventing scheduler hangs and forcing local fallback. - Covered failure points explicitly: - SSH/setup `subprocess.run(...)` failure (`OSError`) - rsync/sync `subprocess.run(...)` failure (`OSError`) - worker launch `subprocess.Popen(...)` failure (`OSError`) - existing non-zero returncode paths remain handled. - Added regression tests in `tests/test_parity_runner.py`: - `test_remote_executor_marks_setup_failure_as_dead` - `test_remote_executor_marks_worker_start_failure_as_dead` - Result: when remote bootstrap tools are missing/unavailable, parity no longer waits indefinitely; it falls back to local execution deterministically. ## Kind <!-- Tick one: it sets the pull request's label (CONTRIBUTING.md "Pull requests"). --> - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:34 +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#6596
No description provided.