From 868d7eb764156c882b7b8a69a45db917290466ae Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Fri, 4 Dec 2020 15:25:45 +0000 Subject: run ASAN within the non-voting VPP debug verify job Address sanitizer catches a wide range of failures like buffer overruns, etc. So makes sense to run it during the debug test run. However, it is a bit picky to the compiler - currently it only works well only on GCC 8+, so this patch accounts for that by moving the job to 20.04 executor which has gcc-9 by default. Thanks to Benoit for the help getting it working. Signed-off-by: Andrew Yourtchenko Change-Id: If086907d1f20e99503aa0e811fd2ae95c168d731 --- jjb/scripts/vpp/debug-build.sh | 6 +++--- jjb/vpp/vpp.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jjb/scripts/vpp/debug-build.sh b/jjb/scripts/vpp/debug-build.sh index e7f185218..a9887340d 100644 --- a/jjb/scripts/vpp/debug-build.sh +++ b/jjb/scripts/vpp/debug-build.sh @@ -25,11 +25,11 @@ echo "sha1sum of this script: ${0}" sha1sum $0 # run with ASAN on -# export VPP_EXTRA_CMAKE_ARGS='-DVPP_ENABLE_SANITIZE_ADDR=ON' +export VPP_EXTRA_CMAKE_ARGS='-DVPP_ENABLE_SANITIZE_ADDR=ON' # clang is not working with ASAN right now - see change 27268 -# apparently gcc neither... -# export CC=gcc +# also, it does not work with gcc-7, we need gcc-8 at least +# on ubuntu 20.04 executor the gcc is gcc9 make UNATTENDED=yes install-dep make UNATTENDED=yes install-ext-deps diff --git a/jjb/vpp/vpp.yaml b/jjb/vpp/vpp.yaml index e9112643b..900bf55e0 100644 --- a/jjb/vpp/vpp.yaml +++ b/jjb/vpp/vpp.yaml @@ -168,8 +168,8 @@ repo-stream-part: 'stable.2009' branch-head-refspec: '' os: - - ubuntu1804: - repo-os-part: 'ubuntu.bionic.main' + - ubuntu2004: + repo-os-part: 'ubuntu.focal.main' executor-arch: 'x86_64' # [end] VPP-DEBUG-X86_64 PROJECT -- cgit 1.2.3-korg