diff --git a/Justfile b/Justfile index 2e27a3732..d019f262b 100644 --- a/Justfile +++ b/Justfile @@ -112,8 +112,12 @@ tier1: tier1-prereqs check lint test-unit rest_accounts_summary \ hurl +load: + @echo "--- Performing a simple load test'" + time ./ops/regression-test.rb "$TOPLEVEL"/result/bin/mina-indexer load + # Run the 2nd tier of tests. -tier2: tier2-prereqs test-unit-mina-rs nix-build && build-image +tier2: tier2-prereqs test-unit-mina-rs nix-build load && build-image @echo "--- Performing regressions test(s) with Nix-built binary" time ./ops/regression-test.rb "$TOPLEVEL"/result/bin/mina-indexer @echo "--- Performing many_blocks regression test" diff --git a/tests/regression.bash b/tests/regression.bash index 7060777ad..d1b35d2ac 100755 --- a/tests/regression.bash +++ b/tests/regression.bash @@ -1437,6 +1437,10 @@ test_block_children() { assert '3NKqMEewA8gvEiW7So7nZ3DN6tPnmCtHpWuAzADN5ff9wiqkGf45' $(echo "$children" | jq -r .[3].state_hash) } +test_load() { + test_hurl true +} + test_hurl() { stage_mainnet_blocks 120 ./blocks @@ -1449,7 +1453,12 @@ test_hurl() { --web-hostname "0.0.0.0" wait_for_socket - hurl --variable url=http://localhost:"$port"/graphql --test --parallel "$SRC"/tests/hurl/*.hurl + local parallel_flag="" + if [[ "${1:-}" == "true" ]]; then + parallel_flag="--parallel" + fi + + hurl --variable url=http://localhost:"$port"/graphql --test $parallel_flag "$SRC"/tests/hurl/*.hurl } test_version_file() { @@ -1592,6 +1601,7 @@ for test_name in "$@"; do "test_version_file") test_version_file ;; # Tier 2 tests: "test_many_blocks") test_many_blocks ;; + "test_load") test_load ;; "test_release") test_release ;; *) echo "Unknown test: $test_name" exit 1