From 7b440d7502448b385ef3a2879672be4f075e3c8e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 13 Aug 2025 09:29:22 -0700 Subject: [PATCH 1/2] update --- test/unit/test_cluster_fuzz.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/unit/test_cluster_fuzz.py b/test/unit/test_cluster_fuzz.py index 3382f490a11..889c1668a47 100644 --- a/test/unit/test_cluster_fuzz.py +++ b/test/unit/test_cluster_fuzz.py @@ -232,7 +232,7 @@ def test_file_contents(self): print() - print('struct.news are distributed as ~ mean 15, stddev 24, median 10') + print('struct.news are distributed can vary a lot, but should be ~10') # Given that, with 100 samples we are incredibly likely to see an # interesting number at least once. It is also incredibly unlikely for # the stdev to be zero. @@ -244,7 +244,7 @@ def test_file_contents(self): print() - print('sizes are distributed as ~ mean 2933, stddev 2011, median 2510') + print('sizes are distributed as ~ mean 3600, stddev 2500, median 2800') print(f'mean sizes: {statistics.mean(seen_sizes)}') print(f'stdev sizes: {statistics.stdev(seen_sizes)}') print(f'median sizes: {statistics.median(seen_sizes)}') @@ -253,7 +253,7 @@ def test_file_contents(self): print() - print('exports are distributed as ~ mean 9, stddev 6, median 8') + print('exports are distributed as ~ mean 16, stddev 13, median 13') print(f'mean exports: {statistics.mean(seen_exports)}') print(f'stdev exports: {statistics.stdev(seen_exports)}') print(f'median exports: {statistics.median(seen_exports)}') @@ -427,7 +427,11 @@ def test_file_contents(self): '--experimental-wasm-custom-descriptors', '--fuzzing', fuzz_file] - proc = subprocess.run(cmd, stdout=subprocess.PIPE) + # Capture stderr even though we will not read it. It may + # contain warnings like us passing v8 experimental flags. + proc = subprocess.run(cmd, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) # An execution is valid if we exited without error, and if we # managed to run some code before exiting (modules with no From a38f43728ebcdbb7cf61fdce5cb86ae91f2190ad Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 13 Aug 2025 13:19:58 -0700 Subject: [PATCH 2/2] Update test/unit/test_cluster_fuzz.py Co-authored-by: Thomas Lively --- test/unit/test_cluster_fuzz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/test_cluster_fuzz.py b/test/unit/test_cluster_fuzz.py index 889c1668a47..e69b99eeb82 100644 --- a/test/unit/test_cluster_fuzz.py +++ b/test/unit/test_cluster_fuzz.py @@ -232,7 +232,7 @@ def test_file_contents(self): print() - print('struct.news are distributed can vary a lot, but should be ~10') + print('struct.news can vary a lot, but should be ~10') # Given that, with 100 samples we are incredibly likely to see an # interesting number at least once. It is also incredibly unlikely for # the stdev to be zero.