Repository navigation
build!: make optional simulator backends opt-in - #1989
Conversation
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. |
Merge Queue Status
This pull request spent 36 minutes 38 seconds in the queue, including 5 minutes 35 seconds running CI. ReasonThe pull request #1989 has been manually updated Waiting for
All conditions
Requeued — the merge queue status continues in this comment ↓. |
## Summary Ordinary native builds and tests currently pull in Cranelift and Wasmtime through both host-runtime and the upstream Veryl simulator. Make these dependencies opt-in with cranelift, wasm-runtime, wasm-component and veryl-reference features. Native, interpreter and tiered execution remain available by default. Move lightweight Cranelift policy types into the common backend crate, forward features through CLI/NAPI, and select application packages as workspace defaults. Gate explicit comparison tests and generate common test matrices for enabled backends. Published native NAPI binaries explicitly retain WASM-component support. Keep the existing default/full CI lanes and their backend coverage. No feature-combination CI matrix is added; additional local combination checks were stopped as requested. ## Validation - On the updated master base: 147 default library tests, 5 tiered integration tests, and 18 Cranelift-enabled tiered unit tests passed. Celox/NAPI library Clippy, ARM64 cross-target cargo check, and formatting passed. - Formatting, Biome, workflow YAML parsing and repository script tests, including a regression asserting that default build/test dependency trees contain no Cranelift, Wasmtime or Veryl reference simulator. - Workspace cargo check (excluding lydite-celox); all-target Clippy for default applications and for affected crates with full execution/reference features. - No-default-features library check and wasm32-unknown-unknown browser binding check using a WASM-capable Clang. - Default counter, tiered and injected-component integration tests: 15 passed. Component unit tests: 3 passed with default features and 3 passed with wasm-component. - Native NAPI debug build and TypeScript injected-component integration tests: 3 passed. - Rust API documentation for celox and celox-backend-common. Shared executable cases and external adapters are unchanged, so external simulator comparisons were not rerun. BREAKING CHANGE: Cranelift/WASM execution APIs and WASM component hosting now require their corresponding Cargo features. Full workspace and reference comparison builds must be requested explicitly. Change-Id: I890f4c0f7c9901dda4402ae415566788d6868982
49acad6 to
b1a4c70
Compare
Revision history
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b1a4c70c33
ℹ️ 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".
|
|
||
| [[bench]] | ||
| name = "compilation" | ||
| required-features = ["cranelift"] |
There was a problem hiding this comment.
Enable Cranelift in the compilation benchmark workflow
The scheduled/manual compilation benchmark workflow still builds this target without enabling cranelift: .github/workflows/codspeed.yml:58 invokes cargo codspeed build ... -p celox --bench compilation, and its run step likewise supplies no backend features. Adding this requirement without updating that consumer prevents the workflow from producing its compilation measurements. Cargo's locally inspected cargo-bench(1) documentation confirms that when no feature options are supplied, only the default feature is activated. Update the benchmark workflow to explicitly enable the newly required feature.
Useful? React with 👍 / 👎.
|
|
||
| [[bench]] | ||
| name = "vcd" | ||
| required-features = ["cranelift"] |
There was a problem hiding this comment.
Forward the new feature requirement in the VCD comparison runner
Running scripts/compare-vcd-verilator.py without an existing --celox executable now fails during its Celox build: plan_builds() at lines 221–225 still invokes cargo bench --locked -p celox --bench vcd --no-run --message-format=json without enabling cranelift, and the build loop uses check=True. The new requirement therefore breaks the script's normal build-and-compare path, including native-backend comparisons. The inspected cargo bench --help describes --features as the list of features to activate; add --features cranelift to this caller or make the benchmark's optional backend conditional.
Useful? React with 👍 / 👎.
Merge Queue Status
This pull request spent 31 minutes 18 seconds in the queue, including 29 minutes 38 seconds running CI. Required conditions to merge
|
Summary
Ordinary native builds and tests currently pull in Cranelift and Wasmtime through both host-runtime and the upstream Veryl simulator. Make these dependencies opt-in with cranelift, wasm-runtime, wasm-component and veryl-reference features. Native, interpreter and tiered execution remain available by default.
Move lightweight Cranelift policy types into the common backend crate, forward features through CLI/NAPI, and select application packages as workspace defaults. Gate explicit comparison tests and generate common test matrices for enabled backends. Published native NAPI binaries explicitly retain WASM-component support.
Keep the existing default/full CI lanes and their backend coverage. No feature-combination CI matrix is added; additional local combination checks were stopped as requested.
Validation
On the updated master base: 147 default library tests, 5 tiered integration tests, and 18 Cranelift-enabled tiered unit tests passed. Celox/NAPI library Clippy, ARM64 cross-target cargo check, and formatting passed.
Formatting, Biome, workflow YAML parsing and repository script tests, including a regression asserting that default build/test dependency trees contain no Cranelift, Wasmtime or Veryl reference simulator.
Workspace cargo check (excluding lydite-celox); all-target Clippy for default applications and for affected crates with full execution/reference features.
No-default-features library check and wasm32-unknown-unknown browser binding check using a WASM-capable Clang.
Default counter, tiered and injected-component integration tests: 15 passed. Component unit tests: 3 passed with default features and 3 passed with wasm-component.
Native NAPI debug build and TypeScript injected-component integration tests: 3 passed.
Rust API documentation for celox and celox-backend-common.
Shared executable cases and external adapters are unchanged, so external simulator comparisons were not rerun.
BREAKING CHANGE: Cranelift/WASM execution APIs and WASM component hosting now require their corresponding Cargo features. Full workspace and reference comparison builds must be requested explicitly.