Use latest cmake for ASAN configuration
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 6 Sep 2021 09:24:00 +0000 (09:24 +0000)
committerJoe Jordan <ejjordan12@gmail.com>
Mon, 6 Sep 2021 09:24:00 +0000 (09:24 +0000)
admin/containers/utility.py
admin/gitlab-ci/gromacs.matrix/gromacs.clang-ASAN.gitlab-ci.yml
cmake/with_asan_opts.sh

index 55f620ee90f4e3316c95c92c52e716bef7ddaf56..9ae31996817f03407230b70ede2844d6d0f500df 100644 (file)
@@ -86,7 +86,7 @@ parsers for tools.
     Instead, inherit from it with the *parents* argument to :py:class:`argparse.ArgumentParser`
 """
 
-parser.add_argument('--cmake', nargs='*', type=str, default=['3.16.3', '3.17.2', '3.18.4'], # new minimum required versions
+parser.add_argument('--cmake', nargs='*', type=str, default=['3.16.3', '3.17.2', '3.18.4', '3.21.2'], # new minimum required versions
                     help='Selection of CMake version to provide to base image')
 
 compiler_group = parser.add_mutually_exclusive_group()
index 96eb110abeaa8c9e511fab215521177f41e3f264..3b2188401b6e1269224640ce03d5148844747abf 100644 (file)
@@ -20,7 +20,7 @@ gromacs:clang-ASAN:configure:
     - .rules:merge-requests
   image: ${CI_REGISTRY}/gromacs/gromacs/ci-ubuntu-20.04-llvm-11-tsan
   variables:
-    CMAKE: /usr/local/cmake-3.18.4/bin/cmake
+    CMAKE: /usr/local/cmake-3.21.2/bin/cmake
     COMPILER_MAJOR_VERSION: 11
     CMAKE_BUILD_TYPE_OPTIONS: "-DCMAKE_BUILD_TYPE=ASAN"
 
@@ -33,7 +33,7 @@ gromacs:clang-ASAN:build:
     - .rules:merge-requests
   image: ${CI_REGISTRY}/gromacs/gromacs/ci-ubuntu-20.04-llvm-11-tsan
   variables:
-    CMAKE: /usr/local/cmake-3.18.4/bin/cmake
+    CMAKE: /usr/local/cmake-3.21.2/bin/cmake
   tags:
     - k8s-scilifelab
   needs:
@@ -46,12 +46,17 @@ gromacs:clang-ASAN:test:
     - .rules:merge-requests
   image: ${CI_REGISTRY}/gromacs/gromacs/ci-ubuntu-20.04-llvm-11-tsan
   variables:
-    CMAKE: /usr/local/cmake-3.18.4/bin/cmake
+    CMAKE: /usr/local/cmake-3.21.2/bin/cmake
     CTEST_RUN_MODE: "ExperimentalMemCheck"
   tags:
     - k8s-scilifelab
   needs:
     - job: gromacs:clang-ASAN:build
+  after_script:
+    - for file in $(compgen -G "build/Testing/Temporary/MemoryChecker*log") ; do
+      echo Error log file for ASAN via ctest $file ;
+      cat $file ;
+      done
 
 gromacs:clang-ASAN:regressiontest:
   extends:
@@ -60,7 +65,7 @@ gromacs:clang-ASAN:regressiontest:
     - .rules:merge-requests
   image: ${CI_REGISTRY}/gromacs/gromacs/ci-ubuntu-20.04-llvm-11-tsan
   variables:
-    CMAKE: /usr/local/cmake-3.18.4/bin/cmake
+    CMAKE: /usr/local/cmake-3.21.2/bin/cmake
   tags:
     - k8s-scilifelab
   needs:
index 283368c93d1f65d871e91755619749be588893cc..4dee71cfc8ee9320888939834bddd1fbbe81428c 100755 (executable)
@@ -37,16 +37,6 @@ while [[ "$1" != "--" ]] ; do
     extra_opts="$extra_opts $1"
     shift
 done
-for opt in $ASAN_OPTIONS ; do
-    if [[ "$opt" == log_path=* ]] ; then
-        # CTest gives errors if the file does not exist, but AddressSanitizer
-        # only produces it if it finds issues...
-        log_path="${opt#log_path=}"
-        log_path="${log_path%\"}"
-        log_path="${log_path#\"}"
-        touch ${log_path}.99999
-    fi
-done
 # Suppressions are not currently necessary, but can be introduced like this.
 #path=`dirname $0`
 #export LSAN_OPTIONS="suppressions=$path/../admin/lsan-suppressions.txt"