From 4f0184fa6ad0ebbac2062a6d978096efe8bbd763 Mon Sep 17 00:00:00 2001 From: Daniel Lehmann Date: Sat, 27 Jul 2024 00:58:39 +0200 Subject: [PATCH] CI OOM fixed, let's see if we can be a bit more aggressive --- crates/test_utilities/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/test_utilities/src/lib.rs b/crates/test_utilities/src/lib.rs index 1c4a1878..0dd83967 100644 --- a/crates/test_utilities/src/lib.rs +++ b/crates/test_utilities/src/lib.rs @@ -43,7 +43,7 @@ pub fn for_each_valid_wasm_binary_in_test_set(test_fn: impl Fn(&Path) + Send + S .map(|file| file.len()) .unwrap_or(0); - const AST_BYTES_PER_INSTRUCTION_BYTE_APPROX: u64 = 100; + const AST_BYTES_PER_INSTRUCTION_BYTE_APPROX: u64 = 20; let memory_needed_for_ast_approx = module_size_bytes * AST_BYTES_PER_INSTRUCTION_BYTE_APPROX; let memory_available = { @@ -52,7 +52,7 @@ pub fn for_each_valid_wasm_binary_in_test_set(test_fn: impl Fn(&Path) + Send + S system.available_memory() }; if memory_needed_for_ast_approx > memory_available { - eprintln!("Skipping {} due to running low on memory...\n\t{} bytes memory available\n\t{} bytes module size\n\t{} bytes approx. required", path.display(), memory_available, module_size_bytes, memory_needed_for_ast_approx); + eprintln!("Skipping {} due to running low on memory...\n\t{:10} bytes memory available\n\t{:10} bytes module size\n\t{:10} bytes approx. required", path.display(), memory_available, module_size_bytes, memory_needed_for_ast_approx); return; }