summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZakhar Kleyman <zakhar.kleyman@mongodb.com>2018-03-16 14:55:33 -0400
committerGabriel Russell <gabriel.russell@mongodb.com>2018-04-24 10:16:50 -0400
commit5565001e7bdb4e43afd4454a1a00cd71632078be (patch)
tree8e92f1ee092f0cf042df5de8ddc17f01990f08d0
parented1813b8f82684ff53abc92326f1cf6ac6709e8d (diff)
downloadmongo-5565001e7bdb4e43afd4454a1a00cd71632078be.tar.gz
SERVER-31809 Start using toolchain python on macOS
-rw-r--r--etc/evergreen.yml33
1 files changed, 20 insertions, 13 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 60b74acf684..8cdebdcebbf 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -134,7 +134,7 @@ functions:
echo "There is more than 1 extracted mongo binary: $mongo_binary"
exit 1
fi
- bin_ver=$(${python|python} -c "import yaml; print(yaml.safe_load(open('compile_expansions.yml'))['version']);" | tr -d '[ \r\n]')
+ bin_ver=$(${python|/opt/mongodbtoolchain/v2/bin/python2} -c "import yaml; print(yaml.safe_load(open('compile_expansions.yml'))['version']);" | tr -d '[ \r\n]')
# Due to SERVER-23810, we cannot use $mongo_binary --quiet --nodb --eval "version();"
mongo_ver=$($mongo_binary --version | cut -f2 -d ':' | tr -d '[ \r\n]')
# The versions must match
@@ -286,7 +286,7 @@ functions:
fi
set -o errexit
- ${path_prefix} ${asan_symbolizer} ${enable_lsan} ${lang_environment} ${rlp_environment} ${python|python} buildscripts/resmoke.py ${resmoke_args} $extra_args ${test_flags} --log=buildlogger --reportFile=report.json
+ ${path_prefix} ${asan_symbolizer} ${enable_lsan} ${lang_environment} ${rlp_environment} ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/resmoke.py ${resmoke_args} $extra_args ${test_flags} --log=buildlogger --reportFile=report.json
"run jstestfuzz":
- command: shell.exec
@@ -353,7 +353,7 @@ functions:
set -o verbose
rm -rf /data/install /data/multiversion
- ${python|python} buildscripts/setup_multiversion_mongodb.py /data/install /data/multiversion "base" ${multiversion_platform_arch|"Linux/x86_64"} "2.4" "2.6" "3.0" "3.2.1"
+ ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/setup_multiversion_mongodb.py /data/install /data/multiversion "base" ${multiversion_platform_arch|"Linux/x86_64"} "2.4" "2.6" "3.0" "3.2.1"
"download mongod for validation checking" :
command: shell.exec
@@ -364,7 +364,7 @@ functions:
set -o verbose
rm -rf /data/install /data/multiversion
- ${python|python} buildscripts/setup_multiversion_mongodb.py /data/install /data/multiversion "base" ${multiversion_platform_arch|"Linux/x86_64"} "3.3.10"
+ ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/setup_multiversion_mongodb.py /data/install /data/multiversion "base" ${multiversion_platform_arch|"Linux/x86_64"} "3.3.10"
"cleanup environment" :
command: shell.exec
@@ -519,7 +519,7 @@ post:
# threshold, to the $prune_ratio percentage. Ideally override
# these default values in the distro config in evergreen.
if [ -d "${scons_cache_path}" ]; then
- ${python|python} buildscripts/scons_cache_prune.py --cache-dir '${scons_cache_path}' --cache-size ${scons_cache_size|200} --prune-ratio ${scons_prune_ratio|0.8}
+ ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/scons_cache_prune.py --cache-dir '${scons_cache_path}' --cache-size ${scons_cache_size|200} --prune-ratio ${scons_prune_ratio|0.8}
fi
- command: shell.exec
params:
@@ -553,7 +553,7 @@ timeout:
working_dir: src
script: |
echo "Calling the hang analyzer..."
- PATH=/opt/mongodbtoolchain/bin:$PATH python buildscripts/hang_analyzer.py
+ PATH=/opt/mongodbtoolchain/bin:$PATH ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/hang_analyzer.py
#######################################
# Tasks #
@@ -595,7 +595,7 @@ tasks:
# This script converts the generated version string into a sanitized version string for
# use by scons and uploading artifacts.
- echo $MONGO_VERSION | ${python|python} buildscripts/generate_compile_expansions.py | tee compile_expansions.yml
+ echo $MONGO_VERSION | ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/generate_compile_expansions.py | tee compile_expansions.yml
# Then we load the generated version data into the agent so we can use it in task definitions
- command: expansions.update
@@ -611,7 +611,7 @@ tasks:
set -o verbose
rm -rf ${install_directory|/data/mongo-install-directory}
- ${python|python} ./buildscripts/scons.py ${compile_flags|} --use-new-tools all dist dist-debugsymbols distsrc-${ext|tgz} ${msi_target|} MONGO_VERSION=${version}
+ ${python|/opt/mongodbtoolchain/v2/bin/python2} ./buildscripts/scons.py ${compile_flags|} --use-new-tools all dist dist-debugsymbols distsrc-${ext|tgz} ${msi_target|} MONGO_VERSION=${version}
mv mongodb-src-*.${ext|tgz} distsrc.${ext|tgz}
mv mongodb-*-debugsymbols.${ext|tgz} mongo-debugsymbols.tgz || true
@@ -638,7 +638,7 @@ tasks:
if [ "${has_packages|}" = "true" ] ; then
cd buildscripts
- ${python|python} ${packager_script} --prefix `pwd`/.. --distros ${packager_distro} --tarball `pwd`/../mongodb-binaries.tgz -s ${version} -m HEAD -a ${packager_arch}
+ ${python|/opt/mongodbtoolchain/v2/bin/python2} ${packager_script} --prefix `pwd`/.. --distros ${packager_distro} --tarball `pwd`/../mongodb-binaries.tgz -s ${version} -m HEAD -a ${packager_arch}
cd ..
fi
@@ -647,7 +647,7 @@ tasks:
cd shell-archive
${platform_decompress|tar xzvf} ../mongodb-binaries.tgz
find . -mindepth 3 ! -name "mongo${exe}" -type f -exec rm {} \; # delete bin/* except bin/mongo
- ${python|python} ../buildscripts/make_archive.py -o mongodb-shell.${ext|tgz} $(find mongodb-* -type f)
+ ${python|/opt/mongodbtoolchain/v2/bin/python2} ../buildscripts/make_archive.py -o mongodb-shell.${ext|tgz} $(find mongodb-* -type f)
cd ..
- command: archive.targz_pack
@@ -754,7 +754,7 @@ tasks:
script: |
set -o errexit
set -o verbose
- ${python|python} ./buildscripts/scons.py ${compile_flags|} --stack-size=1024 lint
+ ${python|/opt/mongodbtoolchain/v2/bin/python2} ./buildscripts/scons.py ${compile_flags|} --stack-size=1024 lint
## jstestfuzz mmapv1 ##
- <<: *jstestfuzz_template
@@ -1879,7 +1879,7 @@ tasks:
cp mongodb*/bin/* .
mkdir -p snmpconf
cp -f src/mongo/db/modules/enterprise/docs/mongod.conf.master snmpconf/mongod.conf
- SNMPCONFPATH=snmpconf ${asan_symbolizer} ${enable_lsan} ${python|python} buildscripts/resmoke.py --suites=snmp --jobs ${num_jobs_available|1} --shuffle --storageEngine=mmapv1 ${test_flags} --log=buildlogger --reportFile=report.json
+ SNMPCONFPATH=snmpconf ${asan_symbolizer} ${enable_lsan} ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/resmoke.py --suites=snmp --jobs ${num_jobs_available|1} --shuffle --storageEngine=mmapv1 ${test_flags} --log=buildlogger --reportFile=report.json
- <<: *task_template
name: snmp_WT
@@ -1896,7 +1896,7 @@ tasks:
cp mongodb*/bin/* .
mkdir -p snmpconf
cp -f src/mongo/db/modules/enterprise/docs/mongod.conf.master snmpconf/mongod.conf
- SNMPCONFPATH=snmpconf ${asan_symbolizer} ${enable_lsan} ${python|python} buildscripts/resmoke.py --suites=snmp --jobs ${num_jobs_available|1} --shuffle --storageEngine=wiredTiger ${test_flags} --log=buildlogger --reportFile=report.json
+ SNMPCONFPATH=snmpconf ${asan_symbolizer} ${enable_lsan} ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/resmoke.py --suites=snmp --jobs ${num_jobs_available|1} --shuffle --storageEngine=wiredTiger ${test_flags} --log=buildlogger --reportFile=report.json
- <<: *task_template
name: ssl
@@ -3284,6 +3284,7 @@ buildvariants:
content_type: application/zip
compile_flags: --release -j$(grep -c ^processor /proc/cpuinfo) VARIANT_DIR=win32
num_jobs_available: 1
+ python: python
ext: zip
tasks:
- name: compile
@@ -3385,6 +3386,7 @@ buildvariants:
content_type: application/zip
compile_flags: --release --win-version-min=ws08r2 -j$(grep -c ^processor /proc/cpuinfo) MONGO_DISTMOD=2008plus VARIANT_DIR=win32
num_jobs_available: 1
+ python: python
ext: zip
tasks:
- name: compile
@@ -3489,6 +3491,7 @@ buildvariants:
multiversion_platform_arch: "Windows/x86_64-2008plus"
num_jobs_available: 1
compile_flags: --dbg=on --opt=on --win-version-min=ws08r2 -j$(grep -c ^processor /proc/cpuinfo) MONGO_DISTMOD=2008plus
+ python: python
ext: zip
tasks:
- name: compile
@@ -3589,6 +3592,7 @@ buildvariants:
content_type: application/zip
compile_flags: --release --ssl MONGO_DISTMOD=windows-64 CPPPATH="c:/openssl/include c:/sasl/include c:/snmp/include" LIBPATH="c:/openssl/lib c:/sasl/lib c:/snmp/lib" -j$(grep -c ^processor /proc/cpuinfo) --dynamic-windows --win-version-min=ws08r2 VARIANT_DIR=win32
num_jobs_available: 1
+ python: python
ext: zip
tasks:
- name: compile
@@ -3649,6 +3653,7 @@ buildvariants:
compile_flags: --release --ssl MONGO_DISTMOD=windows-64 CPPPATH="c:/openssl/include c:/sasl/include c:/snmp/include" LIBPATH="c:/openssl/lib c:/sasl/lib c:/snmp/lib" -j$(grep -c ^processor /proc/cpuinfo) --dynamic-windows --win-version-min=ws08r2 VARIANT_DIR=win32
num_jobs_available: 1
test_flags: --storageEngine=inMemory --excludeWithAnyTags=requires_persistence
+ python: python
ext: zip
tasks:
- name: compile
@@ -3701,6 +3706,7 @@ buildvariants:
content_type: application/zip
compile_flags: --release --ssl MONGO_DISTMOD=2008plus-ssl CPPPATH="c:/openssl/include" LIBPATH="c:/openssl/lib" -j$(grep -c ^processor /proc/cpuinfo) --dynamic-windows --win-version-min=ws08r2 VARIANT_DIR=win32
num_jobs_available: 1
+ python: python
ext: zip
tasks:
- name: compile
@@ -3793,6 +3799,7 @@ buildvariants:
compile_flags: --release -j$(grep -c ^processor /proc/cpuinfo) --wiredtiger=off TARGET_ARCH=i386 VARIANT_DIR=win32
num_jobs_available: 1
test_flags: --storageEngine=mmapv1 -j1 # Avoid starting too many mongod's on 32-bit systems.
+ python: python
ext: zip
tasks:
- name: compile