Build only required targets in each CI job - #8365
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Amaury Chamayou (achamayou)
force-pushed
the
achamayou-a1-ci-target-selection
branch
from
September 13, 2026 08:05
f5aa864 to
006ded2
Compare
Amaury Chamayou (achamayou)
changed the base branch from
achamayou-ci-build-performance
to
main
September 13, 2026 08:06
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Amaury Chamayou (achamayou)
marked this pull request as ready for review
September 13, 2026 08:22
Copilot started reviewing on behalf of
Amaury Chamayou (achamayou)
September 13, 2026 08:23
View session
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues remain, and existing test coverage is preserved.
Pull request overview
This pull request reduces CI build work by compiling only targets consumed by each job while preserving test selections and clang-tidy coverage.
Changes:
- Narrows Virtual B/C builds to required targets.
- Narrows SNP builds to required tests, applications, and benchmarks.
- Keeps Virtual A unchanged.
File summaries
| File | Description |
|---|---|
.github/workflows/ci.yml |
Restricts Ninja builds to targets required by four CI jobs. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Max (maxtropets)
approved these changes
Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build only the targets consumed by each CI job, preserving all test selections and existing clang-tidy coverage. This PR targets
mainindependently of #8362.CI time savings
Across the four changed jobs: 49% less summed build time and 18% less summed job time. All five jobs passed, including partitions and both SNP platforms. Virtual A is unchanged; its small timing difference is run-to-run variation.
Build timings include configure; Virtual A's step also includes checks and clang-tidy. Whole-job timings include setup, tests and cleanup, but exclude queueing. Jobs run in parallel, so summed savings are not pipeline elapsed-time savings.
Single baseline/candidate comparison, measured with #8362's optimizations before this PR was rebased onto
main.