mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-08 09:44:21 +01:00
add stress test with 1 thread 10k iterations to ci
This commit is contained in:
21
.github/workflows/long_fuzz_tests_btree.yml
vendored
21
.github/workflows/long_fuzz_tests_btree.yml
vendored
@@ -27,4 +27,23 @@ jobs:
|
||||
- name: Run ignored long tests
|
||||
run: cargo test -- --ignored fuzz_long
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
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
|
||||
|
||||
@@ -320,7 +320,7 @@ fn generate_plan(opts: &Opts) -> Result<Plan, Box<dyn std::error::Error + Send +
|
||||
let mut queries = vec![];
|
||||
for _ in 0..opts.nr_iterations {
|
||||
let sql = generate_random_statement(&schema);
|
||||
// writeln!(log_file, "{}", sql)?;
|
||||
writeln!(log_file, "{}", sql)?;
|
||||
queries.push(sql);
|
||||
}
|
||||
plan.queries_per_thread.push(queries);
|
||||
|
||||
Reference in New Issue
Block a user