[PR #1435] [MERGED] CI verify: test without building the examples #3523

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

📋 Pull Request Information

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

Base: main ← Head: fix/ci-verify-no-examples


📝 Commits (1)

  • 4a61134 CI verify: test without building the examples

📊 Changes

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

View changed files

📝 .github/workflows/ci.yml (+5 -1)

📄 Description

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

What

CI's verify job runs cargo test --workspace --lib --bins --tests and then cargo test --workspace --doc instead of cargo test --workspace.

Why

Workstream 1 of the review plan (review-1-ci). cargo test --workspace builds and links all ~275 examples (the parity probes and benches), which the review-0 survey measured at 59% of the test build (372 of 627 unit-seconds). None of their tests run there: no example sets test = true. Ludovic agreed to drop them from verify.

What still covers the examples:

  • cargo clippy --workspace --all-targets -D warnings in the same job type-checks every example. That is a check build, with no codegen or linking.
  • The parity job builds and runs the examples the changed harnesses use.
  • tools/gate.py and tools/pr_ready.py already test this way.

Numbers

Before: verify job durations from the last 49 successful runs.

  • Median 7.8 min, max 11.2 min.
  • The test step alone has a median of 4.5 min.

After: this PR's own verify run (run 39950886551).

  • Job: 5.6 min (median before: 7.8 min).
  • Test step: 2.45 min (147 s; median before: 4.5 min).
  • Rust cache restore and clippy are unchanged (24 s and 83 s).

That is one run, measured against the median of 49.

How tested

  • actionlint .github/workflows/ci.yml passes. The two commands are the ones tools/gate.py runs (rust tests, doc tests).
  • This PR's verify run passes with them.
  • No example has test = true, so no test stops running. The #[test]s in three bench examples were never run by cargo test --workspace.

Nothing here needs Ludovic.

🤖 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/1435 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/ci-verify-no-examples` --- ### 📝 Commits (1) - [`4a61134`](https://github.com/horizon-rust/horizon/commit/4a61134eddb414c367be96bb4c57bf654bf1e7a8) CI verify: test without building the examples ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What CI's verify job runs `cargo test --workspace --lib --bins --tests` and then `cargo test --workspace --doc` instead of `cargo test --workspace`. ## Why Workstream 1 of the review plan (review-1-ci). `cargo test --workspace` builds and links all ~275 examples (the parity probes and benches), which the review-0 survey measured at 59% of the test build (372 of 627 unit-seconds). None of their tests run there: no example sets `test = true`. Ludovic agreed to drop them from verify. What still covers the examples: - `cargo clippy --workspace --all-targets -D warnings` in the same job type-checks every example. That is a check build, with no codegen or linking. - The parity job builds and runs the examples the changed harnesses use. - `tools/gate.py` and `tools/pr_ready.py` already test this way. ## Numbers Before: verify job durations from the last 49 successful runs. - Median 7.8 min, max 11.2 min. - The test step alone has a median of 4.5 min. After: this PR's own verify run ([run 39950886551](https://github.com/ludovic111/horizon/actions/runs/39950886551/job/120404765199)). - Job: **5.6 min** (median before: 7.8 min). - Test step: **2.45 min** (147 s; median before: 4.5 min). - Rust cache restore and clippy are unchanged (24 s and 83 s). That is one run, measured against the median of 49. ## How tested - `actionlint .github/workflows/ci.yml` passes. The two commands are the ones `tools/gate.py` runs (`rust tests`, `doc tests`). - This PR's verify run passes with them. - No example has `test = true`, so no test stops running. The `#[test]`s in three bench examples were never run by `cargo test --workspace`. Nothing here needs Ludovic. 🤖 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:10:08 +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#3523
No description provided.