[SERVER-79065] List fuzzer sanity patch fails with changes from enterprise module Created: 18/Jul/23  Updated: 05/Aug/23  Resolved: 25/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Trevor Guidry
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-74398 Remove special handling of confirm: t... Closed
Operating System: ALL
Participants:

 Description   

Found in a local evergreen patch for SERVER-74398. We see the lint fuzzer fail with the error:

[2023/07/17 15:23:50.619] > ts-node src/fuzzers/mutational/jstestfuzz.js --jsTestsDir /data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzzinput --out /data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzzoutput --numSourceFiles 81 --numGeneratedFiles 250
 [2023/07/17 15:23:53.308] Seed: 1689607433254
 [2023/07/17 15:23:53.308] [2023-07-17T15:23:53.265Z error] Error constructing test
 [2023/07/17 15:23:53.308] [2023-07-17T15:23:53.307Z error] RangeError: Expected sampleSize to be within 0 and the length of the population
 [2023/07/17 15:23:53.308]     at Function.Random.sample (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/node_modules/random-js/lib/random.js:569:13)
 [2023/07/17 15:23:53.308]     at Random.proto.sample (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/node_modules/random-js/lib/random.js:585:19)
 [2023/07/17 15:23:53.308]     at generateCode (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/src/fuzzers/mutational/jstestfuzz.js:162:35)
 [2023/07/17 15:23:53.308]     at Object.generateCodeRepeat [as generateTest] (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/src/fuzzers/mutational/jstestfuzz.js:191:22)
 [2023/07/17 15:23:53.308]     at generateFuzzerTestsImpl (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/src/libfuzz/generate_fuzzer_tests.js:41:38)
 [2023/07/17 15:23:53.308]     at Object.generateFuzzerTests (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/src/libfuzz/generate_fuzzer_tests.js:80:19)
 [2023/07/17 15:23:53.308]     at Object.<anonymous> (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/src/fuzzers/mutational/jstestfuzz.js:197:15)
 [2023/07/17 15:23:53.308]     at Module._compile (node:internal/modules/cjs/loader:1155:14)
 [2023/07/17 15:23:53.308]     at Module.m._compile (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/node_modules/ts-node/src/index.ts:439:23)
 [2023/07/17 15:23:53.308]     at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
 [2023/07/17 15:23:53.308]     at Object.require.extensions.<computed> [as .js] (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/node_modules/ts-node/src/index.ts:442:12)
 [2023/07/17 15:23:53.308]     at Module.load (node:internal/modules/cjs/loader:1033:32)
 [2023/07/17 15:23:53.308]     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
 [2023/07/17 15:23:53.308]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
 [2023/07/17 15:23:53.308]     at Object.<anonymous> (/data/mci/644865823d1fe880c2720b78d4584902/src/jstestfuzz/node_modules/ts-node/src/bin.ts:157:12)
 [2023/07/17 15:23:53.308]     at Module._compile (node:internal/modules/cjs/loader:1155:14)
 [2023/07/17 15:23:53.308]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
 [2023/07/17 15:23:53.308]     at Module.load (node:internal/modules/cjs/loader:1033:32)
 [2023/07/17 15:23:53.308]     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
 [2023/07/17 15:23:53.308]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
 [2023/07/17 15:23:53.308]     at node:internal/main/run_main_module:22:47

This is likely due to changes from the enterprise module



 Comments   
Comment by Trevor Guidry [ 25/Jul/23 ]

xuerui.fa@mongodb.com Here is a PB with those changes now working with the new jstestfuzz changes https://spruce.mongodb.com/version/64c0064d850e61d256b3cef4

Generated at Thu Feb 08 06:39:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.