[PR #2025] [MERGED] parity-main: name a merge only when HEAD fails again and the base passes #3948

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

📋 Pull Request Information

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

Base: main ← Head: ci/parity-main-bisect-confirm


📝 Commits (1)

  • 2c5dac3 parity-main: name a merge only when HEAD fails again and the base passes

📊 Changes

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

View changed files

📝 tests/test_parity_main.py (+29 -0)
📝 tools/parity_main.py (+16 -1)

📄 Description

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

When a parity-main run fails, tools/parity_main.py bisect searches the merges for the first one that broke the failed harnesses, then comments on that pull request. It never checked that the failure was real:

  • harnesses that pass everywhere when rerun (a flake, or a runner that was missing files) ended the search on the newest merge;
  • harnesses that fail at every commit (a broken runner) ended it on the oldest merge.

Tonight the release runner had no sounds, so music and two other audio harnesses failed for every merge. A bisect would have blamed one PR for nothing.

The bisect now reruns the failed harnesses at HEAD and at the base first, and names a merge only when HEAD fails and the base passes. Otherwise it writes why to the step summary and names nobody. The run still fails either way, so releases still wait.

A new test covers the three cases with a scratch git repo; gh is recorded, never run. While writing the test, a first version sent one real comment to #2; I deleted it.

python3 -m unittest tests.test_parity_main: 4 tests OK.

🤖 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/2025 **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:** `ci/parity-main-bisect-confirm` --- ### 📝 Commits (1) - [`2c5dac3`](https://github.com/horizon-rust/horizon/commit/2c5dac354eb0f5b7c3812803e5d4798f54973c34) parity-main: name a merge only when HEAD fails again and the base passes ### 📊 Changes **2 files changed** (+45 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_parity_main.py` (+29 -0) 📝 `tools/parity_main.py` (+16 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. When a parity-main run fails, `tools/parity_main.py bisect` searches the merges for the first one that broke the failed harnesses, then comments on that pull request. It never checked that the failure was real: - harnesses that pass everywhere when rerun (a flake, or a runner that was missing files) ended the search on the **newest** merge; - harnesses that fail at every commit (a broken runner) ended it on the **oldest** merge. Tonight the release runner had no sounds, so `music` and two other audio harnesses failed for every merge. A bisect would have blamed one PR for nothing. The bisect now reruns the failed harnesses at HEAD and at the base first, and names a merge only when HEAD fails and the base passes. Otherwise it writes why to the step summary and names nobody. The run still fails either way, so releases still wait. A new test covers the three cases with a scratch git repo; `gh` is recorded, never run. While writing the test, a first version sent one real comment to #2; I deleted it. `python3 -m unittest tests.test_parity_main`: 4 tests OK. 🤖 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:30 +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#3948
No description provided.