summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2022-11-18 20:07:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-23 05:53:40 +0000
commit9ec15cf5c3da353b161fd8365059551aa21fa927 (patch)
treee02491fb842b04cff36203395706ee3a990be63a
parentdb7a614ddad99bb9499944b41854b972362253f5 (diff)
downloadmongo-9ec15cf5c3da353b161fd8365059551aa21fa927.tar.gz
SERVER-71471 Fixed deployment process for jstestfuzz
(cherry picked from commit 45400e2540977847771a1172de82a01fb12ec8b4) (cherry picked from commit cbc3c7b43abd7e21e3f27e68c3631983524c6a65)
-rw-r--r--etc/evergreen.yml33
1 files changed, 3 insertions, 30 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index bc842559671..d2a796d8e89 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -977,20 +977,6 @@ functions:
fi
echo "python set to $(which $python)"
- - key: add_nodejs_to_path
- value: |
- # Add node and npm binaries to PATH
- if [ "Windows_NT" = "$OS" ]; then
- # An "npm" directory might not have been created in %APPDATA% by the Windows installer.
- # Work around the issue by specifying a different %APPDATA% path.
- # See: https://github.com/nodejs/node-v0.x-archive/issues/8141
- export APPDATA=${workdir}/npm-app-data
- export PATH="$PATH:/cygdrive/c/Program Files (x86)/nodejs" # Windows location
- # TODO: this is to work around BUILD-8652
- cd "$(pwd -P | sed 's,cygdrive/c/,cygdrive/z/,')"
- else
- export PATH="$PATH:/opt/node/bin"
- fi
- key: posix_workdir
value: eval 'if [ "Windows_NT" = "$OS" ]; then echo $(cygpath -u "${workdir}"); else echo ${workdir}; fi'
# For ssh disable the options GSSAPIAuthentication, CheckHostIP, StrictHostKeyChecking
@@ -1691,15 +1677,8 @@ functions:
set -o errexit
set -o verbose
- ${add_nodejs_to_path}
-
git clone git@github.com:10gen/jstestfuzz.git
- pushd jstestfuzz
- npm install
- npm run prepare
- popd
-
"lint fuzzer sanity patch":
- command: shell.exec
type: test
@@ -1710,11 +1689,9 @@ functions:
set -eo pipefail
set -o verbose
- ${add_nodejs_to_path}
-
# 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 npm run --prefix jstestfuzz parse-jsfiles --
+ (grep "\.js$" modified_and_created_patch_files.txt || true) | xargs -P 32 -L 50 ./jstestfuzz/src/scripts/npm_run.sh --prefix jstestfuzz parse-jsfiles --
"lint fuzzer sanity all":
- command: shell.exec
@@ -1726,10 +1703,8 @@ functions:
set -eo pipefail
set -o verbose
- ${add_nodejs_to_path}
-
# 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 npm run --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 ./jstestfuzz/src/scripts/npm_run.sh --prefix jstestfuzz parse-jsfiles --
"run jstestfuzz":
- command: shell.exec
@@ -1752,9 +1727,7 @@ functions:
set -o errexit
set -o verbose
- ${add_nodejs_to_path}
-
- npm run ${npm_command|jstestfuzz} -- ${jstestfuzz_vars} --branch ${branch_name}
+ ./src/scripts/npm_run.sh ${npm_command|jstestfuzz} -- ${jstestfuzz_vars} --branch ${branch_name}
- command: archive.targz_pack
params: