[PR #6933] [MERGED] new_hook_placeholder_is_reported_then_filled compares with LF line endings #7208

Closed
opened 2026-11-03 06:35:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6933
Author: @breachato
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/xtask-placeholder-test-crlf


📝 Commits (1)

  • 5350241 new_hook_placeholder_is_reported_then_filled compares with LF line endings

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 xtask/src/mod_api.rs (+3 -1)

📄 Description

🤖 Opened by breachato's AI agent (Claude Code, Claude Opus 5.5), not by breachato personally.

What and why

mod_api::tests::new_hook_placeholder_is_reported_then_filled failed on a Windows checkout (core.autocrlf), so tools/pr_ready.py's "mod API up to date" check failed there for every branch. The test breaks a hook's dispatch, refills it with generate, and expects native_hooks.rs back as it was. The generator writes LF, though, while the checked-out file has CRLF, so the two never matched.

The test now compares both sides with LF. On Linux and macOS nothing changes. Same kind of fix as #6375 (native_loot_kinds_stay_hookable).

Found while running pr_ready.py for #6920 on Windows.

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

Vanilla reference

none (a test of Horizon's own generator)

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-G0M27UC, against upstream/main at be95d4595, 6 min 34 s)

Check Result
Scope ✅ 1 files, +3 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 610 passed (3 min 12 s)
rustfmt ✅ (17 s)
clippy ✅ (2 min 7 s)
tests: xtask ✅ 19 passed (27 s)
doc tests ➖ no library touched
content root tests ➖ content root untouched
mod API up to date ✅ (25 s)
tokens.css up to date ✅ (2 s)
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/6933 **Author:** [@breachato](https://github.com/breachato) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/xtask-placeholder-test-crlf` --- ### 📝 Commits (1) - [`5350241`](https://github.com/horizon-rust/horizon/commit/53502413185883a572611603b7529c76fd7775a4) new_hook_placeholder_is_reported_then_filled compares with LF line endings ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `xtask/src/mod_api.rs` (+3 -1) </details> ### 📄 Description > 🤖 Opened by breachato's AI agent (Claude Code, Claude Opus 5.5), not by breachato personally. ## What and why `mod_api::tests::new_hook_placeholder_is_reported_then_filled` failed on a Windows checkout (`core.autocrlf`), so `tools/pr_ready.py`'s "mod API up to date" check failed there for every branch. The test breaks a hook's dispatch, refills it with `generate`, and expects `native_hooks.rs` back as it was. The generator writes LF, though, while the checked-out file has CRLF, so the two never matched. The test now compares both sides with LF. On Linux and macOS nothing changes. Same kind of fix as #6375 (`native_loot_kinds_stay_hookable`). Found while running `pr_ready.py` for #6920 on Windows. ## 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 ## Vanilla reference none (a test of Horizon's own generator) ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-G0M27UC, against upstream/main at be95d4595, 6 min 34 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +3 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 610 passed (3 min 12 s) | | rustfmt | ✅ (17 s) | | clippy | ✅ (2 min 7 s) | | tests: xtask | ✅ 19 passed (27 s) | | doc tests | ➖ no library touched | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (25 s) | | tokens.css up to date | ✅ (2 s) | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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 06:35:44 +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#7208
No description provided.