Skip to content

Conversation

@dotandev
Copy link

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).

@SurfingBowser
Copy link
Contributor

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

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.

2 participants