From b8544930eeba71e3b492495da3772880ed5b4969 Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Mon, 27 Jun 2022 14:09:29 -0400 Subject: [PATCH 1/4] Add troubleshooting command to miri docs --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b51e1322acc1..0dd9474987a3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,6 +95,8 @@ jobs: - name: Install alsa and udev run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev - name: CI job + # To run the tests one item at a time for troubleshooting, use + # cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation" xargs -n1 cargo miri test --lib -- --exact run: cargo miri test -p bevy_ecs env: # -Zrandomize-layout makes sure we dont rely on the layout of anything that might change From e11fcf978cd8e685b40cb13c0ba7a540051ae776 Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Tue, 5 Jul 2022 19:52:10 -0400 Subject: [PATCH 2/4] Reduce comprehensibility of command line flags --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0dd9474987a3a..83729ce6bbf16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev - name: CI job # To run the tests one item at a time for troubleshooting, use - # cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation" xargs -n1 cargo miri test --lib -- --exact + # cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation" xargs -n1 cargo miri test --lib -- --exact -Zmiri-permissive-provenance -Zmiri-disable-weak-memory-emulation run: cargo miri test -p bevy_ecs env: # -Zrandomize-layout makes sure we dont rely on the layout of anything that might change From b15f3d36d22bade2404f1d2b2957e539600bd1a7 Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Tue, 5 Jul 2022 19:57:18 -0400 Subject: [PATCH 3/4] Quotes are hard Co-authored-by: Boxy --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83729ce6bbf16..4df8504493721 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev - name: CI job # To run the tests one item at a time for troubleshooting, use - # cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation" xargs -n1 cargo miri test --lib -- --exact -Zmiri-permissive-provenance -Zmiri-disable-weak-memory-emulation + # cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-permissive-provenance -Zmiri-disable-weak-memory-emulation" xargs -n1 cargo miri test --lib -- --exact run: cargo miri test -p bevy_ecs env: # -Zrandomize-layout makes sure we dont rely on the layout of anything that might change From 17f1cca7985b9416fe920393a49baae6dd4e7d19 Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Tue, 5 Jul 2022 20:03:42 -0400 Subject: [PATCH 4/4] Actually run tests Co-authored-by: Boxy --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4df8504493721..7bcd12c3b5e84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev - name: CI job # To run the tests one item at a time for troubleshooting, use - # cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-permissive-provenance -Zmiri-disable-weak-memory-emulation" xargs -n1 cargo miri test --lib -- --exact + # cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-permissive-provenance -Zmiri-disable-weak-memory-emulation" xargs -n1 cargo miri test -p bevy_ecs --lib -- --exact run: cargo miri test -p bevy_ecs env: # -Zrandomize-layout makes sure we dont rely on the layout of anything that might change