From da828681c35b279d80ec835dd87687e5e59ac3f1 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 22 Oct 2025 13:12:50 +0300 Subject: [PATCH] github: Run fuzz tests in a separate workflow --- .../{long_fuzz_tests_btree.yml => fuzz.yml} | 22 ++++++++++++++++++- .github/workflows/rust.yml | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) rename .github/workflows/{long_fuzz_tests_btree.yml => fuzz.yml} (66%) diff --git a/.github/workflows/long_fuzz_tests_btree.yml b/.github/workflows/fuzz.yml similarity index 66% rename from .github/workflows/long_fuzz_tests_btree.yml rename to .github/workflows/fuzz.yml index 982ac8604..4573d658f 100644 --- a/.github/workflows/long_fuzz_tests_btree.yml +++ b/.github/workflows/fuzz.yml @@ -12,7 +12,27 @@ on: - main jobs: - run-long-tests: + run-fuzz-tests: + runs-on: blacksmith-4vcpu-ubuntu-2404 + timeout-minutes: 30 + + steps: + - uses: actions/checkout@v3 + - uses: useblacksmith/rust-cache@v3 + with: + prefix-key: "v1-rust" # can be updated if we need to reset caches due to non-trivial change in the dependencies (for example, custom env var were set for single workspace project) + - name: Set up Python 3.10 + uses: useblacksmith/setup-python@v6 + with: + python-version: "3.10" + - name: Build + run: cargo build --verbose + - name: Run ignored long tests + run: cargo test --test fuzz_tests + env: + RUST_BACKTRACE: 1 + + run-long-fuzz-tests: runs-on: blacksmith-4vcpu-ubuntu-2404 timeout-minutes: 30 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 49140d2b8..e059236c1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -48,7 +48,7 @@ jobs: - name: Test env: RUST_LOG: ${{ runner.debug && 'turso_core::storage=trace' || '' }} - run: cargo test --verbose --features checksum + run: cargo test --verbose --features checksum --test integration_tests timeout-minutes: 20 clippy: