run ASAN within the non-voting VPP debug verify job 81/30281/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 4 Dec 2020 15:25:45 +0000 (15:25 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 4 Dec 2020 19:47:47 +0000 (19:47 +0000)
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 <ayourtch@gmail.com>
Change-Id: If086907d1f20e99503aa0e811fd2ae95c168d731

jjb/scripts/vpp/debug-build.sh
jjb/vpp/vpp.yaml

index e7f1852..a988734 100644 (file)
@@ -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
index e911264..900bf55 100644 (file)
           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