mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-21 12:39:08 +01:00
SERVER-93814 Detect files changed for lint_fuzzer_sanity_patch in the commit queue (#26949)
GitOrigin-RevId: 868aa78b1f5fe70fec5acb0c4f7ff276741feb73
This commit is contained in:
parent
7857456902
commit
3f3a06f455
10
SConstruct
10
SConstruct
@ -1176,12 +1176,6 @@ env_vars.Add(
|
||||
default="",
|
||||
)
|
||||
|
||||
env_vars.Add(
|
||||
"ENTERPRISE_REV",
|
||||
help="Base git revision of enterprise modules",
|
||||
default="",
|
||||
)
|
||||
|
||||
# Note: This probably is only really meaningful when configured via a variables file. It will
|
||||
# also override whatever the SCons platform defaults would be.
|
||||
env_vars.Add(
|
||||
@ -6146,7 +6140,7 @@ if get_option("lint-scope") == "changed":
|
||||
"buildscripts/clang_format.py",
|
||||
patch_file,
|
||||
],
|
||||
action="REVISION=$REVISION ENTERPRISE_REV=$ENTERPRISE_REV $PYTHON ${SOURCES[0]} lint-git-diff",
|
||||
action="REVISION=$REVISION $PYTHON ${SOURCES[0]} lint-git-diff",
|
||||
)
|
||||
|
||||
eslint = env.Command(
|
||||
@ -6155,7 +6149,7 @@ if get_option("lint-scope") == "changed":
|
||||
"buildscripts/eslint.py",
|
||||
patch_file,
|
||||
],
|
||||
action="REVISION=$REVISION ENTERPRISE_REV=$ENTERPRISE_REV $PYTHON ${SOURCES[0]} lint-git-diff",
|
||||
action="REVISION=$REVISION $PYTHON ${SOURCES[0]} lint-git-diff",
|
||||
)
|
||||
|
||||
else:
|
||||
|
@ -1582,8 +1582,7 @@ functions:
|
||||
params:
|
||||
binary: bash
|
||||
args:
|
||||
- "src/evergreen/run_python_script.sh"
|
||||
- "evergreen/lint_fuzzer_sanity_patch.py"
|
||||
- "src/evergreen/lint_fuzzer_sanity_patch.sh"
|
||||
|
||||
"lint fuzzer sanity all":
|
||||
- *f_expansions_write
|
||||
|
12
evergreen/lint_fuzzer_sanity_patch.sh
Normal file
12
evergreen/lint_fuzzer_sanity_patch.sh
Normal file
@ -0,0 +1,12 @@
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
||||
. "$DIR/prelude.sh"
|
||||
|
||||
set -o errexit
|
||||
set -o verbose
|
||||
|
||||
cd src
|
||||
|
||||
activate_venv
|
||||
base_revision="$(git merge-base ${revision} HEAD)"
|
||||
echo "Base patch revision: $base_revision"
|
||||
REVISION=$base_revision $python evergreen/lint_fuzzer_sanity_patch.py
|
@ -21,8 +21,7 @@ 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
|
||||
eval ${compile_env} python3 ./buildscripts/scons.py ${compile_flags} --stack-size=1024 ${targets} | tee scons-lint.log
|
||||
exit_code=$?
|
||||
|
||||
$python ./buildscripts/simple_report.py --test-name "${targets}" --log-file scons-lint.log --exit-code $exit_code
|
||||
|
Loading…
Reference in New Issue
Block a user