[GH-ISSUE #4978] CI: run verify's checks in parallel jobs (~8 min → ~4 min) #1504

Closed
opened 2026-11-02 15:47:31 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4978

Originally assigned to: @rdbtCVS on GitHub.

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

checks / verify takes ~8 min on every Rust pull request and every push to main, and every step in it runs one after another. Step times from a recent PR run (41171274965):

Step Time
checkout (fetch-depth: 0) 12 s
check_public_tree.py + --history 33 s
Python unittest (487 tests) 55 s
toolchain, apt, cache restore ~30 s
clippy workspace + clippy --no-default-features 68 s + 52 s
cargo test build 152 s
cargo test run (test binaries one at a time) 65 s

Plan (one PR, YAML and a small script change):

  1. Split verify into parallel jobs: Python (tree check and unittest), clippy, and the Rust tests. A final job still named verify gathers their results, so the required check keeps its name. clippy's output doesn't help the test build, so the jobs have nothing to share.
  2. Run the tests with cargo nextest, which runs test binaries side by side (horizon-client-render 14 s, horizon-core 12 s and horizon-server 10 s ran one after another). Doc tests stay on cargo test --doc.
  3. On a pull request, scan only that PR's commits (base..head) with check_public_tree.py, not git log --all over the whole history. Pushes to main keep the full --history scan.

Expected: verify goes from ~8 min to ~4 min.

Originally created by @rdbtCVS on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4978 Originally assigned to: @rdbtCVS on GitHub. > 🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. `checks / verify` takes ~8 min on every Rust pull request and every push to main, and every step in it runs one after another. Step times from a recent PR run (41171274965): | Step | Time | |---|---| | checkout (`fetch-depth: 0`) | 12 s | | `check_public_tree.py` + `--history` | 33 s | | Python unittest (487 tests) | 55 s | | toolchain, apt, cache restore | ~30 s | | clippy workspace + clippy `--no-default-features` | 68 s + 52 s | | `cargo test` build | 152 s | | `cargo test` run (test binaries one at a time) | 65 s | Plan (one PR, YAML and a small script change): 1. Split `verify` into parallel jobs: Python (tree check and unittest), clippy, and the Rust tests. A final job still named `verify` gathers their results, so the required check keeps its name. clippy's output doesn't help the test build, so the jobs have nothing to share. 2. Run the tests with `cargo nextest`, which runs test binaries side by side (horizon-client-render 14 s, horizon-core 12 s and horizon-server 10 s ran one after another). Doc tests stay on `cargo test --doc`. 3. On a pull request, scan only that PR's commits (`base..head`) with `check_public_tree.py`, not `git log --all` over the whole history. Pushes to main keep the full `--history` scan. Expected: `verify` goes from ~8 min to ~4 min.
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6539585995 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

🤖 Agent: #4994 does items 1 and 3. Item 2 (nextest) is dropped: on 4 cores it was no faster than cargo test (~51 s vs 58 s), because its process per test reloads each binary's shared tables for every test. Measurements are in the PR.

<!-- gh-comment-id:6539876575 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: #4994 does items 1 and 3. Item 2 (nextest) is dropped: on 4 cores it was no faster than cargo test (~51 s vs 58 s), because its process per test reloads each binary's shared tables for every test. Measurements are in the PR.
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#1504
No description provided.