[PR #1991] [MERGED] pr_ready: work out the affected harnesses once, not once per harness #3919

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

📋 Pull Request Information

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

Base: main ← Head: fix/pr-ready-affected-once


📝 Commits (1)

  • bdbf67e pr_ready: work out the affected harnesses once, not once per harness

📊 Changes

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

View changed files

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

📄 Description

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

tools/pr_ready.py sat for an hour or more before its first step. affected_here called parity.affected_harnesses(found, records, changed) inside its filter, once for each of the 343 harnesses. Since #1964 picks harnesses by the Rust items their probes reach, one call takes seconds. Now it is called once.

Measured on the Mac mini, on a branch that touches 10 files (horizon-world generator, horizon-client, horizon-threads): affected_here takes 27 s (88 harnesses). Before, two pr_ready.py runs on the same tree printed nothing for 28 and 15 minutes, with the time spent in Python, before I stopped them. Other sessions' pr_ready.py runs on the machine had been in the same state for up to 1 h 36 min.

python3 -m unittest discover -s tests: same 2 errors as on main on macOS (OracleReuseTests exit 127, a /private/var path in ParityRunnerTests), nothing new.

🤖 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/1991 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/pr-ready-affected-once` --- ### 📝 Commits (1) - [`bdbf67e`](https://github.com/horizon-rust/horizon/commit/bdbf67ef9399a05e741c64c85e46e98fec69964e) pr_ready: work out the affected harnesses once, not once per harness ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/pr_ready.py` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. `tools/pr_ready.py` sat for an hour or more before its first step. `affected_here` called `parity.affected_harnesses(found, records, changed)` inside its filter, once for each of the 343 harnesses. Since #1964 picks harnesses by the Rust items their probes reach, one call takes seconds. Now it is called once. Measured on the Mac mini, on a branch that touches 10 files (horizon-world generator, horizon-client, horizon-threads): `affected_here` takes 27 s (88 harnesses). Before, two `pr_ready.py` runs on the same tree printed nothing for 28 and 15 minutes, with the time spent in Python, before I stopped them. Other sessions' `pr_ready.py` runs on the machine had been in the same state for up to 1 h 36 min. `python3 -m unittest discover -s tests`: same 2 errors as on main on macOS (`OracleReuseTests` exit 127, a `/private/var` path in `ParityRunnerTests`), nothing new. 🤖 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:13:15 +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#3919
No description provided.