Repository navigation
ci: scope pull request Rust builds and checks - #1478
mergify[bot] merged 1 commit into
Conversation
Rust PRs filtered nextest execution but still built unrelated integration binaries and ran broad Clippy, API documentation, and sv-tests jobs. Select Cargo test targets for single-package test/snapshot changes, scope lint and documentation through the workspace graph, and skip conformance and cocotb setup when their consumers are unaffected. Preserve Lydite lint coverage. Queue, release, daily/manual, and ci:full runs retain broad validation. Unknown scopes fail open; required checks reject failed or cancelled jobs and accept skips only when explicitly unneeded. Validation: all 251 repository script tests pass, including recorded Cargo arguments and required-gate failure/skip cases. actionlint passes with the existing ubuntu-26.04-arm runner label configured locally. git diff --check passes. Cargo fmt, Biome, and cargo check --workspace --locked also pass. Change-Id: I5d9dfca94cd265228f7890328a50638bee4d8d65
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3b70703cd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| targets: affected.size === 0 && wholeTests.size === 0 && selected.size === 1 | ||
| ? [...binaries.get([...selected][0])].sort() | ||
| : [], |
There was a problem hiding this comment.
Enable required features for narrowed test targets
When an ordinary PR changes crates/celox/tests/sv_dpi.rs, this branch emits targets: ["sv_dpi"], while features(selected) only returns entries from CI_FEATURES and therefore enables celox/systemverilog, not the target's required sv-dpi feature (crates/celox/Cargo.toml:119-122). The scoped Rust-test and clippy steps then pass --test sv_dpi; cargo test --help describes this as “Test only the specified test target,” and Cargo rejects this explicitly selected target with status 101 unless sv-dpi is enabled. Such PRs therefore fail both scoped commands instead of validating the changed test, so the scope needs to include target-required features or avoid narrowing this target.
Useful? React with 👍 / 👎.
Merge Queue Status
This pull request spent 1 hour 15 minutes 22 seconds in the queue, including 38 minutes 46 seconds running CI. Required conditions to merge
|
Rust PRs filtered nextest execution but still built unrelated integration
binaries and ran broad Clippy, API documentation, and sv-tests jobs. Select
Cargo test targets for single-package test/snapshot changes, scope lint and
documentation through the workspace graph, and skip conformance and cocotb
setup when their consumers are unaffected. Preserve Lydite lint coverage.
Queue, release, daily/manual, and ci:full runs retain broad validation.
Unknown scopes fail open; required checks reject failed or cancelled jobs
and accept skips only when explicitly unneeded.
Validation: all 251 repository script tests pass, including recorded Cargo
arguments and required-gate failure/skip cases. actionlint passes with the
existing ubuntu-26.04-arm runner label configured locally. git diff --check
passes. Cargo fmt, Biome, and cargo check --workspace --locked also pass.