Skip to content

Commit

Permalink
fix asan and tsan jobs on Drone (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras authored Jul 15, 2024
1 parent ac1a2b4 commit 3ad8ac4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ local triggers =
};

local ubsan = { UBSAN: '1', UBSAN_OPTIONS: 'print_stacktrace=1' };
local asan = { ASAN: '1', ASAN_OPTIONS: 'privileged=True' };
local tsan = { TSAN: '1', TSAN_OPTIONS: 'privileged=True' };
local asan = { ASAN: '1' };
local tsan = { TSAN: '1' };

local linux_pipeline(name, image, environment, packages = "", sources = [], arch = "amd64") =
{
Expand All @@ -30,6 +30,7 @@ local linux_pipeline(name, image, environment, packages = "", sources = [], arch
name: "everything",
image: image,
environment: environment,
privileged: true,
commands:
[
'set -e',
Expand Down
5 changes: 5 additions & 0 deletions .drone/drone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ DRONE_BUILD_DIR=$(pwd)
BOOST_BRANCH=develop
if [ "$DRONE_BRANCH" = "master" ]; then BOOST_BRANCH=master; fi

if [[ $(uname) == "Linux" && ( "$TSAN" == 1 || "$ASAN" == 1 ) ]]; then
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
sudo sysctl vm.mmap_rnd_bits=28
fi

cd ..
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
cd boost-root
Expand Down

0 comments on commit 3ad8ac4

Please sign in to comment.