From db323bb9a1ad25fad433156046ae60721884ee88 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Mon, 31 Mar 2025 10:47:35 -0500 Subject: [PATCH 1/3] Set MONGOC_VERSION_MINIMUM to f1e2b540 --- .../config_generator/components/funcs/install_c_driver.py | 2 +- .evergreen/generated_configs/functions.yml | 2 +- CMakeLists.txt | 2 +- cmake/FetchMongoC.cmake | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.evergreen/config_generator/components/funcs/install_c_driver.py b/.evergreen/config_generator/components/funcs/install_c_driver.py index fe81f5920e..14004b42c3 100644 --- a/.evergreen/config_generator/components/funcs/install_c_driver.py +++ b/.evergreen/config_generator/components/funcs/install_c_driver.py @@ -14,7 +14,7 @@ # Only LIBMONGOC_DOWNLOAD_VERSION needs to be updated when pinning to an unreleased commit. # If pinning to an unreleased commit, create a "Blocked" JIRA ticket with # a "depends on" link to the appropriate C Driver version release ticket. -MONGOC_VERSION_MINIMUM = '57bffac11fde38d1ce097bb22fb5322a6114d644' # CXX-3103: bump to 2.0.0 once released. +MONGOC_VERSION_MINIMUM = 'f1e2b54090ea28b169b7d9949bd318615188d81d' # CXX-3103: bump to 2.0.0 once released. class InstallCDriver(Function): diff --git a/.evergreen/generated_configs/functions.yml b/.evergreen/generated_configs/functions.yml index 783a6148bd..1c307caf43 100644 --- a/.evergreen/generated_configs/functions.yml +++ b/.evergreen/generated_configs/functions.yml @@ -398,7 +398,7 @@ functions: type: setup params: updates: - - { key: mongoc_version_minimum, value: 57bffac11fde38d1ce097bb22fb5322a6114d644 } + - { key: mongoc_version_minimum, value: f1e2b54090ea28b169b7d9949bd318615188d81d } - command: subprocess.exec type: setup params: diff --git a/CMakeLists.txt b/CMakeLists.txt index 63cf82378d..0267c2684e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ set(LIBBSON_REQUIRED_ABI_VERSION 1.0) # Also update etc/purls.txt. set(LIBMONGOC_REQUIRED_VERSION 1.30.0) -set(LIBMONGOC_DOWNLOAD_VERSION 57bffac11fde38d1ce097bb22fb5322a6114d644) +set(LIBMONGOC_DOWNLOAD_VERSION f1e2b54090ea28b169b7d9949bd318615188d81d) # CXX-3103: bump to 2.0.0 once released. set(LIBMONGOC_REQUIRED_ABI_VERSION 1.0) set(NEED_DOWNLOAD_C_DRIVER false) diff --git a/cmake/FetchMongoC.cmake b/cmake/FetchMongoC.cmake index cebbae8e30..c171fa0ecc 100644 --- a/cmake/FetchMongoC.cmake +++ b/cmake/FetchMongoC.cmake @@ -26,8 +26,6 @@ if(NOT mongo-c-driver_POPULATED) set(OLD_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) set(OLD_CMAKE_C_FLAGS ${CMAKE_C_FLAGS}) - set(ENABLE_EXTRA_ALIGNMENT OFF) - # Set ENABLE_TESTS to OFF to disable the test-libmongoc target in the C driver. # This prevents the LoadTests.cmake script from attempting to execute test-libmongoc. # test-libmongoc is not built with the "all" target. From 4fbbedc2439be99f62b3780740ea7d6101ec300e Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Mon, 31 Mar 2025 10:47:35 -0500 Subject: [PATCH 2/3] Partially revert 0ca160d4 by removing bsoncxx::aligned_storage --- src/bsoncxx/lib/CMakeLists.txt | 1 - .../lib/bsoncxx/private/aligned_storage.hh | 54 ------------------- .../bsoncxx/v_noabi/bsoncxx/builder/core.cpp | 23 ++++---- .../lib/mongocxx/private/client_session.hh | 7 +-- 4 files changed, 12 insertions(+), 73 deletions(-) delete mode 100644 src/bsoncxx/lib/bsoncxx/private/aligned_storage.hh diff --git a/src/bsoncxx/lib/CMakeLists.txt b/src/bsoncxx/lib/CMakeLists.txt index 282ed5b9d9..02a5c2f8c2 100644 --- a/src/bsoncxx/lib/CMakeLists.txt +++ b/src/bsoncxx/lib/CMakeLists.txt @@ -86,7 +86,6 @@ set_dist_list(src_bsoncxx_lib_DIST ${bsoncxx_sources_private} ${bsoncxx_sources_v_noabi} ${bsoncxx_sources_v1} - bsoncxx/private/aligned_storage.hh bsoncxx/private/b64_ntop.hh bsoncxx/private/config/config.hh.in bsoncxx/private/convert.hh diff --git a/src/bsoncxx/lib/bsoncxx/private/aligned_storage.hh b/src/bsoncxx/lib/bsoncxx/private/aligned_storage.hh deleted file mode 100644 index fcb84f8a17..0000000000 --- a/src/bsoncxx/lib/bsoncxx/private/aligned_storage.hh +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2009-present MongoDB, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -#include - -#include -#include - -namespace bsoncxx { - -// Workaround lack of aligned allocation support prior to C++17. -// -// Unlike `std::aligned_storage` and `alignas`, this type does NOT propagate alignment requirements to the parent -// object. This permits correct behavior despite use with regular (alignment-unaware) allocation functions. -// -// `alignof(T)` must be explicitly provided by the user for correct behavior, as template parameters do not necessarily -// inherit attributes such as alignment, e.g. `std::size_t alignment = alignof(T)` does not work as expected. -template -class aligned_storage { - // Sanity check. - static_assert(size >= alignment, "sizeof(T) >= alignof(T) must be true"); - - private: - // We only need at most `alignment` additional bytes to guarantee enough space for alignment. - unsigned char _storage[size + alignment]; - - public: - void* get() BSONCXX_PRIVATE_IF_GNU_LIKE(__attribute__((assume_aligned(alignment)))) - { - void* ptr = _storage; - std::size_t space = sizeof(_storage); - return std::align(alignment, size, ptr, space); - } - - void const* get() const BSONCXX_PRIVATE_IF_GNU_LIKE(__attribute__((assume_aligned(alignment)))) - { - return const_cast(this)->get(); - } -}; - -} // namespace bsoncxx diff --git a/src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/builder/core.cpp b/src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/builder/core.cpp index 3d7f070d76..da833c22db 100644 --- a/src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/builder/core.cpp +++ b/src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/builder/core.cpp @@ -22,7 +22,6 @@ #include #include -#include #include #include #include @@ -45,7 +44,7 @@ void bson_free_deleter(std::uint8_t* ptr) { class managed_bson_t { public: managed_bson_t() { - bson_init(bson_ptr); + bson_init(&bson); } managed_bson_t(managed_bson_t&&) = delete; @@ -55,16 +54,15 @@ class managed_bson_t { managed_bson_t& operator=(managed_bson_t const&) = delete; ~managed_bson_t() { - bson_destroy(bson_ptr); + bson_destroy(&bson); } bson_t* get() { - return bson_ptr; + return &bson; } private: - bsoncxx::aligned_storage bson_storage; - bson_t* bson_ptr = new (bson_storage.get()) bson_t; + bson_t bson; }; } // namespace @@ -117,7 +115,7 @@ class core::impl { if (_stack.empty()) { return _root.get(); } else { - return _stack.back().bson_ptr; + return &_stack.back().bson; } } @@ -214,11 +212,11 @@ class core::impl { frame(bson_t* parent, char const* key, std::int32_t len, bool is_array) : n(0), is_array(is_array), parent(parent) { if (is_array) { - if (!bson_append_array_begin(parent, key, len, bson_ptr)) { + if (!bson_append_array_begin(parent, key, len, &bson)) { throw bsoncxx::v_noabi::exception{error_code::k_cannot_begin_appending_array}; } } else { - if (!bson_append_document_begin(parent, key, len, bson_ptr)) { + if (!bson_append_document_begin(parent, key, len, &bson)) { throw bsoncxx::v_noabi::exception{error_code::k_cannot_begin_appending_document}; } } @@ -226,11 +224,11 @@ class core::impl { void close() { if (is_array) { - if (!bson_append_array_end(parent, bson_ptr)) { + if (!bson_append_array_end(parent, &bson)) { throw bsoncxx::v_noabi::exception{error_code::k_cannot_end_appending_array}; } } else { - if (!bson_append_document_end(parent, bson_ptr)) { + if (!bson_append_document_end(parent, &bson)) { throw bsoncxx::v_noabi::exception{error_code::k_cannot_end_appending_document}; } } @@ -238,8 +236,7 @@ class core::impl { std::size_t n; bool is_array; - bsoncxx::aligned_storage bson_storage; - bson_t* bson_ptr = new (bson_storage.get()) bson_t; + bson_t bson; bson_t* parent; }; diff --git a/src/mongocxx/lib/mongocxx/private/client_session.hh b/src/mongocxx/lib/mongocxx/private/client_session.hh index 8b69ce56a3..f12442c2a4 100644 --- a/src/mongocxx/lib/mongocxx/private/client_session.hh +++ b/src/mongocxx/lib/mongocxx/private/client_session.hh @@ -25,7 +25,6 @@ #include -#include #include #include @@ -124,7 +123,7 @@ class client_session::impl { return bsoncxx::helpers::view_from_bson_t(ct); } - return bsoncxx::helpers::view_from_bson_t(_empty_cluster_time_ptr); + return bsoncxx::helpers::view_from_bson_t(&_empty_cluster_time); } bsoncxx::v_noabi::types::b_timestamp operation_time() const noexcept { @@ -237,9 +236,7 @@ class client_session::impl { unique_session _session_t; - // Just a long-lasting empty bson_t. Destruction is not required. - bsoncxx::aligned_storage _empty_cluster_time_storage; - bson_t const* _empty_cluster_time_ptr = new (_empty_cluster_time_storage.get()) bson_t BSON_INITIALIZER; + bson_t _empty_cluster_time = BSON_INITIALIZER; }; } // namespace v_noabi From 1019beff340bb270c3dfdd1684b9fe5118aa9782 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Mon, 31 Mar 2025 10:47:36 -0500 Subject: [PATCH 3/3] CDRIVER-2813 Remove ENABLE_EXTRA_ALIGNMENT from EVG config --- .../components/funcs/compile.py | 1 - .../components/integration.py | 74 +- .../config_generator/components/sanitizers.py | 20 +- .../config_generator/components/valgrind.py | 20 +- .evergreen/generated_configs/functions.yml | 1 - .evergreen/generated_configs/tasks.yml | 1978 +---------------- .evergreen/generated_configs/variants.yml | 18 +- .evergreen/scripts/compile.sh | 26 +- .evergreen/scripts/install-c-driver.sh | 7 - 9 files changed, 154 insertions(+), 1991 deletions(-) diff --git a/.evergreen/config_generator/components/funcs/compile.py b/.evergreen/config_generator/components/funcs/compile.py index 72186acfb0..36bf276f27 100644 --- a/.evergreen/config_generator/components/funcs/compile.py +++ b/.evergreen/config_generator/components/funcs/compile.py @@ -17,7 +17,6 @@ class Compile(Function): }, include_expansions_in_env=[ 'branch_name', - 'BSON_EXTRA_ALIGNMENT', 'BSONCXX_POLYFILL', 'build_type', 'COMPILE_MACRO_GUARD_TESTS', diff --git a/.evergreen/config_generator/components/integration.py b/.evergreen/config_generator/components/integration.py index 5657b6daf1..c4bc19103a 100644 --- a/.evergreen/config_generator/components/integration.py +++ b/.evergreen/config_generator/components/integration.py @@ -24,70 +24,60 @@ LINUX_MATRIX = [ # Linux x86_64 (full). # RHEL 8 x86_64: 4.0+. - ('rhel80', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', 'csfle'], [False], [ '4.2', '4.4', '5.0', '6.0', '7.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), - ('rhel80', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', ], [False], ['4.0', ], ['single', 'replica', 'sharded']), # CSFLE: 4.2+. + ('rhel80', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', 'csfle'], [ '4.2', '4.4', '5.0', '6.0', '7.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), + ('rhel80', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', ], ['4.0', ], ['single', 'replica', 'sharded']), # CSFLE: 4.2+. # Linux ARM64 (full). # Linux ARM64: 4.4+. - ('ubuntu2004-arm64', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', 'csfle'], [False], ['4.4', '5.0', '6.0', '7.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), + ('ubuntu2004-arm64', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', 'csfle'], ['4.4', '5.0', '6.0', '7.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), # Linux Power. # RHEL 8 Power: 4.2+. - ('rhel8-power', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [False], ['latest'], ['replica']), + ('rhel8-power', None, ['Debug'], ['shared'], [11], [None], ['csfle'], ['latest'], ['replica']), # Linux zSeries. # RHEL 8 zSeries: 5.0+. - ('rhel8-zseries', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [False], ['latest'], ['replica']), + ('rhel8-zseries', None, ['Debug'], ['shared'], [11], [None], ['csfle'], ['latest'], ['replica']), ] MACOS_MATRIX = [ # MacOS ARM64 (shared only, no extra alignment, min-max-latest). # MacOS ARM64: 6.0+. - ('macos-14-arm64', None, ['Debug'], ['shared'], [11, 17], [None], ['plain', 'csfle'], [False], ['6.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), + ('macos-14-arm64', None, ['Debug'], ['shared'], [11, 17], [None], ['plain', 'csfle'], ['6.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), # MacOS x86_64 (shared only, C++11 only, no extra alignment, min-max-latest). # MacOS x86_64: 4.2+. - ('macos-14', None, ['Debug'], ['shared'], [11], [None], ['plain', 'csfle'], [False], ['4.2', '8.0', 'latest'], ['single', 'replica', 'sharded']), + ('macos-14', None, ['Debug'], ['shared'], [11], [None], ['plain', 'csfle'], ['4.2', '8.0', 'latest'], ['single', 'replica', 'sharded']), ] WINDOWS_MATRIX = [ # Windows x86_64 (min-max-latest). # Windows x86_64: 4.2+. - ('windows-vsCurrent', 'vs2022x64', ['Debug'], ['shared'], [11, 17], [None], ['plain', 'csfle'], [False], ['4.2', '8.0', 'latest'], ['single', 'replica', 'sharded']), + ('windows-vsCurrent', 'vs2022x64', ['Debug'], ['shared'], [11, 17], [None], ['plain', 'csfle'], ['4.2', '8.0', 'latest'], ['single', 'replica', 'sharded']), ] MONGOCRYPTD_MATRIX = [ - ('rhel80', None, ['Debug'], ['shared'], [11], [None], ['crypt'], [False], ['latest'], ['replica']), - ('ubuntu2004-arm64', None, ['Debug'], ['shared'], [11], [None], ['crypt'], [False], ['latest'], ['replica']), - ('rhel8-power', None, ['Debug'], ['shared'], [11], [None], ['crypt'], [False], ['latest'], ['replica']), - ('rhel8-zseries', None, ['Debug'], ['shared'], [11], [None], ['crypt'], [False], ['latest'], ['replica']), - ('macos-14-arm64', None, ['Debug'], ['shared'], [11], [None], ['crypt'], [False], ['latest'], ['replica']), - ('macos-14', None, ['Debug'], ['shared'], [11], [None], ['crypt'], [False], ['latest'], ['replica']), - ('windows-vsCurrent', 'vs2022x64', ['Debug'], ['shared'], [11], [None], ['crypt'], [False], ['latest'], ['replica']), -] - -EXTRA_ALIGNMENT_MATRIX = [ - ('rhel80', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [True], ['latest'], ['replica']), - ('ubuntu2004-arm64', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [True], ['latest'], ['replica']), - ('rhel8-power', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [True], ['latest'], ['replica']), - ('rhel8-zseries', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [True], ['latest'], ['replica']), - ('macos-14-arm64', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [True], ['latest'], ['replica']), - ('macos-14', None, ['Debug'], ['shared'], [11], [None], ['csfle'], [True], ['latest'], ['replica']), - ('windows-vsCurrent', 'vs2022x64', ['Debug'], ['shared'], [11], [None], ['csfle'], [True], ['latest'], ['replica']), + ('rhel80', None, ['Debug'], ['shared'], [11], [None], ['crypt'], ['latest'], ['replica']), + ('ubuntu2004-arm64', None, ['Debug'], ['shared'], [11], [None], ['crypt'], ['latest'], ['replica']), + ('rhel8-power', None, ['Debug'], ['shared'], [11], [None], ['crypt'], ['latest'], ['replica']), + ('rhel8-zseries', None, ['Debug'], ['shared'], [11], [None], ['crypt'], ['latest'], ['replica']), + ('macos-14-arm64', None, ['Debug'], ['shared'], [11], [None], ['crypt'], ['latest'], ['replica']), + ('macos-14', None, ['Debug'], ['shared'], [11], [None], ['crypt'], ['latest'], ['replica']), + ('windows-vsCurrent', 'vs2022x64', ['Debug'], ['shared'], [11], [None], ['crypt'], ['latest'], ['replica']), ] # fmt: on # pylint: enable=line-too-long -ALL_MATRIX = LINUX_MATRIX + MACOS_MATRIX + WINDOWS_MATRIX + MONGOCRYPTD_MATRIX + EXTRA_ALIGNMENT_MATRIX +ALL_MATRIX = LINUX_MATRIX + MACOS_MATRIX + WINDOWS_MATRIX + MONGOCRYPTD_MATRIX def tasks(): - for distro_name, compiler, build_types, link_types, cxx_standards, polyfills, with_csfles, with_extra_aligns, mongodb_versions, topologies in ALL_MATRIX: - for build_type, link_type, cxx_standard, polyfill, with_csfle, with_extra_align, mongodb_version, topology in product( - build_types, link_types, cxx_standards, polyfills, with_csfles, with_extra_aligns, mongodb_versions, topologies, + for distro_name, compiler, build_types, link_types, cxx_standards, polyfills, with_csfles, mongodb_versions, topologies in ALL_MATRIX: + for build_type, link_type, cxx_standard, polyfill, with_csfle, mongodb_version, topology in product( + build_types, link_types, cxx_standards, polyfills, with_csfles, mongodb_versions, topologies, ): distro = find_large_distro(distro_name) @@ -106,10 +96,6 @@ def tasks(): name += '-csfle' tags += ['csfle'] - if with_extra_align: - name += '-extra_alignment' - tags += ['extra_alignment'] - name += f'-{mongodb_version}-{topology}' tags += [mongodb_version, topology] @@ -119,15 +105,9 @@ def tasks(): updates = [] icd_vars = {} - compile_vars = {'ENABLE_TESTS': 'ON'} + compile_vars = {'ENABLE_TESTS': 'ON', 'RUN_DISTCHECK': 1} test_vars = {'MONGOCXX_TEST_TOPOLOGY': topology} - if with_extra_align: - icd_vars |= {'BSON_EXTRA_ALIGNMENT': 1} - compile_vars |= {'BSON_EXTRA_ALIGNMENT': 1} - else: - compile_vars |= {'RUN_DISTCHECK': 1} - if with_csfle != 'plain': test_vars |= {'TEST_WITH_CSFLE': 'ON'} @@ -155,15 +135,12 @@ def tasks(): commands += [ Setup.call(), StartMongod.call(mongodb_version=mongodb_version, topology=topology), - ] + [ - InstallCDriver.call(vars=icd_vars | ({'SKIP_INSTALL_LIBMONGOCRYPT': 1} if with_extra_align else {})), - ] + [ + InstallCDriver.call(vars=icd_vars), InstallUV.call(), Compile.call(polyfill=polyfill, vars=compile_vars), FetchDET.call(), RunKMSServers.call(), - ] + [ - Test.call(vars=test_vars | ({'use_mongocryptd': True} if with_csfle == 'crypt' else {})) + Test.call(vars=test_vars | ({'use_mongocryptd': True} if with_csfle == 'crypt' else {})), ] # PowerPC and zSeries are limited resources. @@ -191,11 +168,10 @@ def variants(): ] matrices = [ - ('linux', '.linux !.mongocryptd !.extra_alignment', LINUX_MATRIX), - ('macos', '.macos !.mongocryptd !.extra_alignment', MACOS_MATRIX), - ('windows', '.windows !.mongocryptd !.extra_alignment', WINDOWS_MATRIX), + ('linux', '.linux !.mongocryptd', LINUX_MATRIX), + ('macos', '.macos !.mongocryptd', MACOS_MATRIX), + ('windows', '.windows !.mongocryptd', WINDOWS_MATRIX), ('mongocryptd', '.mongocryptd', MONGOCRYPTD_MATRIX), - ('extra_alignment', '.extra_alignment', EXTRA_ALIGNMENT_MATRIX), ] for name, filter, matrix in matrices: diff --git a/.evergreen/config_generator/components/sanitizers.py b/.evergreen/config_generator/components/sanitizers.py index eed911a5d8..0309c102eb 100644 --- a/.evergreen/config_generator/components/sanitizers.py +++ b/.evergreen/config_generator/components/sanitizers.py @@ -22,7 +22,7 @@ # pylint: disable=line-too-long # fmt: off MATRIX = [ - ('rhel80', ['asan', 'ubsan'], ['shared', 'static'], [False, True], ['4.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), + ('rhel80', ['asan', 'ubsan'], ['shared', 'static'], ['4.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), ] # fmt: on # pylint: enable=line-too-long @@ -35,9 +35,9 @@ def tasks(): cc_compiler = f'/opt/mongodbtoolchain/v4/bin/{compiler}' cxx_compiler = f'/opt/mongodbtoolchain/v4/bin/{compiler}++' - for distro_name, sanitizers, link_types, with_extra_aligns, mongodb_versions, topologies in MATRIX: - for sanitizer, link_type, with_extra_align, mongodb_version, topology in product( - sanitizers, link_types, with_extra_aligns, mongodb_versions, topologies + for distro_name, sanitizers, link_types, mongodb_versions, topologies in MATRIX: + for sanitizer, link_type, mongodb_version, topology in product( + sanitizers, link_types, mongodb_versions, topologies ): distro = find_large_distro(distro_name) @@ -50,10 +50,6 @@ def tasks(): name += f'-{link_type}' tags += [link_type] - if with_extra_align: - name += f'-extra_alignment' - tags += ['extra_alignment'] - name += f'-{mongodb_version}-{topology}' tags += [mongodb_version, topology] @@ -62,7 +58,7 @@ def tasks(): for key, value in [('cc_compiler', cc_compiler), ('cxx_compiler', cxx_compiler)]] icd_vars = {'SKIP_INSTALL_LIBMONGOCRYPT': 1} - compile_vars = {'ENABLE_TESTS': 'ON'} + compile_vars = {'ENABLE_TESTS': 'ON', 'RUN_DISTCHECK': 1} test_vars = { 'MONGOCXX_TEST_TOPOLOGY': topology, 'example_projects_cc': 'clang', @@ -72,12 +68,6 @@ def tasks(): if link_type == 'static': updates.append(KeyValueParam(key='USE_STATIC_LIBS', value='1')) - if with_extra_align: - icd_vars |= {'BSON_EXTRA_ALIGNMENT': 1} - compile_vars |= {'BSON_EXTRA_ALIGNMENT': 1} - else: - compile_vars |= {'RUN_DISTCHECK': 1} - commands = [expansions_update(updates=updates)] if updates else [] match sanitizer: diff --git a/.evergreen/config_generator/components/valgrind.py b/.evergreen/config_generator/components/valgrind.py index 1f358a48ee..48140b8a0b 100644 --- a/.evergreen/config_generator/components/valgrind.py +++ b/.evergreen/config_generator/components/valgrind.py @@ -23,7 +23,7 @@ # fmt: off MATRIX = [ # min-max-latest - ('rhel80', None, ['shared'], [False, True], ['4.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), + ('rhel80', None, ['shared'], ['4.0', '8.0', 'latest'], ['single', 'replica', 'sharded']), ] # fmt: on # pylint: enable=line-too-long @@ -32,9 +32,9 @@ def tasks(): res = [] - for distro_name, compiler, link_types, with_extra_aligns, mongodb_versions, topologies in MATRIX: - for link_type, with_extra_align, mongodb_version, topology in product( - link_types, with_extra_aligns, mongodb_versions, topologies + for distro_name, compiler, link_types, mongodb_versions, topologies in MATRIX: + for link_type, mongodb_version, topology in product( + link_types, mongodb_versions, topologies ): distro = find_large_distro(distro_name) @@ -47,16 +47,12 @@ def tasks(): name += f'-{link_type}' tags += [link_type] - if with_extra_align: - name += f'-extra_alignment' - tags += ['extra_alignment'] - name += f'-{mongodb_version}-{topology}' tags += [mongodb_version, topology] updates = [KeyValueParam(key='build_type', value='Debug')] icd_vars = {'SKIP_INSTALL_LIBMONGOCRYPT': 1} - compile_vars = {'ENABLE_TESTS': 'ON'} + compile_vars = {'ENABLE_TESTS': 'ON', 'RUN_DISTCHECK': 1} test_vars = { 'MONGOCXX_TEST_TOPOLOGY': topology, 'TEST_WITH_VALGRIND': 'ON', @@ -67,12 +63,6 @@ def tasks(): if link_type == 'static': updates.append(KeyValueParam(key='USE_STATIC_LIBS', value='1')) - if with_extra_align: - icd_vars |= {'BSON_EXTRA_ALIGNMENT': 1} - compile_vars |= {'BSON_EXTRA_ALIGNMENT': 1} - else: - compile_vars |= {'RUN_DISTCHECK': 1} - commands = [expansions_update(updates=updates)] if updates else [] commands += [ diff --git a/.evergreen/generated_configs/functions.yml b/.evergreen/generated_configs/functions.yml index 1c307caf43..dec36b12e2 100644 --- a/.evergreen/generated_configs/functions.yml +++ b/.evergreen/generated_configs/functions.yml @@ -264,7 +264,6 @@ functions: CXX: ${cxx_compiler} include_expansions_in_env: - branch_name - - BSON_EXTRA_ALIGNMENT - BSONCXX_POLYFILL - build_type - COMPILE_MACRO_GUARD_TESTS diff --git a/.evergreen/generated_configs/tasks.yml b/.evergreen/generated_configs/tasks.yml index 31732323be..fcb7f06fca 100644 --- a/.evergreen/generated_configs/tasks.yml +++ b/.evergreen/generated_configs/tasks.yml @@ -2768,37 +2768,6 @@ tasks: REQUIRED_CXX_STANDARD: 11 TEST_WITH_CSFLE: "ON" example_projects_cxx_standard: 11 - - name: integration-macos-14-arm64-debug-shared-cxx11-csfle-extra_alignment-latest-replica - run_on: macos-14-arm64 - tags: [integration, macos-14-arm64, macos, debug, shared, cxx11, csfle, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - REQUIRED_CXX_STANDARD: 11 - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - REQUIRED_CXX_STANDARD: 11 - TEST_WITH_CSFLE: "ON" - example_projects_cxx_standard: 11 - name: integration-macos-14-arm64-debug-shared-cxx11-csfle-latest-replica run_on: macos-14-arm64 tags: [integration, macos-14-arm64, macos, debug, shared, cxx11, csfle, latest, replica] @@ -3806,37 +3775,6 @@ tasks: REQUIRED_CXX_STANDARD: 11 TEST_WITH_CSFLE: "ON" example_projects_cxx_standard: 11 - - name: integration-macos-14-debug-shared-cxx11-csfle-extra_alignment-latest-replica - run_on: macos-14 - tags: [integration, macos-14, macos, debug, shared, cxx11, csfle, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - REQUIRED_CXX_STANDARD: 11 - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - REQUIRED_CXX_STANDARD: 11 - TEST_WITH_CSFLE: "ON" - example_projects_cxx_standard: 11 - name: integration-macos-14-debug-shared-cxx11-csfle-latest-replica run_on: macos-14 tags: [integration, macos-14, macos, debug, shared, cxx11, csfle, latest, replica] @@ -4029,38 +3967,6 @@ tasks: MONGOCXX_TEST_TOPOLOGY: single REQUIRED_CXX_STANDARD: 11 example_projects_cxx_standard: 11 - - name: integration-rhel8-power-debug-shared-cxx11-csfle-extra_alignment-latest-replica - run_on: rhel8-power-large - tags: [integration, rhel8-power, linux, debug, shared, cxx11, csfle, extra_alignment, latest, replica] - patchable: false - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - REQUIRED_CXX_STANDARD: 11 - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - REQUIRED_CXX_STANDARD: 11 - TEST_WITH_CSFLE: "ON" - example_projects_cxx_standard: 11 - name: integration-rhel8-power-debug-shared-cxx11-csfle-latest-replica run_on: rhel8-power-large tags: [integration, rhel8-power, linux, debug, shared, cxx11, csfle, latest, replica] @@ -4120,38 +4026,6 @@ tasks: TEST_WITH_CSFLE: "ON" example_projects_cxx_standard: 11 use_mongocryptd: true - - name: integration-rhel8-zseries-debug-shared-cxx11-csfle-extra_alignment-latest-replica - run_on: rhel8-zseries-large - tags: [integration, rhel8-zseries, linux, debug, shared, cxx11, csfle, extra_alignment, latest, replica] - patchable: false - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - REQUIRED_CXX_STANDARD: 11 - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - REQUIRED_CXX_STANDARD: 11 - TEST_WITH_CSFLE: "ON" - example_projects_cxx_standard: 11 - name: integration-rhel8-zseries-debug-shared-cxx11-csfle-latest-replica run_on: rhel8-zseries-large tags: [integration, rhel8-zseries, linux, debug, shared, cxx11, csfle, latest, replica] @@ -5269,37 +5143,6 @@ tasks: REQUIRED_CXX_STANDARD: 11 TEST_WITH_CSFLE: "ON" example_projects_cxx_standard: 11 - - name: integration-rhel80-debug-shared-cxx11-csfle-extra_alignment-latest-replica - run_on: rhel80-large - tags: [integration, rhel80, linux, debug, shared, cxx11, csfle, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - REQUIRED_CXX_STANDARD: 11 - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - REQUIRED_CXX_STANDARD: 11 - TEST_WITH_CSFLE: "ON" - example_projects_cxx_standard: 11 - name: integration-rhel80-debug-shared-cxx11-csfle-latest-replica run_on: rhel80-large tags: [integration, rhel80, linux, debug, shared, cxx11, csfle, latest, replica] @@ -10150,37 +9993,6 @@ tasks: REQUIRED_CXX_STANDARD: 11 TEST_WITH_CSFLE: "ON" example_projects_cxx_standard: 11 - - name: integration-ubuntu2004-arm64-debug-shared-cxx11-csfle-extra_alignment-latest-replica - run_on: ubuntu2004-arm64-large - tags: [integration, ubuntu2004-arm64, linux, debug, shared, cxx11, csfle, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - REQUIRED_CXX_STANDARD: 11 - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - REQUIRED_CXX_STANDARD: 11 - TEST_WITH_CSFLE: "ON" - example_projects_cxx_standard: 11 - name: integration-ubuntu2004-arm64-debug-shared-cxx11-csfle-latest-replica run_on: ubuntu2004-arm64-large tags: [integration, ubuntu2004-arm64, linux, debug, shared, cxx11, csfle, latest, replica] @@ -13801,39 +13613,6 @@ tasks: REQUIRED_CXX_STANDARD: 11 TEST_WITH_CSFLE: "ON" example_projects_cxx_standard: 11 - - name: integration-windows-2019-vs2022-x64-debug-shared-cxx11-csfle-extra_alignment-latest-replica - run_on: windows-vsCurrent-large - tags: [integration, windows-vsCurrent, windows, debug, shared, cxx11, csfle, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: generator, value: Visual Studio 17 2022 } - - { key: platform, value: x64 } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - REQUIRED_CXX_STANDARD: 11 - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - REQUIRED_CXX_STANDARD: 11 - TEST_WITH_CSFLE: "ON" - example_projects_cxx_standard: 11 - name: integration-windows-2019-vs2022-x64-debug-shared-cxx11-csfle-latest-replica run_on: windows-vsCurrent-large tags: [integration, windows-vsCurrent, windows, debug, shared, cxx11, csfle, latest, replica] @@ -14833,9 +14612,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-4.0-replica + - name: sanitizers-asan-rhel80-clang-shared-latest-replica run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, "4.0", replica] + tags: [sanitizers, asan, rhel80, clang, shared, latest, replica] commands: - command: expansions.update params: @@ -14847,16 +14626,15 @@ tasks: - func: start_mongod vars: TOPOLOGY: replica_set - mongodb_version: "4.0" + mongodb_version: latest - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -14868,9 +14646,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-4.0-sharded + - name: sanitizers-asan-rhel80-clang-shared-latest-sharded run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, "4.0", sharded] + tags: [sanitizers, asan, rhel80, clang, shared, latest, sharded] commands: - command: expansions.update params: @@ -14882,16 +14660,15 @@ tasks: - func: start_mongod vars: TOPOLOGY: sharded_cluster - mongodb_version: "4.0" + mongodb_version: latest - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -14903,9 +14680,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-4.0-single + - name: sanitizers-asan-rhel80-clang-shared-latest-single run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, "4.0", single] + tags: [sanitizers, asan, rhel80, clang, shared, latest, single] commands: - command: expansions.update params: @@ -14916,16 +14693,15 @@ tasks: - func: setup - func: start_mongod vars: - mongodb_version: "4.0" + mongodb_version: latest - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -14937,9 +14713,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-8.0-replica + - name: sanitizers-asan-rhel80-clang-static-4.0-replica run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, "8.0", replica] + tags: [sanitizers, asan, rhel80, clang, static, "4.0", replica] commands: - command: expansions.update params: @@ -14947,20 +14723,20 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: TOPOLOGY: replica_set - mongodb_version: "8.0" + mongodb_version: "4.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -14972,9 +14748,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-8.0-sharded + - name: sanitizers-asan-rhel80-clang-static-4.0-sharded run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, "8.0", sharded] + tags: [sanitizers, asan, rhel80, clang, static, "4.0", sharded] commands: - command: expansions.update params: @@ -14982,20 +14758,20 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: TOPOLOGY: sharded_cluster - mongodb_version: "8.0" + mongodb_version: "4.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -15007,9 +14783,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-8.0-single + - name: sanitizers-asan-rhel80-clang-static-4.0-single run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, "8.0", single] + tags: [sanitizers, asan, rhel80, clang, static, "4.0", single] commands: - command: expansions.update params: @@ -15017,19 +14793,19 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: - mongodb_version: "8.0" + mongodb_version: "4.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -15041,9 +14817,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-latest-replica + - name: sanitizers-asan-rhel80-clang-static-8.0-replica run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, latest, replica] + tags: [sanitizers, asan, rhel80, clang, static, "8.0", replica] commands: - command: expansions.update params: @@ -15051,20 +14827,20 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: TOPOLOGY: replica_set - mongodb_version: latest + mongodb_version: "8.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -15076,9 +14852,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-latest-sharded + - name: sanitizers-asan-rhel80-clang-static-8.0-sharded run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, latest, sharded] + tags: [sanitizers, asan, rhel80, clang, static, "8.0", sharded] commands: - command: expansions.update params: @@ -15086,20 +14862,20 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: TOPOLOGY: sharded_cluster - mongodb_version: latest + mongodb_version: "8.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -15111,9 +14887,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-extra_alignment-latest-single + - name: sanitizers-asan-rhel80-clang-static-8.0-single run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, extra_alignment, latest, single] + tags: [sanitizers, asan, rhel80, clang, static, "8.0", single] commands: - command: expansions.update params: @@ -15121,19 +14897,19 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: - mongodb_version: latest + mongodb_version: "8.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers @@ -15145,9 +14921,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-latest-replica + - name: sanitizers-asan-rhel80-clang-static-latest-replica run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, latest, replica] + tags: [sanitizers, asan, rhel80, clang, static, latest, replica] commands: - command: expansions.update params: @@ -15155,6 +14931,7 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -15179,9 +14956,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-latest-sharded + - name: sanitizers-asan-rhel80-clang-static-latest-sharded run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, latest, sharded] + tags: [sanitizers, asan, rhel80, clang, static, latest, sharded] commands: - command: expansions.update params: @@ -15189,6 +14966,7 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -15213,1257 +14991,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-shared-latest-single + - name: sanitizers-asan-rhel80-clang-static-latest-single run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, shared, latest, single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - mongodb_version: latest - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-4.0-replica - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, "4.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "4.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-4.0-sharded - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, "4.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "4.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-4.0-single - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, "4.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - mongodb_version: "4.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-8.0-replica - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, "8.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "8.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-8.0-sharded - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, "8.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "8.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-8.0-single - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, "8.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - mongodb_version: "8.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-4.0-replica - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, "4.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-4.0-sharded - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, "4.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-4.0-single - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, "4.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-8.0-replica - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, "8.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-8.0-sharded - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, "8.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-8.0-single - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, "8.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-latest-replica - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-latest-sharded - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, latest, sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-extra_alignment-latest-single - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, extra_alignment, latest, single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-latest-replica - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-latest-sharded - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, latest, sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: latest - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-asan-rhel80-clang-static-latest-single - run_on: rhel80-large - tags: [sanitizers, asan, rhel80, clang, static, latest, single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - - func: setup - - func: start_mongod - vars: - mongodb_version: latest - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_ASAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_ASAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=address - - name: sanitizers-ubsan-rhel80-clang-shared-4.0-replica - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, "4.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "4.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-4.0-sharded - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, "4.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "4.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-4.0-single - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, "4.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - mongodb_version: "4.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-8.0-replica - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, "8.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "8.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-8.0-sharded - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, "8.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "8.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-8.0-single - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, "8.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - mongodb_version: "8.0" - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-4.0-replica - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, "4.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-4.0-sharded - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, "4.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-4.0-single - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, "4.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-8.0-replica - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, "8.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-8.0-sharded - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, "8.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-8.0-single - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, "8.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-latest-replica - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-latest-sharded - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, latest, sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-extra_alignment-latest-single - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, extra_alignment, latest, single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-latest-replica - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-latest-sharded - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, latest, sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: latest - - func: install_c_driver - vars: - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - ENABLE_TESTS: "ON" - RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_UBSAN: "ON" - example_projects_cc: clang - example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-shared-latest-single - run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, shared, latest, single] + tags: [sanitizers, asan, rhel80, clang, static, latest, single] commands: - command: expansions.update params: @@ -16471,6 +15001,7 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } + - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -16483,20 +15014,20 @@ tasks: vars: ENABLE_TESTS: "ON" RUN_DISTCHECK: 1 - USE_SANITIZER_UBSAN: "ON" + USE_SANITIZER_ASAN: "ON" - func: fetch-det - func: run_kms_servers - func: test vars: MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_UBSAN: "ON" + TEST_WITH_ASAN: "ON" example_projects_cc: clang example_projects_cxx: clang++ - example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined - - name: sanitizers-ubsan-rhel80-clang-static-4.0-replica + example_projects_cxxflags: -fsanitize=address -fno-omit-frame-pointer + example_projects_ldflags: -fsanitize=address + - name: sanitizers-ubsan-rhel80-clang-shared-4.0-replica run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, "4.0", replica] + tags: [sanitizers, ubsan, rhel80, clang, shared, "4.0", replica] commands: - command: expansions.update params: @@ -16504,7 +15035,6 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -16528,10 +15058,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-4.0-sharded + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-4.0-sharded run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, "4.0", sharded] + tags: [sanitizers, ubsan, rhel80, clang, shared, "4.0", sharded] commands: - command: expansions.update params: @@ -16539,7 +15069,6 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -16563,10 +15092,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-4.0-single + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-4.0-single run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, "4.0", single] + tags: [sanitizers, ubsan, rhel80, clang, shared, "4.0", single] commands: - command: expansions.update params: @@ -16574,7 +15103,6 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -16597,10 +15125,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-8.0-replica + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-8.0-replica run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, "8.0", replica] + tags: [sanitizers, ubsan, rhel80, clang, shared, "8.0", replica] commands: - command: expansions.update params: @@ -16608,7 +15136,6 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -16632,10 +15159,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-8.0-sharded + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-8.0-sharded run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, "8.0", sharded] + tags: [sanitizers, ubsan, rhel80, clang, shared, "8.0", sharded] commands: - command: expansions.update params: @@ -16643,7 +15170,6 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -16667,10 +15193,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-8.0-single + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-8.0-single run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, "8.0", single] + tags: [sanitizers, ubsan, rhel80, clang, shared, "8.0", single] commands: - command: expansions.update params: @@ -16678,7 +15204,6 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: @@ -16701,10 +15226,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-4.0-replica + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-latest-replica run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, "4.0", replica] + tags: [sanitizers, ubsan, rhel80, clang, shared, latest, replica] commands: - command: expansions.update params: @@ -16712,21 +15237,19 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: TOPOLOGY: replica_set - mongodb_version: "4.0" + mongodb_version: latest - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16737,10 +15260,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-4.0-sharded + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-latest-sharded run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, "4.0", sharded] + tags: [sanitizers, ubsan, rhel80, clang, shared, latest, sharded] commands: - command: expansions.update params: @@ -16748,21 +15271,19 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: TOPOLOGY: sharded_cluster - mongodb_version: "4.0" + mongodb_version: latest - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16773,10 +15294,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-4.0-single + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-shared-latest-single run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, "4.0", single] + tags: [sanitizers, ubsan, rhel80, clang, shared, latest, single] commands: - command: expansions.update params: @@ -16784,20 +15305,18 @@ tasks: - { key: build_type, value: Debug } - { key: cc_compiler, value: /opt/mongodbtoolchain/v4/bin/clang } - { key: cxx_compiler, value: /opt/mongodbtoolchain/v4/bin/clang++ } - - { key: USE_STATIC_LIBS, value: "1" } - func: setup - func: start_mongod vars: - mongodb_version: "4.0" + mongodb_version: latest - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16808,10 +15327,10 @@ tasks: example_projects_cc: clang example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer - example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-8.0-replica + example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined + - name: sanitizers-ubsan-rhel80-clang-static-4.0-replica run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, "8.0", replica] + tags: [sanitizers, ubsan, rhel80, clang, static, "4.0", replica] commands: - command: expansions.update params: @@ -16824,16 +15343,15 @@ tasks: - func: start_mongod vars: TOPOLOGY: replica_set - mongodb_version: "8.0" + mongodb_version: "4.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16845,9 +15363,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-8.0-sharded + - name: sanitizers-ubsan-rhel80-clang-static-4.0-sharded run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, "8.0", sharded] + tags: [sanitizers, ubsan, rhel80, clang, static, "4.0", sharded] commands: - command: expansions.update params: @@ -16860,16 +15378,15 @@ tasks: - func: start_mongod vars: TOPOLOGY: sharded_cluster - mongodb_version: "8.0" + mongodb_version: "4.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16881,9 +15398,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-8.0-single + - name: sanitizers-ubsan-rhel80-clang-static-4.0-single run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, "8.0", single] + tags: [sanitizers, ubsan, rhel80, clang, static, "4.0", single] commands: - command: expansions.update params: @@ -16895,16 +15412,15 @@ tasks: - func: setup - func: start_mongod vars: - mongodb_version: "8.0" + mongodb_version: "4.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16916,9 +15432,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-latest-replica + - name: sanitizers-ubsan-rhel80-clang-static-8.0-replica run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, latest, replica] + tags: [sanitizers, ubsan, rhel80, clang, static, "8.0", replica] commands: - command: expansions.update params: @@ -16931,16 +15447,15 @@ tasks: - func: start_mongod vars: TOPOLOGY: replica_set - mongodb_version: latest + mongodb_version: "8.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16952,9 +15467,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-latest-sharded + - name: sanitizers-ubsan-rhel80-clang-static-8.0-sharded run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, latest, sharded] + tags: [sanitizers, ubsan, rhel80, clang, static, "8.0", sharded] commands: - command: expansions.update params: @@ -16967,16 +15482,15 @@ tasks: - func: start_mongod vars: TOPOLOGY: sharded_cluster - mongodb_version: latest + mongodb_version: "8.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -16988,9 +15502,9 @@ tasks: example_projects_cxx: clang++ example_projects_cxxflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer example_projects_ldflags: -fsanitize=undefined -fno-sanitize-recover=undefined -static-libsan - - name: sanitizers-ubsan-rhel80-clang-static-extra_alignment-latest-single + - name: sanitizers-ubsan-rhel80-clang-static-8.0-single run_on: rhel80-large - tags: [sanitizers, ubsan, rhel80, clang, static, extra_alignment, latest, single] + tags: [sanitizers, ubsan, rhel80, clang, static, "8.0", single] commands: - command: expansions.update params: @@ -17002,16 +15516,15 @@ tasks: - func: setup - func: start_mongod vars: - mongodb_version: latest + mongodb_version: "8.0" - func: install_c_driver vars: - BSON_EXTRA_ALIGNMENT: 1 SKIP_INSTALL_LIBMONGOCRYPT: 1 - func: install-uv - func: compile vars: - BSON_EXTRA_ALIGNMENT: 1 ENABLE_TESTS: "ON" + RUN_DISTCHECK: 1 USE_SANITIZER_UBSAN: "ON" - func: fetch-det - func: run_kms_servers @@ -17539,273 +16052,6 @@ tasks: TEST_WITH_VALGRIND: "ON" disable_slow_tests: 1 use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-4.0-replica - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, "4.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-4.0-sharded - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, "4.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-4.0-single - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, "4.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - mongodb_version: "4.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-8.0-replica - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, "8.0", replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-8.0-sharded - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, "8.0", sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-8.0-single - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, "8.0", single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - mongodb_version: "8.0" - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-latest-replica - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, latest, replica] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: replica_set - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: replica - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-latest-sharded - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, latest, sharded] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - TOPOLOGY: sharded_cluster - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: sharded - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - - name: valgrind-rhel80-shared-extra_alignment-latest-single - run_on: rhel80-large - tags: [valgrind, rhel80, shared, extra_alignment, latest, single] - commands: - - command: expansions.update - params: - updates: - - { key: build_type, value: Debug } - - func: setup - - func: start_mongod - vars: - mongodb_version: latest - - func: install_c_driver - vars: - BSON_EXTRA_ALIGNMENT: 1 - SKIP_INSTALL_LIBMONGOCRYPT: 1 - - func: install-uv - - func: compile - vars: - BSON_EXTRA_ALIGNMENT: 1 - ENABLE_TESTS: "ON" - - func: fetch-det - - func: run_kms_servers - - func: test - vars: - MONGOCXX_TEST_TOPOLOGY: single - TEST_WITH_VALGRIND: "ON" - disable_slow_tests: 1 - use_mongocryptd: true - name: valgrind-rhel80-shared-latest-replica run_on: rhel80-large tags: [valgrind, rhel80, shared, latest, replica] diff --git a/.evergreen/generated_configs/variants.yml b/.evergreen/generated_configs/variants.yml index b059fa54eb..904f2f9880 100644 --- a/.evergreen/generated_configs/variants.yml +++ b/.evergreen/generated_configs/variants.yml @@ -32,26 +32,18 @@ buildvariants: display_name: Docker Build tasks: - name: .docker-build - - name: integration-matrix-extra_alignment - display_name: integration-matrix-extra_alignment - tasks: - - name: .integration .extra_alignment .rhel8-power - batchtime: 1440 - - name: .integration .extra_alignment .rhel8-zseries - batchtime: 1440 - - name: .integration .extra_alignment !.rhel8-power !.rhel8-zseries - name: integration-matrix-linux display_name: integration-matrix-linux tasks: - - name: .integration .linux !.mongocryptd !.extra_alignment .rhel8-power + - name: .integration .linux !.mongocryptd .rhel8-power batchtime: 1440 - - name: .integration .linux !.mongocryptd !.extra_alignment .rhel8-zseries + - name: .integration .linux !.mongocryptd .rhel8-zseries batchtime: 1440 - - name: .integration .linux !.mongocryptd !.extra_alignment !.rhel8-power !.rhel8-zseries + - name: .integration .linux !.mongocryptd !.rhel8-power !.rhel8-zseries - name: integration-matrix-macos display_name: integration-matrix-macos tasks: - - name: .integration .macos !.mongocryptd !.extra_alignment + - name: .integration .macos !.mongocryptd - name: integration-matrix-mongocryptd display_name: integration-matrix-mongocryptd tasks: @@ -63,7 +55,7 @@ buildvariants: - name: integration-matrix-windows display_name: integration-matrix-windows tasks: - - name: .integration .windows !.mongocryptd !.extra_alignment + - name: .integration .windows !.mongocryptd - name: lint display_name: Lint tasks: diff --git a/.evergreen/scripts/compile.sh b/.evergreen/scripts/compile.sh index 93f90e56da..46903ec487 100755 --- a/.evergreen/scripts/compile.sh +++ b/.evergreen/scripts/compile.sh @@ -15,7 +15,6 @@ set -o pipefail : "${build_type:?}" : "${distro_id:?}" # Required by find-cmake-latest.sh. -: "${BSON_EXTRA_ALIGNMENT:-}" : "${BSONCXX_POLYFILL:-}" : "${COMPILE_MACRO_GUARD_TESTS:-}" : "${ENABLE_CODE_COVERAGE:-}" @@ -256,31 +255,10 @@ if [[ "${_RUN_DISTCHECK:-}" ]]; then "${cmake_binary}" --build . --config "${build_type:?}" --target distcheck fi -# Ensure extra alignment is enabled or disabled as expected. if [[ -n "$(find "${mongoc_prefix:?}" -name 'bson-config.h')" ]]; then - if [[ "${BSON_EXTRA_ALIGNMENT:-}" == "1" ]]; then - grep -R "#define BSON_EXTRA_ALIGN 1" "${mongoc_prefix:?}" || { - echo "BSON_EXTRA_ALIGN is not 1 despite BSON_EXTRA_ALIGNMENT=1" 1>&2 - exit 1 - } - else - grep -R "#define BSON_EXTRA_ALIGN 0" "${mongoc_prefix:?}" || { - echo "BSON_EXTRA_ALIGN is not 0 despite BSON_EXTRA_ALIGNMENT=0" 1>&2 - exit 1 - } - fi + : # Used install-c-driver.sh. elif [[ -n "$(find install -name 'bson-config.h')" ]]; then - if [[ "${BSON_EXTRA_ALIGNMENT:-}" == "1" ]]; then - grep -R "#define BSON_EXTRA_ALIGN 1" install || { - echo "BSON_EXTRA_ALIGN is not 1 despite BSON_EXTRA_ALIGNMENT=1" 1>&2 - exit 1 - } - else - grep -R "#define BSON_EXTRA_ALIGN 0" install || { - echo "BSON_EXTRA_ALIGN is not 0 despite BSON_EXTRA_ALIGNMENT=0" 1>&2 - exit 1 - } - fi + : # Used auto-downloaded C Driver. else echo "unexpectedly compiled using a system libmongoc library" 1>&2 exit 1 diff --git a/.evergreen/scripts/install-c-driver.sh b/.evergreen/scripts/install-c-driver.sh index 073ffb88db..0adf2c6bf5 100755 --- a/.evergreen/scripts/install-c-driver.sh +++ b/.evergreen/scripts/install-c-driver.sh @@ -143,13 +143,6 @@ darwin*) ;; esac -if [[ "${BSON_EXTRA_ALIGNMENT:-}" == "1" ]]; then - echo "Building C Driver with ENABLE_EXTRA_ALIGNMENT=ON" - configure_flags+=("-DENABLE_EXTRA_ALIGNMENT=ON") -else - configure_flags+=("-DENABLE_EXTRA_ALIGNMENT=OFF") -fi - # Use ccache if available. if [[ -f "${mongoc_dir:?}/.evergreen/scripts/find-ccache.sh" ]]; then # shellcheck source=/dev/null