Skip to content

Conversation

atcol
Copy link
Contributor

@atcol atcol commented Aug 17, 2025

Which issue does this PR close?

What changes are included in this PR?

Adds a miri test call to the "ci" Github Actions workflow to detect UB.

Are these changes tested?

The PR's checks shows the successful run of the miri-related action in the workflow.

Note: there was UB detected in the test catalog::memory::catalog::tests::test_create_table_falls_back_to_namespace_location_if_table_location_is_missing @ 487484e

but I believe this to be limitations with stacked borrow checks and crossbeam-epoch. It triggered in the drop for Inner in base_cache of Moka from object_cache.

run: cargo miri setup

- name: Run Miri
run: cargo miri test -- --skip test_compression_codec_zstd
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should add #[cfg(not(miri))] to the test rather skip it here.

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 to detect undefined behavior.
2 participants