Commit 126eb28
clusterd-test-driver: ignore lowering tests under miri (#37149)
### Motivation
The `mz-clusterd-test-driver` crate (added in #37008) is not in the miri
exclude list, so its unit tests run under nightly miri.
Every `dataflow::tests::*` test drives MIR-to-LIR lowering, which
reaches `mz_ore::stack::maybe_grow` -> `stacker` ->
`psm::stack_pointer`, a foreign function miri cannot call.
The tests therefore abort under miri (`unsupported operation: can't call
foreign function rust_psm_stack_pointer on OS linux`).
### Description
Mark the six lowering tests `#[cfg_attr(miri, ignore)]`, matching the
existing convention in `mz-expr` (e.g. `src/expr/src/visit.rs`,
`scalar.rs`, `relation/join_input_mapper.rs`), rather than excluding the
crate or shimming `mz_ore::stack`.
### Verification
`CARGO_TARGET_DIR=$PWD/miri-target MIRIFLAGS="-Zmiri-disable-isolation
-Zmiri-strict-provenance" cargo +nightly miri nextest run -p
mz-clusterd-test-driver dataflow::tests` skips them (exit 0); a normal
`cargo nextest run` still runs all of them.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3e16e96 commit 126eb28
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
| 723 | + | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
| |||
766 | 768 | | |
767 | 769 | | |
768 | 770 | | |
| 771 | + | |
769 | 772 | | |
770 | 773 | | |
771 | 774 | | |
| |||
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
| 823 | + | |
820 | 824 | | |
821 | 825 | | |
822 | 826 | | |
| |||
881 | 885 | | |
882 | 886 | | |
883 | 887 | | |
| 888 | + | |
884 | 889 | | |
885 | 890 | | |
886 | 891 | | |
| |||
913 | 918 | | |
914 | 919 | | |
915 | 920 | | |
| 921 | + | |
916 | 922 | | |
917 | 923 | | |
918 | 924 | | |
| |||
0 commit comments