From f2bc84e4cada520153859c1e36f38e1677ea70ba Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 27 May 2025 10:58:56 +0200 Subject: [PATCH 1/4] add stress test with 1 thread 10k iterations to ci --- .github/workflows/long_fuzz_tests_btree.yml | 21 ++++++++++++++++++++- stress/main.rs | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/long_fuzz_tests_btree.yml b/.github/workflows/long_fuzz_tests_btree.yml index 9ea81fe70..d98cde0bc 100644 --- a/.github/workflows/long_fuzz_tests_btree.yml +++ b/.github/workflows/long_fuzz_tests_btree.yml @@ -27,4 +27,23 @@ jobs: - name: Run ignored long tests run: cargo test -- --ignored fuzz_long env: - RUST_BACKTRACE: 1 \ No newline at end of file + RUST_BACKTRACE: 1 + + simple-stress-test: + runs-on: ubuntu-latest + timeout-minutes: 0 + steps: + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 + with: + prefix-key: "v1-rust" + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Build + run: cargo build --verbose + - name: Run ignored long tests + run: cargo run -p limbo_stress -- -t 1 -i 10000 + env: + RUST_BACKTRACE: 1 diff --git a/stress/main.rs b/stress/main.rs index 743ff5722..951e7e38a 100644 --- a/stress/main.rs +++ b/stress/main.rs @@ -320,7 +320,7 @@ fn generate_plan(opts: &Opts) -> Result Date: Tue, 27 May 2025 11:26:49 +0200 Subject: [PATCH 2/4] run stress on blacksmith-4vcpu-ubuntu-2404 --- .github/workflows/long_fuzz_tests_btree.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/long_fuzz_tests_btree.yml b/.github/workflows/long_fuzz_tests_btree.yml index d98cde0bc..fba369085 100644 --- a/.github/workflows/long_fuzz_tests_btree.yml +++ b/.github/workflows/long_fuzz_tests_btree.yml @@ -30,7 +30,7 @@ jobs: RUST_BACKTRACE: 1 simple-stress-test: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 timeout-minutes: 0 steps: - uses: actions/checkout@v3 From 650a5b8b1ae4881d259131c503aa5a8075c7a9bd Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 27 May 2025 11:29:04 +0200 Subject: [PATCH 3/4] skip writing to log on CI --- .github/workflows/long_fuzz_tests_btree.yml | 2 +- stress/main.rs | 16 ++++++++++------ stress/opts.rs | 9 +++++++++ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/long_fuzz_tests_btree.yml b/.github/workflows/long_fuzz_tests_btree.yml index fba369085..2bee075ab 100644 --- a/.github/workflows/long_fuzz_tests_btree.yml +++ b/.github/workflows/long_fuzz_tests_btree.yml @@ -44,6 +44,6 @@ jobs: - name: Build run: cargo build --verbose - name: Run ignored long tests - run: cargo run -p limbo_stress -- -t 1 -i 10000 + run: cargo run -p limbo_stress -- -t 1 -i 10000 -s env: RUST_BACKTRACE: 1 diff --git a/stress/main.rs b/stress/main.rs index 951e7e38a..9331db443 100644 --- a/stress/main.rs +++ b/stress/main.rs @@ -309,18 +309,22 @@ fn generate_plan(opts: &Opts) -> Result Date: Tue, 27 May 2025 12:37:23 +0200 Subject: [PATCH 4/4] use blacksmith python,cache stress --- .github/workflows/long_fuzz_tests_btree.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/long_fuzz_tests_btree.yml b/.github/workflows/long_fuzz_tests_btree.yml index 2bee075ab..e27d8eb8a 100644 --- a/.github/workflows/long_fuzz_tests_btree.yml +++ b/.github/workflows/long_fuzz_tests_btree.yml @@ -34,11 +34,11 @@ jobs: timeout-minutes: 0 steps: - uses: actions/checkout@v3 - - uses: Swatinem/rust-cache@v2 + - uses: useblacksmith/rust-cache@v3 with: prefix-key: "v1-rust" - name: Set up Python 3.10 - uses: actions/setup-python@v5 + uses: useblacksmith/setup-python@v6 with: python-version: "3.10" - name: Build