[PR #4994] [MERGED] CI: run verify's checks as three parallel jobs (~8 min → ~4 min) #5997

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

📋 Pull Request Information

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

Base: main ← Head: ci/parallel-verify


📝 Commits (1)

  • f2a99d6 CI: run verify's checks as three parallel jobs

📊 Changes

6 files changed (+93 additions, -22 deletions)

View changed files

📝 .github/workflows/ci.yml (+70 -12)
📝 docs/release-flow.md (+6 -5)
📝 docs/security.md (+2 -2)
📝 tests/test_lab.py (+9 -0)
📝 tools/check_public_tree.py (+5 -2)
📝 tools/pr_ready.py (+1 -1)

📄 Description

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

Closes #4978.

checks / verify ran every step one after another, in ~8 min. This PR runs them as three jobs at once:

  • python: public-tree check, Python unittest (~1.5 min)
  • clippy: rustfmt and both clippy runs (~2.5 min); its own cache, verify-clippy
  • tests: the Rust tests (~4 min); it keeps the existing verify cache

verify now only gathers them. It runs always() and fails unless all three passed. Without always(), a failed job would leave verify skipped, and GitHub counts a skipped required check as passed (docs/security.md). The required check keeps its name, and release.yml and nightly.py read the checks workflow's conclusion, which doesn't change.

Public-tree check: a pull request now scans only its own commits with the new check_public_tree.py --range "$BASE..$HEAD" (~1 s instead of ~30 s). Pushes to main still run the full --history scan of every ref.

Not done: nextest. The issue planned it, but measured with no .local/, the way CI runs:

Runner cargo test cargo nextest
12 cores 70 s 28 s
4 cores (taskset, like CI) 58 s ~51 s

nextest runs each test in its own process. Many tests load shared data, such as worldgen tables, once per process, so under nextest each test pays that load again. The tests' total CPU time goes up about 4×, and on 4 cores that cancels the gain from running binaries side by side.

Notes:

  • This PR's own run starts with no verify-clippy cache: main saves it after the merge, so this run's clippy job is cold.
  • A PR runs about 3 more short jobs than before. Total runner minutes go up by about a minute (each job sets itself up), and wall time drops by about half.

Self-check:

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 4de90a13d, 1 min 46 s)

Check Result
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 495 passed (30 s)
rustfmt / clippy / tests ➖ no Rust change
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (20 s)
launcher tests ✅ 305 passed (56 s)
Label skip-release

(The Scope row is left out: it counted two untracked local notes that aren't part of this PR.)

🤖 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/4994 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `ci/parallel-verify` --- ### 📝 Commits (1) - [`f2a99d6`](https://github.com/horizon-rust/horizon/commit/f2a99d6238f8839bc9d9c239c6203c94008b41e4) CI: run verify's checks as three parallel jobs ### 📊 Changes **6 files changed** (+93 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+70 -12) 📝 `docs/release-flow.md` (+6 -5) 📝 `docs/security.md` (+2 -2) 📝 `tests/test_lab.py` (+9 -0) 📝 `tools/check_public_tree.py` (+5 -2) 📝 `tools/pr_ready.py` (+1 -1) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. Closes #4978. `checks / verify` ran every step one after another, in ~8 min. This PR runs them as three jobs at once: - **`python`**: public-tree check, Python unittest (~1.5 min) - **`clippy`**: rustfmt and both clippy runs (~2.5 min); its own cache, `verify-clippy` - **`tests`**: the Rust tests (~4 min); it keeps the existing `verify` cache **`verify`** now only gathers them. It runs `always()` and fails unless all three passed. Without `always()`, a failed job would leave `verify` *skipped*, and GitHub counts a skipped required check as passed (docs/security.md). The required check keeps its name, and `release.yml` and `nightly.py` read the `checks` workflow's conclusion, which doesn't change. **Public-tree check:** a pull request now scans only its own commits with the new `check_public_tree.py --range "$BASE..$HEAD"` (~1 s instead of ~30 s). Pushes to main still run the full `--history` scan of every ref. **Not done: nextest.** The issue planned it, but measured with no `.local/`, the way CI runs: | Runner | `cargo test` | `cargo nextest` | |---|---|---| | 12 cores | 70 s | 28 s | | 4 cores (`taskset`, like CI) | 58 s | ~51 s | nextest runs each test in its own process. Many tests load shared data, such as worldgen tables, once per process, so under nextest each test pays that load again. The tests' total CPU time goes up about 4×, and on 4 cores that cancels the gain from running binaries side by side. Notes: - This PR's own run starts with no `verify-clippy` cache: main saves it after the merge, so this run's clippy job is cold. - A PR runs about 3 more short jobs than before. Total runner minutes go up by about a minute (each job sets itself up), and wall time drops by about half. Self-check: **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 4de90a13d, 1 min 46 s) | Check | Result | | --- | --- | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 495 passed (30 s) | | rustfmt / clippy / tests | ➖ no Rust change | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (20 s) | | launcher tests | ✅ 305 passed (56 s) | | Label | `skip-release` | (The Scope row is left out: it counted two untracked local notes that aren't part of this PR.) 🤖 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 05:16:30 +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#5997
No description provided.