0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 00:17:37 +01:00

SERVER-86713 Add EngFlow creds setup to linter and formatter tasks (#19070)

GitOrigin-RevId: b34e71f9fe85a89621e7194c09c496e89d05e4c9
This commit is contained in:
Zack Winter 2024-02-16 11:33:47 -08:00 committed by MongoDB Bot
parent 0ce41bb0ab
commit bd01a61df2
4 changed files with 15 additions and 0 deletions

View File

@ -2569,6 +2569,7 @@ task_groups:
- func: "set up credentials"
- func: "set up win mount script"
- func: "generate compile expansions"
- func: "get engflow creds"
teardown_group:
- func: "f_expansions_write"
- func: "attach report"
@ -2660,6 +2661,7 @@ task_groups:
- func: "apply compile expansions"
- func: "set task expansion macros"
- func: "f_expansions_write"
- func: "get engflow creds"
teardown_task:
- func: "attach scons logs"
setup_group_can_fail_task: true

View File

@ -554,6 +554,7 @@ tasks:
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get engflow creds"
- func: "scons lint"
vars:
targets: lint-clang-format
@ -573,6 +574,7 @@ tasks:
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get engflow creds"
- func: "scons lint"
vars:
targets: lint-lint.py
@ -587,6 +589,7 @@ tasks:
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get engflow creds"
- func: "scons lint"
vars:
targets: lint-errorcodes
@ -606,6 +609,7 @@ tasks:
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get engflow creds"
- func: "scons lint"
vars:
targets: lint-eslint
@ -726,6 +730,7 @@ tasks:
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get engflow creds"
- func: "scons lint"
vars:
targets: lint-pylinters
@ -745,6 +750,7 @@ tasks:
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get engflow creds"
- func: "scons lint"
vars:
targets: lint-sconslinters

View File

@ -17,6 +17,10 @@ export MYPY="$(
which mypy
)"
echo "Found mypy executable at '$MYPY'"
echo "Setting evergreen tmp dir to $TMPDIR"
compile_flags="$compile_flags --evergreen-tmp-dir='${TMPDIR}'"
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} | tee scons-lint.log
exit_code=$?

View File

@ -16,6 +16,9 @@ activate_venv
set -o pipefail
echo "Setting evergreen tmp dir to $TMPDIR"
compile_flags="$compile_flags --evergreen-tmp-dir='${TMPDIR}'"
eval ${compile_env} $python ./buildscripts/scons.py \
${compile_flags} ${task_compile_flags} \
${targets} | tee scons_stdout.log