|
1 |
| -# Copyright 2022 Rainer Gerhards and Others |
| 1 | +# Copyright 2024 Rainer Gerhards and Others |
2 | 2 | #
|
3 | 3 | # https://github.com/rsyslog/rsyslog-pkg-ubuntu
|
4 | 4 | #
|
|
38 | 38 | config: [centos_7, centos_8, debian_10, debian_11,
|
39 | 39 | fedora_35, fedora_36,
|
40 | 40 | ubuntu_18, ubuntu_20, ubuntu_22,
|
| 41 | + ubuntu_24_san, ubuntu_24_tsan, |
41 | 42 | ubuntu_22_san, ubuntu_22_tsan, ubuntu_22_distcheck, ubuntu_22_codecov,
|
42 | 43 | kafka_codecov, elasticsearch]
|
43 | 44 |
|
@@ -155,6 +156,38 @@ jobs:
|
155 | 156 | --disable-omkafka --enable-debug --disable-elasticsearch \
|
156 | 157 | --disable-elasticsearch-tests"
|
157 | 158 | ;;
|
| 159 | + 'ubuntu_24_san') |
| 160 | + export CI_SANITIZE_BLACKLIST='tests/asan.supp' |
| 161 | + export RSYSLOG_DEV_CONTAINER='rsyslog/rsyslog_dev_base_ubuntu:24.04' |
| 162 | + export CC='clang' |
| 163 | + export RSYSLOG_CONFIGURE_OPTIONS_EXTRA="--disable-elasticsearch-tests \ |
| 164 | + --disable-libfaketime --without-valgrind-testbench --disable-valgrind \ |
| 165 | + --disable-kafka-tests --enable-imdtls --enable-omdtls --disable-ommongodb" |
| 166 | + export CFLAGS="-std=c11 -fstack-protector -D_FORTIFY_SOURCE=2 \ |
| 167 | + -fsanitize=address,undefined,nullability,unsigned-integer-overflow \ |
| 168 | + -fno-sanitize-recover=undefined,nullability,unsigned-integer-overflow \ |
| 169 | + -g -O3 -fno-omit-frame-pointer -fno-color-diagnostics" |
| 170 | + export LSAN_OPTIONS='detect_leaks=0' |
| 171 | + export UBSAN_OPTIONS='print_stacktrace=1' |
| 172 | + ;; |
| 173 | + 'ubuntu_24_tsan') |
| 174 | + export RSYSLOG_DEV_CONTAINER='rsyslog/rsyslog_dev_base_ubuntu:24.04' |
| 175 | + export CI_VALGRIND_SUPPRESSIONS="ubuntu22.04.supp" |
| 176 | + export CI_SANITIZE_BLACKLIST='tests/tsan.supp' |
| 177 | + export CC='clang' |
| 178 | + # impstats has known and OK races |
| 179 | + # mmpstrucdata TEMPORARILY disabled because of a threading hang on shutdown |
| 180 | + export RSYSLOG_CONFIGURE_OPTIONS_EXTRA="--disable-elasticsearch-tests --enable-imfile-tests \ |
| 181 | + --disable-impstats --disable-kafka-tests --disable-mmpstrucdata \ |
| 182 | + --disable-clickhouse --disable-clickhouse-tests --disable-kafka-tests \ |
| 183 | + --disable-libfaketime --without-valgrind-testbench --disable-valgrind \ |
| 184 | + --disable-ommongodb" |
| 185 | + export CFLAGS="-std=c11 -g -fstack-protector -D_FORTIFY_SOURCE=2 -fsanitize=thread \ |
| 186 | + -O0 -fno-omit-frame-pointer -fno-color-diagnostics" |
| 187 | + # note: we need pathes in container, thus /rsyslog vs. $(pwd) in TSAN_OPTIONS |
| 188 | + export TSAN_OPTIONS="halt_on_error=1 suppressions=/rsyslog/tests/tsan-rt.supp" |
| 189 | + export ABORT_ALL_ON_TEST_FAIL='YES' |
| 190 | + ;; |
158 | 191 | 'kafka_codecov')
|
159 | 192 | export RSYSLOG_DEV_CONTAINER='rsyslog/rsyslog_dev_base_ubuntu:22.04'
|
160 | 193 | export CI_VALGRIND_SUPPRESSIONS="ubuntu22.04.supp"
|
|
0 commit comments