summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2022-11-22 23:08:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-23 05:53:40 +0000
commit40553a02ad7a218009fd01989894e6f44a38fe8c (patch)
tree7a19a7a313c01beefc0cc499f1a38f05e284e648
parent9ec15cf5c3da353b161fd8365059551aa21fa927 (diff)
downloadmongo-40553a02ad7a218009fd01989894e6f44a38fe8c.tar.gz
SERVER-71534 Fixed fuzzer linting scripts
(cherry picked from commit abb9e2114622a4bf9052e5adfcaf28792ce189e9) (cherry picked from commit 0e1b4c2e56442eeefcc67d9ea8e86f7159337a80)
-rw-r--r--etc/evergreen.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index d2a796d8e89..dd129ad1999 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -1683,28 +1683,36 @@ functions:
- command: shell.exec
type: test
params:
- working_dir: src
+ working_dir: src/jstestfuzz
shell: bash
script: |
set -eo pipefail
set -o verbose
+ # Run first with help which will do the install
+ # Then we can run it in parallel
+ ./src/scripts/npm_run.sh --help
+
# Run parse-jsfiles on 50 files at a time with 32 processes in parallel.
# Grep returns 1 if it fails to find a match.
- (grep "\.js$" modified_and_created_patch_files.txt || true) | xargs -P 32 -L 50 ./jstestfuzz/src/scripts/npm_run.sh --prefix jstestfuzz parse-jsfiles --
+ (grep "\.js$" ../modified_and_created_patch_files.txt || true) | xargs -P 32 -L 50 ./src/scripts/npm_run.sh parse-jsfiles --
"lint fuzzer sanity all":
- command: shell.exec
type: test
params:
- working_dir: src
+ working_dir: src/jstestfuzz
shell: bash
script: |
set -eo pipefail
set -o verbose
+ # Run first with help which will do the install
+ # Then we can run it in parallel
+ ./src/scripts/npm_run.sh --help
+
# Run parse-jsfiles on 50 files at a time with 32 processes in parallel.
- find "$PWD/jstests" "$PWD/src/mongo/db/modules/enterprise" -path "$PWD/jstests/third_party" -prune -o -name "*.js" -print | xargs -P 32 -L 50 ./jstestfuzz/src/scripts/npm_run.sh --prefix jstestfuzz parse-jsfiles --
+ find "$PWD/../jstests" "$PWD/../src/mongo/db/modules/enterprise" -path "$PWD/../jstests/third_party" -prune -o -name "*.js" -print | xargs -P 32 -L 50 ./src/scripts/npm_run.sh parse-jsfiles --
"run jstestfuzz":
- command: shell.exec