From dad3412826a5c0bc89adeded67c69ab1647b401d Mon Sep 17 00:00:00 2001 From: Dmitry Fedoseev Date: Thu, 25 Jun 2026 17:12:45 +0300 Subject: [PATCH] Disable system checks by default in cbuilder base_config Set `config.checks` to `'off'` in `base_config` to avoid environment-dependent alerts (THP, readahead) in tests that use cbuilder. --- luatest/cbuilder.lua | 10 ++++++++++ test/cbuilder_test.lua | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/luatest/cbuilder.lua b/luatest/cbuilder.lua index 406c6ff..7f549be 100644 --- a/luatest/cbuilder.lua +++ b/luatest/cbuilder.lua @@ -97,6 +97,16 @@ local base_config = { -- by half for my test. timeout = 0.1, }, + -- Disable system checks by default in tests to avoid + -- environment-dependent alerts (THP, readahead, etc.). + conditional = { + { + ['if'] = 'tarantool_version >= 3.8.0', + config = { + checks = 'off', + }, + }, + }, } function Builder:inherit(object) diff --git a/test/cbuilder_test.lua b/test/cbuilder_test.lua index 2324225..ccf586b 100644 --- a/test/cbuilder_test.lua +++ b/test/cbuilder_test.lua @@ -15,6 +15,14 @@ local DEFAULT_CONFIG = { listen = {{uri = 'unix/:./{{ instance_name }}.iproto'}}, }, replication = {timeout = 0.1}, + conditional = { + { + ['if'] = 'tarantool_version >= 3.8.0', + config = { + checks = 'off', + }, + }, + }, } local function merge_config(base, diff)