diff options
author | Robert Guo <robertguo@me.com> | 2019-06-05 11:36:29 -0400 |
---|---|---|
committer | Robert Guo <robertguo@me.com> | 2019-06-05 23:03:22 -0400 |
commit | b1ff28c63836aa13112cf3499574160a5950c6ec (patch) | |
tree | ae3731bfe54d2a3947d8d56fa6753edb06bd28e8 /etc | |
parent | 441348f68c71d70723b2abd63488d7d3906f3d8b (diff) | |
download | mongo-b1ff28c63836aa13112cf3499574160a5950c6ec.tar.gz |
SERVER-41401 Use absolute path and ignore deleted files in lint fuzzer sanity patch
Diffstat (limited to 'etc')
-rw-r--r-- | etc/evergreen.yml | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 408548cb41a..53754930711 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -249,7 +249,7 @@ variables: - func: "clear OOM messages" - command: manifest.load - func: "git get project" - - func: "get modified patch files" + - func: "get all modified patch files" - func: "set task expansion macros" # The python virtual environment is installed in ${workdir}, which is created in # "set up virtualenv". @@ -1008,7 +1008,7 @@ functions: mkdir -p ../../../../../../mongo-tools/distsrc cp THIRD-PARTY-NOTICES ../../../../../../mongo-tools/distsrc/THIRD-PARTY-NOTICES.gotools - "get modified patch files": + "get all modified patch files": command: shell.exec params: working_dir: src @@ -1029,6 +1029,23 @@ functions: fi fi + # This function should only be called from patch-build-only tasks. + "get added and modified patch files": + command: shell.exec + params: + working_dir: src + shell: bash + script: | + set -o verbose + set -o errexit + + git diff HEAD --name-only --line-prefix="${workdir}/src/" --diff-filter=d >> modified_and_created_patch_files.txt + if [ -d src/mongo/db/modules/enterprise ]; then + pushd src/mongo/db/modules/enterprise + git diff HEAD --name-only --line-prefix="${workdir}/src/src/mongo/db/modules/enterprise/" --diff-filter=d >> ~1/modified_and_created_patch_files.txt + popd + fi + "determine resmoke jobs": &determine_resmoke_jobs command: shell.exec params: @@ -1853,7 +1870,7 @@ functions: # 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$" patch_files.txt || true) | sed -e "s|^|$PWD/|" | 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 npm run --prefix jstestfuzz parse-jsfiles -- "lint fuzzer sanity all": - command: shell.exec @@ -5462,7 +5479,7 @@ tasks: - command: manifest.load - func: "git get project" - func: "set task expansion macros" - - func: "get modified patch files" + - func: "get added and modified patch files" - func: "setup jstestfuzz" - func: "lint fuzzer sanity patch" |