diff options
Diffstat (limited to 'evergreen')
-rw-r--r-- | evergreen/lint_fuzzer_sanity_all.sh | 9 | ||||
-rw-r--r-- | evergreen/lint_fuzzer_sanity_patch.sh | 7 | ||||
-rw-r--r-- | evergreen/lint_shellscripts.sh | 12 | ||||
-rwxr-xr-x | evergreen/lint_yaml.sh | 8 | ||||
-rwxr-xr-x | evergreen/run_clang_tidy.sh | 10 | ||||
-rwxr-xr-x | evergreen/scons_lint.sh | 8 |
6 files changed, 44 insertions, 10 deletions
diff --git a/evergreen/lint_fuzzer_sanity_all.sh b/evergreen/lint_fuzzer_sanity_all.sh index 16ae53b923c..97272296cc3 100644 --- a/evergreen/lint_fuzzer_sanity_all.sh +++ b/evergreen/lint_fuzzer_sanity_all.sh @@ -3,10 +3,15 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" cd src -set -eo pipefail +set -o 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" -name "*.js" -print | xargs -P 32 -L 50 npm run --prefix jstestfuzz parse-jsfiles -- +find "$PWD/jstests" "$PWD/src/mongo/db/modules/enterprise" -name "*.js" -print | xargs -P 32 -L 50 npm run --prefix jstestfuzz parse-jsfiles -- | tee lint_fuzzer_sanity.log +exit_code=$? + +activate_venv +$python ./buildscripts/simple_report.py --test-name lint_fuzzer_sanity_all --log-file lint_fuzzer_sanity.log --exit-code $exit_code +exit $exit_code diff --git a/evergreen/lint_fuzzer_sanity_patch.sh b/evergreen/lint_fuzzer_sanity_patch.sh index 11196aff1ea..70d58d9bfe5 100644 --- a/evergreen/lint_fuzzer_sanity_patch.sh +++ b/evergreen/lint_fuzzer_sanity_patch.sh @@ -3,9 +3,10 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" cd src -set -eo pipefail +set -o pipefail set -o verbose +activate_venv add_nodejs_to_path mkdir -p jstestfuzzinput jstestfuzzoutput @@ -28,5 +29,7 @@ if [[ "$(ls -A $indir)" ]]; then npm run --prefix jstestfuzz jstestfuzz -- --jsTestsDir $indir --out $outdir --numSourceFiles $num_files --numGeneratedFiles 50 # Run parse-jsfiles on 50 files at a time with 32 processes in parallel. - ls -1 -d $outdir/* | xargs -P 32 -L 50 npm run --prefix jstestfuzz parse-jsfiles -- + ls -1 -d $outdir/* | xargs -P 32 -L 50 npm run --prefix jstestfuzz parse-jsfiles -- | tee lint_fuzzer_sanity.log + exit_code=$? + $python ./buildscripts/simple_report.py --test-name lint_fuzzer_sanity_patch --log-file lint_fuzzer_sanity.log --exit-code $exit_code fi diff --git a/evergreen/lint_shellscripts.sh b/evergreen/lint_shellscripts.sh index 23372cf8cdc..615f288c308 100644 --- a/evergreen/lint_shellscripts.sh +++ b/evergreen/lint_shellscripts.sh @@ -1,4 +1,14 @@ +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" +. "$DIR/prelude.sh" + +set -o pipefail + cd src PATH="/opt/shfmt/v3.2.4/bin:$PATH" -./buildscripts/shellscripts-linters.sh +./buildscripts/shellscripts-linters.sh | tee shellscripts.log +exit_code=$? + +activate_venv +$python ./buildscripts/simple_report.py --test-name shfmt --log-file shellscripts.log --exit-code $exit_code +exit $exit_code diff --git a/evergreen/lint_yaml.sh b/evergreen/lint_yaml.sh index 73356b0a778..0610ce1db6c 100755 --- a/evergreen/lint_yaml.sh +++ b/evergreen/lint_yaml.sh @@ -1,7 +1,13 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" . "$DIR/prelude.sh" +set -o pipefail + cd src activate_venv -./buildscripts/yamllinters.sh +./buildscripts/yamllinters.sh | tee yamllinters.log +exit_code=$? + +$python ./buildscripts/simple_report.py --test-name yamllinters --log-file yamllinters.log --exit-code $exit_code +exit $exit_code diff --git a/evergreen/run_clang_tidy.sh b/evergreen/run_clang_tidy.sh index 241385476b5..b1de18e730f 100755 --- a/evergreen/run_clang_tidy.sh +++ b/evergreen/run_clang_tidy.sh @@ -1,8 +1,14 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" . "$DIR/prelude.sh" -set -o errexit +set -o pipefail set -o verbose cd src -source buildscripts/clang_tidy.sh ${clang_tidy_toolchain} +bash buildscripts/clang_tidy.sh ${clang_tidy_toolchain} | tee clang-tidy.log +exit_code=$? + +activate_venv +$python ./buildscripts/simple_report.py --test-name clang_tidy --log-file clang-tidy.log --exit-code $exit_code --dedup-lines +echo $? +exit $exit_code diff --git a/evergreen/scons_lint.sh b/evergreen/scons_lint.sh index 1cdf6ad9bf9..633ea98b11e 100755 --- a/evergreen/scons_lint.sh +++ b/evergreen/scons_lint.sh @@ -3,7 +3,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" cd src -set -o errexit +set -o pipefail set -o verbose activate_venv @@ -18,4 +18,8 @@ export MYPY="$( )" echo "Found mypy executable at '$MYPY'" export extra_flags="" -eval ${compile_env} python3 ./buildscripts/scons.py ${compile_flags} $extra_flags --stack-size=1024 GITDIFFFLAGS="${revision}" REVISION="${revision}" ENTERPRISE_REV="${enterprise_rev}" ${targets} +eval ${compile_env} python3 ./buildscripts/scons.py ${compile_flags} $extra_flags --stack-size=1024 GITDIFFFLAGS="${revision}" REVISION="${revision}" ENTERPRISE_REV="${enterprise_rev}" ${targets} | tee scons-lint.log +exit_code=$? + +$python ./buildscripts/simple_report.py --test-name "${targets}" --log-file scons-lint.log --exit-code $exit_code +exit $exit_code |