Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions helpers/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,31 +652,20 @@ def wait_clickhouse_healthy(self, timeout=90, check_version=True, initial_delay=
"fsanitize=undefined": "ubsan",
}
build_option = next(
(name for flag, name in sanitizers.items() if flag in output), None
(name for flag, name in sanitizers.items() if flag in output), {}
)
current().context.build_options = getattr(
current().context, "build_options", {}
)
current().context.build_options[self.name] = build_option

query = (
"SELECT * FROM system.build_options "
"WHERE name = 'CXX_FLAGS' FORMAT TabSeparated"
)
output = self.query(query, no_checks=1, steps=False).output
sanitizers = {
"fsanitize=thread": "tsan",
"fsanitize=memory": "msan",
"fsanitize=address": "asan",
"fsanitize=undefined": "ubsan",
}
build_option = next(
(name for flag, name in sanitizers.items() if flag in output), None
)
current().context.build_options = getattr(
current().context, "build_options", {}
)
current().context.build_options[self.name] = build_option
git_branch = self.query(
"SELECT value FROM system.build_options WHERE name = 'GIT_BRANCH' FORMAT TabSeparated",
no_checks=1,
steps=False,
).output.strip()

current().context.build_options[self.name]["git_branch"] = git_branch

def clickhouse_pid(self):
"""
Expand Down
17 changes: 17 additions & 0 deletions version/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,23 @@
check_clickhouse_version("<25.3"),
),
],
"/version/altinity/error message/": [
(
Fail,
"Not expected to pass on PR builds",
lambda test: test.context.build_options["clickhouse1"]["git_branch"]
== "HEAD",
".*Expected message '\(altinity build\)' not found in log.*",
),
],
"/version/altinity/version format/": [
(
Fail,
"Not expected to pass on PR builds",
lambda test: test.context.build_options["clickhouse1"]["git_branch"]
== "HEAD",
),
],
}


Expand Down
Loading