[ci] add docker-sonic-vs with ASAN build (#11297)
The asan-enabled docker image will be used in other CIs that run DVS tests. Why I did it To add a possibility to run DVS tests with ASAN for other CIs (e.g. swss). How I did it Added the 'asan_image' flag to the vs job group. How to verify it Run the CI and check the docker-sonic-vs-asan.gz artifact.
This commit is contained in:
parent
0bc054e308
commit
fd287b7d24
@ -30,6 +30,7 @@ jobs:
|
|||||||
BUILD_OPTIONS: ${{ parameters.buildOptions }}
|
BUILD_OPTIONS: ${{ parameters.buildOptions }}
|
||||||
DOCKER_DATA_ROOT_FOR_MULTIARCH: /data/march/docker
|
DOCKER_DATA_ROOT_FOR_MULTIARCH: /data/march/docker
|
||||||
dbg_image: no
|
dbg_image: no
|
||||||
|
asan_image: no
|
||||||
swi_image: no
|
swi_image: no
|
||||||
raw_image: no
|
raw_image: no
|
||||||
docker_syncd_rpc_image: no
|
docker_syncd_rpc_image: no
|
||||||
@ -42,6 +43,7 @@ jobs:
|
|||||||
- name: vs
|
- name: vs
|
||||||
variables:
|
variables:
|
||||||
dbg_image: yes
|
dbg_image: yes
|
||||||
|
asan_image: yes
|
||||||
|
|
||||||
- name: barefoot
|
- name: barefoot
|
||||||
variables:
|
variables:
|
||||||
@ -106,6 +108,10 @@ jobs:
|
|||||||
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz
|
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz
|
||||||
mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
|
mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
|
||||||
fi
|
fi
|
||||||
|
if [ $(asan_image) == yes ]; then
|
||||||
|
make $BUILD_OPTIONS ENABLE_ASAN=y target/docker-sonic-vs.gz
|
||||||
|
mv target/docker-sonic-vs.gz target/docker-sonic-vs-asan.gz
|
||||||
|
fi
|
||||||
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
|
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
|
||||||
if [ $(Build.Reason) != 'PullRequest' ];then
|
if [ $(Build.Reason) != 'PullRequest' ];then
|
||||||
gzip -kd target/sonic-vs.img.gz
|
gzip -kd target/sonic-vs.img.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user