-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanitizers.yml
131 lines (127 loc) · 5.15 KB
/
sanitizers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
steps:
- command: |
echo "--- :hammer: Building with Undefined Sanitizer" && \
/usr/bin/cmake -GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=clang++-4.0 \
-DCMAKE_C_COMPILER=clang-4.0 \
-DBOOST_ROOT="${BOOST_ROOT}" \
-DWASM_ROOT="${WASM_ROOT}" \
-DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" \
-DBUILD_MONGO_DB_PLUGIN=true \
-DENABLE_COVERAGE_TESTING=true\
-DBUILD_DOXYGEN=false -DCMAKE_CXX_FLAGS="-fsanitize=undefined -fsanitize-recover=all -g -fno-omit-frame-pointer" \
-DCMAKE_C_FLAGS="-fsanitize=undefined -fsanitize-recover=all -g -fno-omit-frame-pointer" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=undefined -fsanitize-recover=all -rtlib=compiler-rt -lgcc_s -pthread" \
-DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=undefined -fsanitize-recover=all -rtlib=compiler-rt -lgcc_s -pthread" && \
echo "--- :shinto_shrine: Running ninja" && \
/usr/bin/ninja | tee ninja.log && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz *
echo "--- :beers: Done"
label: ":_: Undefined Sanitizer"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "build.tar.gz"
- "ninja.log"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
command: ["--privileged"]
workdir: /data/job
mounts:
- /etc/buildkite-agent/config:/config
environment:
- BOOST_ROOT=/root/opt/boost
- OPENSSL_ROOT_DIR=/usr/include/openssl
- WASM_ROOT=/root/opt/wasm
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/opt/wasm/bin
- CI=true
- UBSAN_OPTIONS=print_stacktrace=1
timeout: 60
- command: |
echo "--- :hammer: Building with Address Sanitizer" && \
/usr/bin/cmake -GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=clang++-4.0 \
-DCMAKE_C_COMPILER=clang-4.0 \
-DBOOST_ROOT="${BOOST_ROOT}" \
-DWASM_ROOT="${WASM_ROOT}" \
-DOPENSSL_ROOT_DIR="${OPENSSL_ROOT_DIR}" \
-DBUILD_MONGO_DB_PLUGIN=true \
-DENABLE_COVERAGE_TESTING=true \
-DBUILD_DOXYGEN=false \
-DCMAKE_CXX_FLAGS="-fsanitize=address -fsanitize-recover=all -O1 -g -fno-omit-frame-pointer" \
-DCMAKE_C_FLAGS="-fsanitize=address -fsanitize-recover=all -O1 -g -fno-omit-frame-pointer" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address -fsanitize-recover=all -rtlib=compiler-rt -lgcc_s" \
-DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address -fsanitize-recover=all -rtlib=compiler-rt -lgcc_s"
echo "--- :shinto_shrine: Running ninja" && \
/usr/bin/ninja | tee ninja.log && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz *
echo "--- :beers: Done"
label: ":_: Address Sanitizer"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "build.tar.gz"
- "ninja.log"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
command: ["--privileged"]
workdir: /data/job
mounts:
- /etc/buildkite-agent/config:/config
environment:
- BOOST_ROOT=/root/opt/boost
- OPENSSL_ROOT_DIR=/usr/include/openssl
- WASM_ROOT=/root/opt/wasm
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/opt/wasm/bin
- CI=true
- ASAN_OPTIONS=fast_unwind_on_malloc=0:halt_on_error=0:detect_odr_violation=0:detect_leaks=0:symbolize=1:verbosity=1
timeout: 60
- wait
- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":_: Undefined Sanitizer" && \
tar -zxf build.tar.gz --no-same-owner && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
ctest -j8 -LE _tests -V -O sanitizer.log || true
label: ":_: Undefined Sanitizer Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "sanitizer.log"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
workdir: /data/job
mounts:
- /etc/buildkite-agent/config:/config
timeout: 120
- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":_: Address Sanitizer" && \
tar -zxf build.tar.gz --no-same-owner && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
ctest -j8 -LE _tests -V -O sanitizer.log || true
label: ":_: Address Sanitizer Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "sanitizer.log"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
workdir: /data/job
mounts:
- /etc/buildkite-agent/config:/config
timeout: 120