Repository navigation
ci: narrow Rust builds and shared-case tests per pull request - #1542
Conversation
Changing one shared case file selected every Celox consumer and discarded backend-specific test filtering in mixed frontend/case changes. Select the harnesses referencing that case group and preserve full dependency coverage for runtime changes, unknown groups, and shared adapters. Keep Cargo target selections per package instead of falling back to all integration targets when multiple packages are affected. Narrow known SV test modules, avoid external simulator features for Celox-only tests, and select cocotb setup/end-to-end execution only when its VPI target is needed. Use the same Celox features for scoped nextest and cocotb builds. Every PR still runs its selected tests. Queue validation, full scheduled coverage, and merge behavior remain unchanged. Validation: - 75 focused script/workflow regressions pass, including mixed SV/case edits, package-specific Cargo arguments, feature selection, and failure propagation. - actionlint passes with the existing Ubuntu 26.04 runner labels configured. - cargo fmt --all -- --check and pnpm run lint pass. - cargo check --workspace --locked passes. CI wall-clock improvement has not yet been measured on GitHub runners. Change-Id: I1ff943ad4441102f8edc73fada85584bc93f2b0d
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: 93de2bfe59
ℹ️ 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".
| for (const name of [...selected].sort()) { | ||
| if (!affected.has(name) && !wholeTests.has(name)) builds.push({ | ||
| packages: [name], targets: [...(binaries.get(name) ?? [])].sort(), | ||
| features: features([name], selected.has("celox-test-suite")), |
There was a problem hiding this comment.
Scope external adapter features to the suite build
When a recognized shared .vtest changes, selected contains celox-test-suite, so this passes true to features() for every per-package build. Consequently, the separate celox invocation also receives celox-test-suite/verilator and celox-test-suite/icarus through its dev dependency, defeating the intended build isolation and compiling the external-adapter feature set for a Celox-only test binary. Determine the external flag from the current build's packages rather than the global selection.
AGENTS.md reference: AGENTS.md:L14-L20
Useful? React with 👍 / 👎.
Merge Queue Status
This pull request spent 3 hours 38 minutes 26 seconds in the queue, including 31 minutes 33 seconds running CI. Required conditions to merge
|
Changing one shared case file selected every Celox consumer and discarded
backend-specific test filtering in mixed frontend/case changes. Select the
harnesses referencing that case group and preserve full dependency coverage
for runtime changes, unknown groups, and shared adapters.
Keep Cargo target selections per package instead of falling back to all
integration targets when multiple packages are affected. Narrow known SV
test modules, avoid external simulator features for Celox-only tests, and
select cocotb setup/end-to-end execution only when its VPI target is needed.
Use the same Celox features for scoped nextest and cocotb builds.
Every PR still runs its selected tests. Queue validation, full scheduled
coverage, and merge behavior remain unchanged.
Validation:
package-specific Cargo arguments, feature selection, and failure propagation.
CI wall-clock improvement has not yet been measured on GitHub runners.