From 2d1da0989b1234b9b0ce913a778322b31e8b77a1 Mon Sep 17 00:00:00 2001 From: Phong Tran Date: Thu, 20 Jul 2023 18:00:15 +0200 Subject: [PATCH 1/5] iox-#1547 Set posh_integrationtests timeout to long --- iceoryx_posh/test/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/iceoryx_posh/test/BUILD.bazel b/iceoryx_posh/test/BUILD.bazel index 193d6739f2..d11ab33c75 100644 --- a/iceoryx_posh/test/BUILD.bazel +++ b/iceoryx_posh/test/BUILD.bazel @@ -53,6 +53,7 @@ cc_test( cc_test( name = "posh_integrationtests", + timeout = "long", srcs = glob([ "integrationtests/*.cpp", "integrationtests/*.hpp", From 7da995e9b587f118fa622e9199bece4f494c0c43 Mon Sep 17 00:00:00 2001 From: Phong Tran Date: Sat, 15 Jul 2023 10:37:41 +0200 Subject: [PATCH 2/5] iox-#1547 Add bazel asan build config --- .bazelrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bazelrc b/.bazelrc index ebc4d85bdc..111f3eb2a2 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,3 +4,12 @@ build --cxxopt="-std=c++14" build:clang --action_env=BAZEL_COMPILER=clang build:clang --action_env=CC=clang --action_env=CXX=clang++ build:clang --linkopt=-fuse-ld=lld + +# asan gcc +build:asan --cxxopt="-fsanitize=address" +build:asan --cxxopt="-fno-omit-frame-pointer" +build:asan --cxxopt="-g" --cxxopt="-O2" --strip=never +build:asan --linkopt="-fsanitize=address" + +# asan clang +build:clang_asan --config=clang --config=asan From b3788239e81ac347592e5149518d97d3e0154a6d Mon Sep 17 00:00:00 2001 From: Phong Tran Date: Fri, 21 Jul 2023 20:53:59 +0200 Subject: [PATCH 3/5] iox-#1547 Add bazel usan build config --- .bazelrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bazelrc b/.bazelrc index 111f3eb2a2..c3ca9c29fe 100644 --- a/.bazelrc +++ b/.bazelrc @@ -13,3 +13,12 @@ build:asan --linkopt="-fsanitize=address" # asan clang build:clang_asan --config=clang --config=asan + +# usan gcc +build:usan --cxxopt="-fsanitize=undefined" +build:usan --cxxopt="-fno-omit-frame-pointer" +build:usan --cxxopt="-g" --cxxopt="-O2" --strip=never +build:usan --linkopt="-fsanitize=undefined" + +# usan clang +build:clang_usan --config=clang --config=usan From b60296a2ce1a93e4be1ded4ca3281b3e61e84004 Mon Sep 17 00:00:00 2001 From: Phong Tran Date: Fri, 21 Jul 2023 20:51:03 +0200 Subject: [PATCH 4/5] iox-#1547 Add bazel tsan build config --- .bazelrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bazelrc b/.bazelrc index c3ca9c29fe..3069ddafe9 100644 --- a/.bazelrc +++ b/.bazelrc @@ -22,3 +22,12 @@ build:usan --linkopt="-fsanitize=undefined" # usan clang build:clang_usan --config=clang --config=usan + +# tsan gcc +build:tsan --cxxopt="-fsanitize=thread" +build:tsan --cxxopt="-fno-omit-frame-pointer" +build:tsan --cxxopt="-g" --cxxopt="-O2" --strip=never +build:tsan --linkopt="-fsanitize=thread" + +# tsan clang +build:clang_tsan --config=clang --config=tsan From d13ce563c747c083c8f7e9b8646f2c23e67c51d5 Mon Sep 17 00:00:00 2001 From: Phong Tran Date: Thu, 20 Jul 2023 18:54:20 +0200 Subject: [PATCH 5/5] iox-#1547 Update changelog --- doc/website/release-notes/iceoryx-unreleased.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/website/release-notes/iceoryx-unreleased.md b/doc/website/release-notes/iceoryx-unreleased.md index 5d566d2957..c7ecb45bec 100644 --- a/doc/website/release-notes/iceoryx-unreleased.md +++ b/doc/website/release-notes/iceoryx-unreleased.md @@ -6,6 +6,7 @@ **Features:** +- Add bazel asan, usan, tsan build config [#1547](https://github.com/eclipse-iceoryx/iceoryx/issues/1547) - Add bazel clang build config [#1998](https://github.com/eclipse-iceoryx/iceoryx/issues/1998) - Add `command_line.hpp` which contains a macro builder to parse command line arguments quickly and safely [#1067](https://github.com/eclipse-iceoryx/iceoryx/issues/1067) - optional inherits from FunctionalInterface, adds .expect() method [\#996](https://github.com/eclipse-iceoryx/iceoryx/issues/996)