diff --git a/.azure-pipelines/build-swss-template.yml b/.azure-pipelines/build-swss-template.yml index 7b5cbdfc1..2f40774c0 100644 --- a/.azure-pipelines/build-swss-template.yml +++ b/.azure-pipelines/build-swss-template.yml @@ -46,6 +46,8 @@ jobs: steps: - script: | + set -ex + sudo apt-get update sudo apt-get install -y libhiredis0.14 libhiredis-dev sudo apt-get install -y libzmq5 libzmq3-dev sudo apt-get install -qq -y \ diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index ce09c4160..b4897dfd6 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -10,6 +10,8 @@ parameters: type: string values: - sonicbld + - sonicbld-arm64 + - sonicbld-armhf - default default: default @@ -49,6 +51,8 @@ jobs: steps: - script: | + set -ex + sudo apt-get update sudo apt-get install -qq -y \ qtbase5-dev \ libdbus-glib-1-2 \ diff --git a/.azure-pipelines/build_and_install_module.sh b/.azure-pipelines/build_and_install_module.sh index 4bd026cb5..9aadd7173 100755 --- a/.azure-pipelines/build_and_install_module.sh +++ b/.azure-pipelines/build_and_install_module.sh @@ -26,6 +26,7 @@ function build_and_install_kmodule() SUBLEVEL=$(echo $KERNEL_MAINVERSION | cut -d. -f3) # Install the required debian packages to build the kernel modules + apt-get update apt-get install -y build-essential linux-headers-${KERNEL_RELEASE} autoconf pkg-config fakeroot apt-get install -y flex bison libssl-dev libelf-dev apt-get install -y libnl-route-3-200 libnl-route-3-dev libnl-cli-3-200 libnl-cli-3-dev libnl-3-dev diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index 251644ba0..82b0972a8 100644 --- a/.azure-pipelines/test-docker-sonic-vs-template.yml +++ b/.azure-pipelines/test-docker-sonic-vs-template.yml @@ -11,8 +11,7 @@ jobs: displayName: vstest timeoutInMinutes: ${{ parameters.timeout }} - pool: - vmImage: 'ubuntu-20.04' + pool: sonic-common steps: - task: DownloadPipelineArtifact@2 @@ -41,6 +40,7 @@ jobs: set -x sudo sonic-sairedis/.azure-pipelines/build_and_install_module.sh + sudo apt-get update sudo apt-get install -y libhiredis0.14 sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb || apt-get install -f sudo dpkg -i ../python3-swsscommon_1.0.0_amd64.deb @@ -59,6 +59,8 @@ jobs: pushd sonic-swss/tests sudo py.test -v --force-flaky --junitxml=tr.xml --imgname=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber) displayName: "Run vs tests" + ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: + continueOnError: true - task: PublishTestResults@2 inputs: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fcb91caa9..02d62ccf0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,8 +36,8 @@ stages: - template: .azure-pipelines/build-template.yml parameters: arch: armhf - timeout: 180 - pool: sonicbld + timeout: 240 + pool: sonicbld-armhf sonic_slave: sonic-slave-buster-armhf swss_common_artifact_name: sonic-swss-common.armhf artifact_name: sonic-sairedis.armhf @@ -46,8 +46,8 @@ stages: - template: .azure-pipelines/build-template.yml parameters: arch: arm64 - timeout: 180 - pool: sonicbld + timeout: 240 + pool: sonicbld-arm64 sonic_slave: sonic-slave-buster-arm64 swss_common_artifact_name: sonic-swss-common.arm64 artifact_name: sonic-sairedis.arm64