Skip to content

build!: make optional simulator backends opt-in - #1989

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feature/gate-veryl-wasm-component-and-cranelift/make-optional-simulator-backends-opt--890f4c0f
Oct 25, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feature/gate-veryl-wasm-component-and-cranelift/make-optional-simulator-backends-opt--890f4c0f

Conversation

@tignear

@tignear tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T12:14:34.494972Z b1a4c70 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 25, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 25, 2026
@mergify

mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 36 minutes 38 seconds in the queue, including 5 minutes 35 seconds running CI.

Reason

The pull request #1989 has been manually updated

Waiting for
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
    • check-success = @github-actions/Lint & Format
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
    • check-success = @github-actions/NAPI Build (Windows)
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
    • check-success = @github-actions/Rust Test & NAPI Build
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
    • check-success = @github-actions/JS Test (Ubuntu)
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
    • check-success = @github-actions/JS Test (Windows)
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
    • check-success = @github-actions/Conventional Commit title
All conditions
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
    • check-success = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
    • check-success = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
    • check-success = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
    • check-success = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
    • check-success = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
    • check-success = @github-actions/Conventional Commit title

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
@tignear
tignear force-pushed the stack/tignear/feature/gate-veryl-wasm-component-and-cranelift/make-optional-simulator-backends-opt--890f4c0f branch from 49acad6 to b1a4c70 Compare October 25, 2026 12:10
@tignear

tignear commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 49acad6 2026-10-25 12:09 UTC
2 content 49acad6 → b1a4c70 Gate the tiered capture-event getter JIT arm after syncing master; fixes merge queue #2005 compile failures. Default and Cranelift tests, Clippy, formatting, and ARM64 cross-check passed. 2026-10-25 12:09 UTC

@mergify mergify Bot removed the queued Mergify queue entry label Oct 25, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread crates/celox/Cargo.toml

[[bench]]
name = "compilation"
required-features = ["cranelift"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread crates/celox/Cargo.toml

[[bench]]
name = "vcd"
required-features = ["cranelift"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@mergify mergify Bot added the queued Mergify queue entry label Oct 25, 2026
@mergify

mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit b689f60 into master Oct 25, 2026
27 checks passed
@mergify
mergify Bot deleted the stack/tignear/feature/gate-veryl-wasm-component-and-cranelift/make-optional-simulator-backends-opt--890f4c0f branch October 25, 2026 13:15
@mergify mergify Bot removed the queued Mergify queue entry label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant