diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-12-04 15:25:45 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-12-04 19:47:47 +0000 |
commit | 868d7eb764156c882b7b8a69a45db917290466ae (patch) | |
tree | 40e408a9be85e8c4742f6c1e976f5a85afaa1344 /jjb | |
parent | 1c01372a3ddefe84ea755c17347e4ca760af9c1b (diff) |
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 <ayourtch@gmail.com>
Change-Id: If086907d1f20e99503aa0e811fd2ae95c168d731
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/scripts/vpp/debug-build.sh | 6 | ||||
-rw-r--r-- | 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 |