[PR #2448] [MERGED] CI parity: test the head merged into main #4325

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

📋 Pull Request Information

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

Base: main ← Head: ci/parity-merge-main


📝 Commits (1)

  • df045f1 CI parity: test the head merged into main

📊 Changes

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

View changed files

📝 .github/workflows/parity.yml (+28 -56)
📝 docs/release-flow.md (+6 -3)

📄 Description

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

What

The PR parity job (parity.yml) now tests the pull request's head merged into main's current tip, not the head alone, and selects harnesses against that main commit.

Why

A head tested alone keeps failing harnesses that main has already fixed. From 10-25 evening to 10-26 19:00Z there were 21 failed PR parity jobs, and 9 of them failed only on such fixes:

  • server_knockback, 7 times: every one of those heads lacked #2114.
  • mob_ai oracle OOM: the heads lacked #2270.
  • save_roundtrip: the heads lacked #2212.

#2160 needed 4 parity runs, and 3 of them were this. The full flake list is in the orchestrator's notes (test-health-1).

How

  • A new step fetches main, then runs git merge --no-ff <main> into the checked-out head.
    • Merge succeeds: the selection base becomes that main sha, so parity.py --changed sees only the PR's own changes.
    • Merge conflicts: the job tests the head alone, emits a ::warning:: and keeps the event's base.
    • Either way, the job summary names the main commit it used.
  • The two steps that copied main's vanilla-data.sh, parity.py and parity_reach.py into the checkout by hand are gone. A merged tree already has main's copies unless the PR changes them, which is what those steps emulated. That is -56/+28 lines.
  • What stays the same:
    • The check name is still parity / parity and it is reported on the head, so ready_merger is unaffected.
    • Fork PRs still run it only through the run-parity label (run-parity.yml is unchanged).
    • parity-main doesn't use this workflow.
  • docs/release-flow.md is updated.

Tested

  • actionlint on parity.yml, ci.yml and run-parity.yml: clean.
  • python3 -m unittest tests.test_ci_rust_changes tests.test_pr_ready: 20 OK.
  • I ran the merge step's script by hand in a scratch clone:
Head Result Files the selection sees
eee7253b1 merged 2, the PR's own
886ecd9b2 (already on main) merged 0
0a116d952 (#2160's old head) conflict, tested alone with the warning —
9a7f955a7 conflict, tested alone with the warning —

This PR changes parity.yml, so its own CI parity job runs the new step.

🤖 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/2448 **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-merge-main` --- ### 📝 Commits (1) - [`df045f1`](https://github.com/horizon-rust/horizon/commit/df045f1e9a417b72543e4288e4deabf932473164) CI parity: test the head merged into main ### 📊 Changes **2 files changed** (+34 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/parity.yml` (+28 -56) 📝 `docs/release-flow.md` (+6 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What The PR parity job (`parity.yml`) now tests the pull request's head **merged into main's current tip**, not the head alone, and selects harnesses against that main commit. ## Why A head tested alone keeps failing harnesses that main has already fixed. From 10-25 evening to 10-26 19:00Z there were 21 failed PR parity jobs, and 9 of them failed only on such fixes: - `server_knockback`, 7 times: every one of those heads lacked #2114. - `mob_ai` oracle OOM: the heads lacked #2270. - `save_roundtrip`: the heads lacked #2212. #2160 needed 4 parity runs, and 3 of them were this. The full flake list is in the orchestrator's notes (test-health-1). ## How - A new step fetches main, then runs `git merge --no-ff <main>` into the checked-out head. - **Merge succeeds:** the selection base becomes that main sha, so `parity.py --changed` sees only the PR's own changes. - **Merge conflicts:** the job tests the head alone, emits a `::warning::` and keeps the event's base. - Either way, the job summary names the main commit it used. - The two steps that copied main's `vanilla-data.sh`, `parity.py` and `parity_reach.py` into the checkout by hand are gone. A merged tree already has main's copies unless the PR changes them, which is what those steps emulated. That is -56/+28 lines. - What stays the same: - The check name is still `parity / parity` and it is reported on the head, so ready_merger is unaffected. - Fork PRs still run it only through the `run-parity` label (run-parity.yml is unchanged). - parity-main doesn't use this workflow. - `docs/release-flow.md` is updated. ## Tested - `actionlint` on parity.yml, ci.yml and run-parity.yml: clean. - `python3 -m unittest tests.test_ci_rust_changes tests.test_pr_ready`: 20 OK. - I ran the merge step's script by hand in a scratch clone: | Head | Result | Files the selection sees | |---|---|---| | eee7253b1 | merged | 2, the PR's own | | 886ecd9b2 (already on main) | merged | 0 | | 0a116d952 (#2160's old head) | conflict, tested alone with the warning | — | | 9a7f955a7 | conflict, tested alone with the warning | — | This PR changes `parity.yml`, so its own CI parity job runs the new step. 🤖 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:16:22 +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#4325
No description provided.