Skip to content

Conversation

@dotandev
Copy link

@dotandev dotandev commented Jan 22, 2026

This PR adds a step to the GitHub Actions CI pipeline to run MIRI (Undefined Behavior detector) on the codebase.

Changes

Modified .github/workflows/reusable-build.yml:
Added rustup component add miri.
Added Miri Check step to the Linux build job.
Configured to run cargo miri test --workspace with exclusions for crates that use LLVM bindings (FFI) which are currently unsupported by MIRI:

inference-wasm-codegen (depends on inkwell)
inference (depends on wasm-codegen)
inference-cli (depends on inference)
infs (app)
inference-lsp (uses inkwell)
inference-ide & inference-ide-db (excluded to reduce noise/compile time, focusing on core logic first)

Verification

Verified MIRI installation command locally.
CI pipeline will now report any UB found in the core crates (AST, Type Checker, etc).

closes #17

@SurfingBowser
Copy link
Contributor

Please confirm you have read this contributor guide and followed the instructions. @dotandev

@0xGeorgii 0xGeorgii requested a review from Copilot January 23, 2026 07:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the CI pipeline by adding MIRI (MIddleware Rust Interpreter) checks to detect undefined behavior in Rust code. MIRI is a powerful tool for finding memory safety issues and undefined behavior at runtime.

Changes:

  • Added MIRI component installation to the GitHub Actions workflow
  • Introduced a new "Miri Check" step that runs on Linux non-release builds
  • Configured MIRI to test the workspace while excluding crates with LLVM FFI bindings (unsupported by MIRI) and IDE-related crates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dotandev and others added 2 commits January 28, 2026 11:15
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: dotdev. <jesuswrites20043@gmail.com>
@dotandev
Copy link
Author

@0xGeorgii

@0xGeorgii
Copy link
Contributor

@dotandev please address review comments

@dotandev dotandev closed this Jan 29, 2026
@dotandev
Copy link
Author

dotandev commented Jan 29, 2026

made a new PR #119

@0xGeorgii

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MIRI check

3 participants