[PR #1983] [MERGED] streaming: check every fourth cell of the cover test in debug builds (−20 s of cargo test) #3912

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

📋 Pull Request Information

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

Base: main ← Head: perf/cover-test-debug


📝 Commits (1)

  • 40c08c2 streaming: check every fourth cell of the cover test in debug builds

📊 Changes

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

View changed files

📝 crates/horizon-client/src/streaming.rs (+7 -1)

📄 Description

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

What

streaming::cover_tests::the_grid_answers_as_the_scan compares ExtraCover's grid with the plain scan on every cell of 60 random cases, up to 321×321 cells × 15 questions each. In a debug build that takes 20 of the ~30 s of cargo test -p horizon-client --lib --bins --tests (ThinkPad), and verify runs it on every PR.

A debug build now checks every fourth cell of each row. The offset shifts with the row and the case, so across the 60 cases every cell's position relative to the areas is still covered. A release build (cargo test --release -p horizon-client --lib the_grid_answers_as_the_scan) checks every cell, as before. Test-only change.

Before / after

Mac mini (heavily loaded by other sessions, so absolute numbers are high), debug, same target:

Before After
the_grid_answers_as_the_scan 53.1 s 13.3 s
cargo test -p horizon-client --lib (1116 tests) 367.8 s 291.7 s

On the ThinkPad the whole --lib --bins --tests run was 28-30 s with this test at 20 s, so expect ~15 s there.

Self-check

rustfmt --check clean; the test passes in debug (above). Test code only: no harness affected, no player-facing change.

🤖 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/1983 **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:** `perf/cover-test-debug` --- ### 📝 Commits (1) - [`40c08c2`](https://github.com/horizon-rust/horizon/commit/40c08c2d12ebfb8d0a56e9bc2f71b72460cfff0c) streaming: check every fourth cell of the cover test in debug builds ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/streaming.rs` (+7 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `streaming::cover_tests::the_grid_answers_as_the_scan` compares `ExtraCover`'s grid with the plain scan on every cell of 60 random cases, up to 321×321 cells × 15 questions each. In a debug build that takes 20 of the ~30 s of `cargo test -p horizon-client --lib --bins --tests` (ThinkPad), and `verify` runs it on every PR. A debug build now checks every fourth cell of each row. The offset shifts with the row and the case, so across the 60 cases every cell's position relative to the areas is still covered. A release build (`cargo test --release -p horizon-client --lib the_grid_answers_as_the_scan`) checks every cell, as before. Test-only change. ## Before / after Mac mini (heavily loaded by other sessions, so absolute numbers are high), debug, same target: | | Before | After | | --- | --- | --- | | `the_grid_answers_as_the_scan` | 53.1 s | 13.3 s | | `cargo test -p horizon-client --lib` (1116 tests) | 367.8 s | 291.7 s | On the ThinkPad the whole `--lib --bins --tests` run was 28-30 s with this test at 20 s, so expect ~15 s there. ## Self-check `rustfmt --check` clean; the test passes in debug (above). Test code only: no harness affected, no player-facing change. 🤖 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:12 +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#3912
No description provided.