[PR #4875] [MERGED] fix(tools): pr_ready says when local rust is older than ci's #5908

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

📋 Pull Request Information

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

Base: main ← Head: tooling/pr-ready-rust-version


📝 Commits (1)

  • 1028b8f fix(tools): pr_ready says when local rust is older than ci's

📊 Changes

2 files changed (+74 additions, -0 deletions)

View changed files

📝 tests/test_pr_ready.py (+27 -0)
📝 tools/pr_ready.py (+47 -0)

📄 Description

What and why

A dozen open PRs show clippy ❌ in their self-check... e.g. #4857, #4765, #4581, #4008

The lints are manual_range_contains, nonminimal_bool and overly_complex_bool_expr, in files those PRs don't touch, like crates/horizon-world/src/worldgen/aquifer/noise_based.rs:466

That's clippy from Rust 1.96 or 1.97. CI installs the current stable (1.99) and is clean there, so the fix is rustup update, not -A clippy::...

pr_ready.py now checks rustc --version and, when it's older than CI's stable, adds a ⚠️ row above clippy:

| Rust | ⚠️ 1.97.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` |
| clippy | ❌ failed; likely the old Rust above |

It's only a warning, the exit code doesn't change

CI's version comes from the date: Rust ships a stable every six weeks since 1.85.0 on 2025-02-20, so no network and no constant to bump

The row shows only for local runs where a clippy runs (not with --host, not for a docs-only change)

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Self-check

Check Result
python3 -m unittest discover -s tests ✅ 483 passed
python3 tools/check_public_tree.py ✅
with RUSTUP_TOOLCHAIN=1.95.0 ⚠️ row shows, clippy ❌ points at it
with 1.99.1 no row

No Rust change, so no cargo run


🔄 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/4875 **Author:** [@reservedbytes](https://github.com/reservedbytes) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `tooling/pr-ready-rust-version` --- ### 📝 Commits (1) - [`1028b8f`](https://github.com/horizon-rust/horizon/commit/1028b8f19c149025345df9abf6c0627040b89aca) fix(tools): pr_ready says when local rust is older than ci's ### 📊 Changes **2 files changed** (+74 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_pr_ready.py` (+27 -0) 📝 `tools/pr_ready.py` (+47 -0) </details> ### 📄 Description ## What and why A dozen open PRs show `clippy ❌` in their self-check... e.g. #4857, #4765, #4581, #4008 The lints are `manual_range_contains`, `nonminimal_bool` and `overly_complex_bool_expr`, in files those PRs don't touch, like `crates/horizon-world/src/worldgen/aquifer/noise_based.rs:466` That's clippy from Rust 1.96 or 1.97. CI installs the current stable (1.99) and is clean there, so the fix is `rustup update`, not `-A clippy::...` `pr_ready.py` now checks `rustc --version` and, when it's older than CI's stable, adds a ⚠️ row above clippy: ``` | Rust | ⚠️ 1.97.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` | | clippy | ❌ failed; likely the old Rust above | ``` It's only a warning, the exit code doesn't change CI's version comes from the date: Rust ships a stable every six weeks since 1.85.0 on 2025-02-20, so no network and no constant to bump The row shows only for local runs where a clippy runs (not with `--host`, not for a docs-only change) ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [x] tooling: tools, CI, tests, harnesses - [ ] docs ## Self-check | Check | Result | | --- | --- | | `python3 -m unittest discover -s tests` | ✅ 483 passed | | `python3 tools/check_public_tree.py` | ✅ | | with `RUSTUP_TOOLCHAIN=1.95.0` | ⚠️ row shows, clippy ❌ points at it | | with 1.99.1 | no row | No Rust change, so no cargo run --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:50 +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#5908
No description provided.