[PR #4949] [MERGED] parity-main: judge each failed harness on its own when bisecting #5965

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

📋 Pull Request Information

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

Base: main ← Head: fix/parity-main-bisect-per-harness


📝 Commits (1)

  • e5c713c parity-main: judge each failed harness on its own when bisecting

📊 Changes

2 files changed (+91 additions, -52 deletions)

View changed files

📝 tests/test_parity_main.py (+32 -20)
📝 tools/parity_main.py (+59 -32)

📄 Description

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

parity-main's bisect step ran the failed harnesses as one group and only asked whether any of them failed. On 10-31 (run 41157154666, head 5b372e2f3, base a3726f4bf), 9 harnesses failed. At the base, 8 passed and only lunge_motion failed (it was still broken there; #4526 fixed it later in that range). The step still printed:

parity-main: block_update, cursor_death, hardcore_respawn, lunge_motion, mob_ai, pearl_death, random_tick, save_roundtrip, server_knockback fail at the base a3726f4bf too: the runner or a flake: no merge is named.

So 8 real regressions were written off as "the runner or a flake", and nobody's PR got a comment.

The change

  • run_harnesses returns the harnesses that failed, read from parity.py's last-run.json. If the run fails before it records them (a probe that doesn't build), it returns all of them.
  • bisect judges each harness on its own:
    • one that passes when run again at HEAD is a flake and counts as a pass (same exit code as before: 0 only when they all pass again);
    • one that fails at the base too is reported as before ("the runner or a flake"), without hiding the others;
    • the rest fail at HEAD and pass at the base, so the halving search names the merge that broke them. Harnesses broken by different merges are searched again after the first merge, and each merge gets its comment.
  • Results are cached per commit, so no commit is run twice.

Tests

tests/test_parity_main.py: the old cases (flake → 0, fails at the base → no blame, broken at #2 → #2), plus the mixed 10-31 case (one fails at the base, one flake, two broken at #2 → #2 named for both) and two culprits (#1 and #3 each named for their harness).

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at a2bc79274, 1 min 8 s)

Check Result
Scope ✅ 2 files, +91 −52
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 487 passed (1 min 7 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label skip-release

🤖 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/4949 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/parity-main-bisect-per-harness` --- ### 📝 Commits (1) - [`e5c713c`](https://github.com/horizon-rust/horizon/commit/e5c713c00b8e7cde4b373a3c42cea3f560136bac) parity-main: judge each failed harness on its own when bisecting ### 📊 Changes **2 files changed** (+91 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_parity_main.py` (+32 -20) 📝 `tools/parity_main.py` (+59 -32) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. parity-main's bisect step ran the failed harnesses as one group and only asked whether *any* of them failed. On 10-31 (run [41157154666](https://github.com/horizon-rust/horizon/actions/runs/41157154666), head 5b372e2f3, base a3726f4bf), 9 harnesses failed. At the base, 8 passed and only `lunge_motion` failed (it was still broken there; #4526 fixed it later in that range). The step still printed: ``` parity-main: block_update, cursor_death, hardcore_respawn, lunge_motion, mob_ai, pearl_death, random_tick, save_roundtrip, server_knockback fail at the base a3726f4bf too: the runner or a flake: no merge is named. ``` So 8 real regressions were written off as "the runner or a flake", and nobody's PR got a comment. ## The change - `run_harnesses` returns the harnesses that failed, read from parity.py's `last-run.json`. If the run fails before it records them (a probe that doesn't build), it returns all of them. - `bisect` judges each harness on its own: - one that passes when run again at HEAD is a flake and counts as a pass (same exit code as before: 0 only when they all pass again); - one that fails at the base too is reported as before ("the runner or a flake"), without hiding the others; - the rest fail at HEAD and pass at the base, so the halving search names the merge that broke them. Harnesses broken by different merges are searched again after the first merge, and each merge gets its comment. - Results are cached per commit, so no commit is run twice. ## Tests `tests/test_parity_main.py`: the old cases (flake → 0, fails at the base → no blame, broken at #2 → #2), plus the mixed 10-31 case (one fails at the base, one flake, two broken at #2 → #2 named for both) and two culprits (#1 and #3 each named for their harness). **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at a2bc79274, 1 min 8 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +91 −52 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 487 passed (1 min 7 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | `skip-release` | 🤖 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 05:16:16 +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#5965
No description provided.