[PR #1968] [MERGED] CI parity: pick harnesses with main's selection code, run them at the head #3897

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

📋 Pull Request Information

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

Base: main ← Head: ci/parity-select-from-main


📝 Commits (1)

  • 836c1ee CI parity: pick harnesses with main's selection code, run them at the head

📊 Changes

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

View changed files

📝 .github/workflows/parity.yml (+31 -1)
📝 docs/release-flow.md (+3 -0)

📄 Description

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

What

The parity job checks out the PR head (ref: inputs.head), so every branch made before #1964 still picks harnesses with the old per-crate rule, and ~20 queued PRs don't get the −53%.

The step now:

  1. copies main's tools/parity.py and tools/parity_reach.py over the head's (git show origin/main:...), runs parity.py --changed <base> --list, and restores the head's files (an untracked parity_reach.py is removed when the head has none);
  2. runs the listed harnesses with the head's own parity.py (named harnesses, same state, same passes).

Fallbacks to today's parity.py --changed <base> at the head: the PR changes tools/parity.py or tools/parity_reach.py since its fork point, origin/main is missing, or main's selection fails.

Before / after

Simulated on PR #1936's old head (2761349d9, made before #1964) with the Mac mini runner's state.json:

Harnesses selected
Head's own selection (today) 113
main's selection (this PR) 30

The working tree is clean afterwards (git status empty). On #1964's head (it edits parity.py) the step falls back to the head's own selection.

Self-check

Workflow and doc only: no Rust, no Python change; tools/check_public_tree.py passed on commit. The step's script was extracted and run as above.

🤖 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/1968 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/parity-select-from-main` --- ### 📝 Commits (1) - [`836c1ee`](https://github.com/horizon-rust/horizon/commit/836c1ee3b999823ab5d0db767ffbb6b71db4ab1e) CI parity: pick harnesses with main's selection code, run them at the head ### 📊 Changes **2 files changed** (+34 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/parity.yml` (+31 -1) 📝 `docs/release-flow.md` (+3 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What The parity job checks out the PR head (`ref: inputs.head`), so every branch made before #1964 still picks harnesses with the old per-crate rule, and ~20 queued PRs don't get the −53%. The step now: 1. copies main's `tools/parity.py` and `tools/parity_reach.py` over the head's (`git show origin/main:...`), runs `parity.py --changed <base> --list`, and restores the head's files (an untracked `parity_reach.py` is removed when the head has none); 2. runs the listed harnesses with the head's own `parity.py` (named harnesses, same state, same passes). Fallbacks to today's `parity.py --changed <base>` at the head: the PR changes `tools/parity.py` or `tools/parity_reach.py` since its fork point, `origin/main` is missing, or main's selection fails. ## Before / after Simulated on PR #1936's old head (2761349d9, made before #1964) with the Mac mini runner's `state.json`: | | Harnesses selected | | --- | --- | | Head's own selection (today) | 113 | | main's selection (this PR) | 30 | The working tree is clean afterwards (`git status` empty). On #1964's head (it edits `parity.py`) the step falls back to the head's own selection. ## Self-check Workflow and doc only: no Rust, no Python change; `tools/check_public_tree.py` passed on commit. The step's script was extracted and run as above. 🤖 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:05 +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#3897
No description provided.