Skip to content

Commit 1568667

Browse files
authored
[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.
1 parent 23d6888 commit 1568667

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.azure-pipelines/azure-pipelines-build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
BUILD_OPTIONS: ${{ parameters.buildOptions }}
3131
DOCKER_DATA_ROOT_FOR_MULTIARCH: /data/march/docker
3232
dbg_image: no
33+
asan_image: no
3334
swi_image: no
3435
raw_image: no
3536
docker_syncd_rpc_image: no
@@ -42,6 +43,7 @@ jobs:
4243
- name: vs
4344
variables:
4445
dbg_image: yes
46+
asan_image: yes
4547

4648
- name: barefoot
4749
variables:
@@ -106,6 +108,10 @@ jobs:
106108
make $BUILD_OPTIONS INSTALL_DEBUG_TOOLS=y target/sonic-vs.img.gz
107109
mv target/sonic-vs.img.gz target/sonic-vs-dbg.img.gz
108110
fi
111+
if [ $(asan_image) == yes ]; then
112+
make $BUILD_OPTIONS ENABLE_ASAN=y target/docker-sonic-vs.gz
113+
mv target/docker-sonic-vs.gz target/docker-sonic-vs-asan.gz
114+
fi
109115
make $BUILD_OPTIONS target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz
110116
if [ $(Build.Reason) != 'PullRequest' ];then
111117
gzip -kd target/sonic-vs.img.gz

0 commit comments

Comments
 (0)