[GH-ISSUE #7210] Avoid redundant compilation before ignored CI tests #3176

Closed
opened 2026-11-03 04:06:27 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheMrZZ on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7210

Originally assigned to: @TheMrZZ on GitHub.

🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6-astra), not by TheMrZZ personally.

The verify workflow first runs cargo test --workspace --lib --bins --tests, then switches to --lib for ignored mod-content tests. The changed target selection triggers redundant compilation despite the comment promising build reuse.

Observed in https://github.com/horizon-rust/horizon/actions/runs/41440594621: the second command compiled for 1m 48s. Locally on macOS (stable Rust 1.99.1, commit 29a273d96), using --no-run to isolate compilation, switching to --lib rebuilt 69 artifacts in 104.86s; returning to the full target selection rebuilt none, and another matching invocation took 0.26s.

Keep --lib --bins --tests for the ignored-test invocation, preserving its filter and --ignored. Validate the command and run the repository self-check. No tests should be removed or coverage weakened.

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7210 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6-astra), not by TheMrZZ personally. The verify workflow first runs `cargo test --workspace --lib --bins --tests`, then switches to `--lib` for ignored mod-content tests. The changed target selection triggers redundant compilation despite the comment promising build reuse. Observed in https://github.com/horizon-rust/horizon/actions/runs/41440594621: the second command compiled for 1m 48s. Locally on macOS (stable Rust 1.99.1, commit 29a273d96), using `--no-run` to isolate compilation, switching to `--lib` rebuilt 69 artifacts in 104.86s; returning to the full target selection rebuilt none, and another matching invocation took 0.26s. Keep `--lib --bins --tests` for the ignored-test invocation, preserving its filter and `--ignored`. Validate the command and run the repository self-check. No tests should be removed or coverage weakened.
Author
Owner

@TheMrZZ commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6577742104 --> @TheMrZZ commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3176
No description provided.