forked from ornladios/ADIOS2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ornladios#4424 from vicentebolea/ci-circle-update
ci: rehaul sanitizer builds
- Loading branch information
Showing
24 changed files
with
222 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Client maintainer: [email protected] | ||
# Client maintainer: [email protected] | ||
|
||
set(ENV{CC} clang) | ||
set(ENV{CXX} clang++) | ||
|
||
set(dashboard_cache " | ||
BUILD_TESTING:BOOL=ON | ||
|
@@ -19,8 +22,11 @@ set(CTEST_CMAKE_GENERATOR "Ninja") | |
set(CTEST_MEMORYCHECK_TYPE "MemorySanitizer") | ||
|
||
list(APPEND EXCLUDE_EXPRESSIONS | ||
"Engine.BP.BPBufferSizeTest.SyncDeferredIdenticalUsage.BP3.Serial" | ||
"Engine.BP.BPBufferSizeTest.SyncDeferredIdenticalUsage.BP4.Serial" | ||
"Install.*" | ||
"Staging.1x1DefSync.BP3" | ||
"Engine.DataMan.DataManEngineTest" | ||
"Unit.FileTransport.FailOnEOF.Serial" | ||
"Engine.BP.BPBufferSizeTest.SyncDeferredIdenticalUsage.*.Serial" | ||
) | ||
list(JOIN EXCLUDE_EXPRESSIONS "|" TEST_EXCLUDE_STRING) | ||
set(CTEST_MEMCHECK_ARGS EXCLUDE "${TEST_EXCLUDE_STRING}") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# This script is used to build the openSUSE Tumbleweed images | ||
|
||
set -xeuo pipefail | ||
|
||
declare -r DOCKER_REPOSITORY=ghcr.io/ornladios/adios2 | ||
declare -u ENABLE_PUSH= | ||
|
||
#============================================================================= | ||
# Functions | ||
|
||
# Function to build a docker image | ||
function docker_build() { | ||
local docker_file=$1 | ||
local docker_tag=$2 | ||
local args=(--progress=plain --rm) | ||
|
||
if [[ -n "${ENABLE_PUSH}" ]]; then | ||
args+=("--push") | ||
fi | ||
|
||
sudo docker build "${args[@]}" \ | ||
--file "${docker_file}" \ | ||
--tag "${DOCKER_REPOSITORY}:${docker_tag}-$(date +"%Y%m%d")" \ | ||
. | ||
} | ||
|
||
function usage() { | ||
echo "Usage: $0 [-p <PROJECT>] [-m <MILESTONE>]" | ||
echo " -p Push to the docker registry" | ||
exit 0 | ||
} | ||
|
||
#============================================================================= | ||
# Main | ||
while getopts "p" o; do | ||
case "${o}" in | ||
p) ENABLE_PUSH=true ;; | ||
*) usage ;; | ||
esac | ||
done | ||
|
||
docker_build opensuse-tw-sanitizer-base.dockerfile ci-opensuse-tw-sanitizer-base | ||
docker_build opensuse-tw-full-stack-onbuild.dockerfile ci-opensuse-tw-full-stack-onbuild | ||
docker_build opensuse-tw-asan.dockerfile ci-opensuse-tw-asan | ||
docker_build opensuse-tw-msan.dockerfile ci-opensuse-tw-msan | ||
docker_build opensuse-tw-tsan.dockerfile ci-opensuse-tw-tsan | ||
docker_build opensuse-tw-ubsan.dockerfile ci-opensuse-tw-ubsan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ghcr.io/ornladios/adios2:ci-opensuse-tw-sanitizer-base | ||
|
||
# Install core dev packages | ||
RUN zypper install -y --no-recommends libasan8 hdf5-devel && \ | ||
zypper clean --all | ||
|
||
# Install ZFP | ||
WORKDIR /opt/zfp | ||
RUN curl -L https://github.com/LLNL/zfp/releases/download/0.5.5/zfp-0.5.5.tar.gz | tar -xvz && \ | ||
cmake -GNinja -S zfp-0.5.5 -B build \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=/opt/zfp/0.5.5 \ | ||
&& \ | ||
cmake --build build && \ | ||
cmake --install build && \ | ||
rm -rf zfp-0.5.5 build | ||
ENV PATH=/opt/zfp/0.5.5/bin:${PATH} \ | ||
LD_LIBRARY_PATH=/opt/zfp/0.5.5/lib64:${LD_LIBRARY_PATH} \ | ||
CMAKE_PREFIX_PATH=/opt/zfp/0.5.5:${CMAKE_PREFIX_PATH} |
Oops, something went wrong.