From 83ce09901fc0093a46189aef5052842de797b709 Mon Sep 17 00:00:00 2001 From: Daniel Schwartz-Narbonne Date: Thu, 20 Jun 2024 09:43:00 -0400 Subject: [PATCH] [chore] Require all checks to pass on a PR (#490) --- .github/workflows/all-checks.yml | 18 ++++++++++++++++++ profiling/src/internal/profile/fuzz_tests.rs | 10 +--------- 2 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/all-checks.yml diff --git a/.github/workflows/all-checks.yml b/.github/workflows/all-checks.yml new file mode 100644 index 000000000..5f2e9dc2c --- /dev/null +++ b/.github/workflows/all-checks.yml @@ -0,0 +1,18 @@ +name: Required checks pass +on: + pull_request: + push: + branches: + - main +jobs: + allchecks: + runs-on: ubuntu-latest + permissions: + checks: read + contents: read + steps: + - uses: wechuli/allcheckspassed@v1 + with: + delay: '3' + retries: '30' + polling_interval: '1' diff --git a/profiling/src/internal/profile/fuzz_tests.rs b/profiling/src/internal/profile/fuzz_tests.rs index 80a2b54db..5c8c63105 100644 --- a/profiling/src/internal/profile/fuzz_tests.rs +++ b/profiling/src/internal/profile/fuzz_tests.rs @@ -444,17 +444,9 @@ fn fuzz_failure_001() { /// Fuzzes adding a bunch of samples to the profile. #[test] +#[cfg_attr(miri, ignore)] fn test_fuzz_add_sample() { - #[cfg(miri)] - let sample_types_gen = Vec::::gen().with().len(0..=8usize); - #[cfg(not(miri))] let sample_types_gen = Vec::::gen(); - - #[cfg(miri)] - let samples_gen = Vec::<(Option, Sample)>::gen() - .with() - .len(0..=8usize); - #[cfg(not(miri))] let samples_gen = Vec::<(Option, Sample)>::gen(); bolero::check!()