Skip to content

Commit 2a608fd

Browse files
authored
ClusterFuzz updates [NFC] (#7821)
Our statistics naturally drift over time. Update some of those values. Also we now pass V8 an experimental pass. Filter that out to avoid noise in the tests.
1 parent 3133a28 commit 2a608fd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/unit/test_cluster_fuzz.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def test_file_contents(self):
232232

233233
print()
234234

235-
print('struct.news are distributed as ~ mean 15, stddev 24, median 10')
235+
print('struct.news can vary a lot, but should be ~10')
236236
# Given that, with 100 samples we are incredibly likely to see an
237237
# interesting number at least once. It is also incredibly unlikely for
238238
# the stdev to be zero.
@@ -244,7 +244,7 @@ def test_file_contents(self):
244244

245245
print()
246246

247-
print('sizes are distributed as ~ mean 2933, stddev 2011, median 2510')
247+
print('sizes are distributed as ~ mean 3600, stddev 2500, median 2800')
248248
print(f'mean sizes: {statistics.mean(seen_sizes)}')
249249
print(f'stdev sizes: {statistics.stdev(seen_sizes)}')
250250
print(f'median sizes: {statistics.median(seen_sizes)}')
@@ -253,7 +253,7 @@ def test_file_contents(self):
253253

254254
print()
255255

256-
print('exports are distributed as ~ mean 9, stddev 6, median 8')
256+
print('exports are distributed as ~ mean 16, stddev 13, median 13')
257257
print(f'mean exports: {statistics.mean(seen_exports)}')
258258
print(f'stdev exports: {statistics.stdev(seen_exports)}')
259259
print(f'median exports: {statistics.median(seen_exports)}')
@@ -427,7 +427,11 @@ def test_file_contents(self):
427427
'--experimental-wasm-custom-descriptors',
428428
'--fuzzing',
429429
fuzz_file]
430-
proc = subprocess.run(cmd, stdout=subprocess.PIPE)
430+
# Capture stderr even though we will not read it. It may
431+
# contain warnings like us passing v8 experimental flags.
432+
proc = subprocess.run(cmd,
433+
stdout=subprocess.PIPE,
434+
stderr=subprocess.PIPE)
431435

432436
# An execution is valid if we exited without error, and if we
433437
# managed to run some code before exiting (modules with no

0 commit comments

Comments
 (0)