@@ -759,6 +759,7 @@ tasks:
759759 - command : shell.exec
760760 params :
761761 working_dir : realm-core
762+ shell : bash
762763 script : |-
763764 set -o errexit
764765 if [[ -n "${cmake_bindir}" ]]; then
@@ -1138,6 +1139,56 @@ tasks:
11381139 script : |-
11391140 ${cmake_build_type|Debug}/realm-libfuzz -rss_limit_mb=0 -max_total_time=3600
11401141
1142+ - name : generate-sync-corpus
1143+ tags : [ "for_nightly_tests" ]
1144+ exec_timeout_secs : 1800
1145+ commands :
1146+ - func : " fetch source"
1147+ - func : " fetch binaries"
1148+ - func : " compile"
1149+ vars :
1150+ target_to_build : " SyncTests"
1151+ - command : shell.exec
1152+ params :
1153+ working_dir : realm-core
1154+ shell : bash
1155+ script : |-
1156+ set -o errexit
1157+ set -o verbose
1158+
1159+ if [[ -n "${c_compiler}" && "$(basename ${c_compiler})" = "clang" && -f "$(dirname ${c_compiler})/llvm-symbolizer" ]]; then
1160+ LLVM_SYMBOLIZER="$(dirname ${c_compiler})/llvm-symbolizer"
1161+ export ASAN_SYMBOLIZER_PATH="$(./evergreen/abspath.sh $LLVM_SYMBOLIZER)"
1162+ export TSAN_OPTIONS="external_symbolizer_path=$(./evergreen/abspath.sh $LLVM_SYMBOLIZER)"
1163+ fi
1164+
1165+ export UNITTEST_EVERGREEN_TEST_RESULTS="$(./evergreen/abspath.sh ${task_name}_results.json)"
1166+ if [[ -n "$UNITTEST_EVERGREEN_TEST_RESULTS" && -f "$UNITTEST_EVERGREEN_TEST_RESULTS" ]]; then
1167+ rm "$UNITTEST_EVERGREEN_TEST_RESULTS"
1168+ fi
1169+ export UNITTEST_PROGRESS=1
1170+ export UNITTEST_FILTER="Array_Example Transform_* EmbeddedObjects_*"
1171+ export UNITTEST_DUMP_TRANSFORM="changeset_dump"
1172+
1173+ export TSAN_OPTIONS="suppressions=$(pwd)/test/tsan.suppress history_size=4 $TSAN_OPTIONS"
1174+ export UBSAN_OPTIONS="print_stacktrace=1"
1175+
1176+ ./build/test/${cmake_build_type}/realm-sync-tests
1177+
1178+ CHANGESET_DUMP_DIR="$(find . -type d -name changeset_dump -print -quit)"
1179+ mv "$CHANGESET_DUMP_DIR" changeset_dump
1180+ tar -czvf changeset_dump.tgz changeset_dump
1181+ - command : s3.put
1182+ params :
1183+ aws_key : ' ${artifacts_aws_access_key}'
1184+ aws_secret : ' ${artifacts_aws_secret_key}'
1185+ local_file : ' realm-core/changeset_dump.tgz'
1186+ remote_file : ' realm-core-stable/${branch_name}/${task_id}/${execution}/changeset_dump.tgz'
1187+ bucket : mciuploads
1188+ permissions : public-read
1189+ content_type : application/gzip
1190+ display_name : changeset dump tarball
1191+
11411192task_groups :
11421193- name : core_tests_group
11431194 setup_group_can_fail_task : true
@@ -1361,9 +1412,10 @@ buildvariants:
13611412 - name : core_tests_group
13621413
13631414# TODO RCORE-2085 ubuntu2004-release/ubuntu2004-arm64 build variants are here until we've established
1364- # a new baseline for the updated ubuntu 2204/clang 18 builders.
1415+ # a new baseline for the updated ubuntu 2204/clang 18 builders and to generate artifacts for the baas
1416+ # team.
13651417- name : ubuntu2004-release
1366- display_name : " Ubuntu 20.04 x86_64 (Clang 11 release benchmarks)"
1418+ display_name : " Ubuntu 20.04 x86_64 (Clang 11 release benchmarks/baas artifacts )"
13671419 run_on : ubuntu2004-large
13681420 expansions :
13691421 clang_url : " https://s3.amazonaws.com/static.realm.io/evergreen-assets/clang%2Bllvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz"
@@ -1376,7 +1428,9 @@ buildvariants:
13761428 cxx_compiler : " ./clang_binaries/bin/clang++"
13771429 python3 : /opt/mongodbtoolchain/v3/bin/python3
13781430 tasks :
1431+ - name : compile_test_and_package
13791432 - name : benchmarks
1433+ - name : generate-sync-corpus
13801434
13811435- name : ubuntu2004-arm64
13821436 display_name : " Ubuntu 20.04 ARM64 (Clang 11 release benchmarks)"
@@ -1533,21 +1587,6 @@ buildvariants:
15331587# tasks:
15341588# - name: network_tests
15351589
1536- - name : rhel70
1537- display_name : " RHEL 7 x86_64"
1538- run_on : rhel70-large
1539- expansions :
1540- c_compiler : /opt/mongodbtoolchain/v3/bin/gcc
1541- cxx_compiler : /opt/mongodbtoolchain/v3/bin/g++
1542- cmake_url : " https://s3.amazonaws.com/static.realm.io/evergreen-assets/cmake-3.26.3-linux-x86_64.tar.gz"
1543- cmake_bindir : " ./cmake_binaries/bin"
1544- fetch_missing_dependencies : On
1545- curl : " /opt/mongodbtoolchain/v3/bin/curl"
1546- python3 : " /opt/mongodbtoolchain/v3/bin/python3"
1547- ninja : " /opt/mongodbtoolchain/v4/bin/ninja"
1548- tasks :
1549- - name : compile_test_and_package
1550-
15511590- name : ubuntu-valgrind
15521591 display_name : " Ubuntu 22.04 x86_64 (Valgrind)"
15531592 run_on : ubuntu2204-large
0 commit comments