diff --git a/.config/nextest.toml b/.config/nextest.toml index edd43a7ad70..cbbb1a48be2 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,5 +1,7 @@ # Default profile for local testing. Other profiles are layered on top. [profile.default] +# We do not run `ram_blowup_regression` by default as it's very slow +default-filter = "not test(ram_blowup_regression)" [profile.ci] # Do not cancel the test run on the first failure. @@ -15,4 +17,4 @@ default-filter = "all()" # fail fast to kick from merge queue faster. fail-fast = true # Disable fuzzing to avoid flakiness -default-filter = "not (package(noir_ast_fuzzer_fuzz) or test(arb_program_freqs_in_expected_range))" +default-filter = "not test(ram_blowup_regression) or not (package(noir_ast_fuzzer_fuzz) or test(arb_program_freqs_in_expected_range))" diff --git a/test_programs/compile_success_no_bug/ram_blowup_regression/Nargo.toml b/test_programs/execution_success/ram_blowup_regression/Nargo.toml similarity index 100% rename from test_programs/compile_success_no_bug/ram_blowup_regression/Nargo.toml rename to test_programs/execution_success/ram_blowup_regression/Nargo.toml diff --git a/test_programs/execution_success/ram_blowup_regression/Prover.toml b/test_programs/execution_success/ram_blowup_regression/Prover.toml new file mode 100644 index 00000000000..1977fb6bf84 --- /dev/null +++ b/test_programs/execution_success/ram_blowup_regression/Prover.toml @@ -0,0 +1,2 @@ +tx_effects_hash_input = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] +return = "0xdb0b87402b48f922326751cce8c963a7f32f92928409dce7790ad72e65eee4" \ No newline at end of file diff --git a/test_programs/compile_success_no_bug/ram_blowup_regression/src/main.nr b/test_programs/execution_success/ram_blowup_regression/src/main.nr similarity index 100% rename from test_programs/compile_success_no_bug/ram_blowup_regression/src/main.nr rename to test_programs/execution_success/ram_blowup_regression/src/main.nr diff --git a/test_programs/memory_report.sh b/test_programs/memory_report.sh index cb0571063cc..ff64449fcf5 100755 --- a/test_programs/memory_report.sh +++ b/test_programs/memory_report.sh @@ -8,10 +8,10 @@ PARSE_MEMORY=$(realpath "$(dirname "$0")/parse_memory.sh") # Tests to be profiled for memory report -tests_to_profile=("execution_success/workspace" "execution_success/regression_4709" "compile_success_no_bug/ram_blowup_regression" "execution_success/global_var_regression_entry_points") +tests_to_profile=("workspace" "regression_4709" "ram_blowup_regression" "global_var_regression_entry_points") current_dir=$(pwd) -base_path="$current_dir" +base_path="$current_dir/execution_success" # If there is an argument that means we want to generate a report for only the current directory if [ "$1" == "1" ]; then @@ -24,8 +24,8 @@ FIRST="1" FLAGS=${FLAGS:- ""} echo "[" > memory_report.json -for test_path in ${tests_to_profile[@]}; do - cd $base_path/$test_path +for test_name in ${tests_to_profile[@]}; do + cd $base_path/$test_name if [ $FIRST = "1" ] then @@ -34,7 +34,9 @@ for test_path in ${tests_to_profile[@]}; do echo " ," >> $current_dir"/memory_report.json" fi - test_name=$(basename $test_path) + if [ "$1" == "1" ]; then + test_name=$(basename $current_dir) + fi COMMAND="compile --force --silence-warnings $FLAGS" if [ "$2" == "1" ]; then diff --git a/tooling/nargo_cli/tests/snapshots/compile_success_no_bug/ram_blowup_regression/execute__tests__expanded.snap b/tooling/nargo_cli/tests/snapshots/execution_success/ram_blowup_regression/execute__tests__expanded.snap similarity index 100% rename from tooling/nargo_cli/tests/snapshots/compile_success_no_bug/ram_blowup_regression/execute__tests__expanded.snap rename to tooling/nargo_cli/tests/snapshots/execution_success/ram_blowup_regression/execute__tests__expanded.snap diff --git a/tooling/nargo_cli/tests/snapshots/execution_success/ram_blowup_regression/execute__tests__stdout.snap b/tooling/nargo_cli/tests/snapshots/execution_success/ram_blowup_regression/execute__tests__stdout.snap new file mode 100644 index 00000000000..6f5bac6f6e6 --- /dev/null +++ b/tooling/nargo_cli/tests/snapshots/execution_success/ram_blowup_regression/execute__tests__stdout.snap @@ -0,0 +1,5 @@ +--- +source: tooling/nargo_cli/tests/execute.rs +expression: stdout +--- +[ram_blowup_regression] Circuit output: 0xdb0b87402b48f922326751cce8c963a7f32f92928409dce7790ad72e65eee4