Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bringing changes from sonic-build image #41

Merged
merged 108 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
c81c368
[submodule] Update submodule sonic-platform-pde to the latest HEAD au…
mssonicbld Jun 20, 2023
45210c3
[submodule] Update submodule sonic-platform-daemons to the latest HEA…
mssonicbld Jun 20, 2023
c9279dc
[submodule] Update submodule sonic-platform-common to the latest HEAD…
mssonicbld Jun 20, 2023
e0918d2
[submodule] Update submodule sonic-py-swsssdk to the latest HEAD auto…
mssonicbld Jun 20, 2023
e5d6401
[submodule] Update submodule sonic-mgmt-framework to the latest HEAD …
mssonicbld Jun 20, 2023
b211227
[submodule] Update submodule sonic-dbsyncd to the latest HEAD automat…
mssonicbld Jun 20, 2023
ac0c18b
[submodule] Update submodule linkmgrd to the latest HEAD automaticall…
mssonicbld Jun 20, 2023
076dae8
[submodule] Update submodule dhcprelay to the latest HEAD automatical…
mssonicbld Jun 20, 2023
12a039c
[submodule] Update submodule sonic-snmpagent to the latest HEAD autom…
mssonicbld Jun 20, 2023
a003861
[submodule] Update submodule sonic-sairedis to the latest HEAD automa…
mssonicbld Jun 20, 2023
d9dfb36
[buildsystem] Fix hiredis package version: 0.14.1-1 (#15461)
nazariig Jun 20, 2023
a67bffa
enable info log for graceful restart events (#15535)
StormLiangMS Jun 21, 2023
c65bdc1
[submodule] Update submodule wpasupplicant/sonic-wpa-supplicant to th…
mssonicbld Jun 21, 2023
3a75519
[submodule] Update submodule sonic-host-services to the latest HEAD a…
mssonicbld Jun 21, 2023
e0f287b
Update gnxi ptr (#15562)
zbud-msft Jun 21, 2023
a81505f
[submodule] Update submodule sonic-swss-common to the latest HEAD aut…
mssonicbld Jun 22, 2023
e5268d9
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Jun 22, 2023
067ef67
[submodule] Update submodule sonic-sairedis to the latest HEAD automa…
mssonicbld Jun 22, 2023
1389772
Modify azure cli to install through apt-get and pyaml to specific ver…
shbalaku-microsoft Jun 22, 2023
78c262e
[Arista][x86_64-arista_7050_qx32] Add Components to platform.json (#1…
vdahiya12 Jun 22, 2023
475fe27
[dns] Add support for static DNS configuration. (#14549)
oleksandrivantsiv Jun 22, 2023
fca3458
[systemd-sonic-generator] replace sscanf with strtol (#15357)
maipbui Jun 22, 2023
110a3fd
docker prefer COPY to ADD in dockerfile (#15394)
maipbui Jun 22, 2023
16bb026
[chassis][lldp] Fix the lldp error log in host instance which doesn't…
mlok-nokia Jun 23, 2023
6ba5b84
[yang] add Yang model for `MUX_LINKMGR|LINK_PROBER` (#15384)
zjswhhh Jun 23, 2023
c1462f5
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Jun 25, 2023
05aa404
[submodule] Update submodule sonic-swss-common to the latest HEAD aut…
mssonicbld Jun 25, 2023
2f4cd3a
[submodule] Update submodule sonic-host-services to the latest HEAD a…
mssonicbld Jun 25, 2023
6bb0483
[sonic-mgmt] install newest az-cli to mitigate old version az-cli iss…
yejianquan Jun 25, 2023
f978b2b
Timezone sync issue between the host and containers (#14000)
nmoray Jun 25, 2023
b07957b
Fix issue: systemctl daemon-reload would sporadically cause udev hand…
Junchao-Mellanox Jun 25, 2023
ccf1cd5
Add support for secure upgrade (#11862)
ycoheNvidia Jun 26, 2023
aa11acd
[ci/build]: Upgrade SONiC package versions
mssonicbld Jun 26, 2023
f154ff0
Add the release 202211/202203 in the README.md (#15593)
xumia Jun 26, 2023
ec6723d
[Marvell] Update arm64 sai debian (#15602)
rajkumar38 Jun 26, 2023
4e43484
[Arista] Update platform library submodules (#15405)
Staphylo Jun 26, 2023
05f326e
Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100 (…
prgeor Jun 26, 2023
4449d47
[CI/CD] Refine t0 sonic and remove SPECIFIED_PARAMS (#15625)
yejianquan Jun 27, 2023
bacba1f
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Jun 27, 2023
2047e5c
[submodule] Update submodule dhcpmon to the latest HEAD automatically…
mssonicbld Jun 27, 2023
8b21b61
[sonic-pit] Add PIT(Platform Integration Test) feature, second part, …
clarklee-guizhao Jun 27, 2023
bf5b72a
Vnet monitor table cleanup (#15399)
siqbal1986 Jun 27, 2023
d4de62d
[docker-sonic-vs]: dd NPU SKU for docker-sonic-vs (#15604)
prabhataravind Jun 27, 2023
f0617c7
[Ci] Support to build sonic-swss-common for test (#15566)
xumia Jun 27, 2023
42671e7
[submodule] Update submodule sonic-restapi to the latest HEAD automat…
mssonicbld Jun 28, 2023
a06ffc9
[submodule] Update submodule sonic-host-services to the latest HEAD a…
mssonicbld Jun 28, 2023
1ebdcda
[nvidia] make sure shared storage with syncd is cleared on restarts (…
stepanblyschak Jun 28, 2023
5aaa65d
[submodule] Update submodule sonic-restapi to the latest HEAD automat…
mssonicbld Jun 29, 2023
874390a
[submodule] Update submodule sonic-swss-common to the latest HEAD aut…
mssonicbld Jun 29, 2023
aa46167
[Nokia][sonic-platform] Update Nokia sonic-platform submodule (#15239)
snider-nokia Jun 29, 2023
c91707f
Migrate flush_unused_database from py-redis to sonic-swss-common (#15…
liuh-80 Jun 29, 2023
b4a3711
[arp_update]: Fix IPv6 neighbor race condition (#15583)
theasianpianist Jun 30, 2023
c190a8f
[Netberg][Barefoot] Added support for Aurora 710 (#15298)
andrewsapronov Jul 1, 2023
eb9639e
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Jul 1, 2023
91fb783
[submodule] Update submodule sonic-platform-common to the latest HEAD…
mssonicbld Jul 1, 2023
aa5164e
[ci/build]: Upgrade SONiC package versions (#15647)
mssonicbld Jul 1, 2023
7ef59d5
[ci/build]: Upgrade SONiC package versions (#15706)
mssonicbld Jul 3, 2023
1dfe35c
Add YANG model for FABRIC_PORT (#15629)
kenneth-arista Jul 3, 2023
de65640
[ci/build]: Upgrade SONiC package versions (#15715)
mssonicbld Jul 5, 2023
2f89949
[dash-api]: Add dash-api and related protobuf library (#14515)
Pterosaur Jul 5, 2023
eaa795d
Revert "[gearbox] use credo sai v0.9.0 (#14149)" (#15708)
arlakshm Jul 5, 2023
c6dbfa9
[Ufispace][PDDF] Add support for S9300-32D platform (#14922)
linyutsung Jul 5, 2023
4e78f58
Use execle instead of popen in tacas nss to avoid shell escape exploi…
seiferteric Jul 5, 2023
ca29197
Move k8s script to docker-config-engine (#14788)
lixiaoyuner Jul 5, 2023
673b8b8
[submodule] Update submodule sonic-dash-api/sonic-dash-api to the lat…
mssonicbld Jul 6, 2023
39cb254
Submodule update for sonic-mgmt-common and sonic-gnmi (#15519)
sachinholla Jul 6, 2023
e46be54
Update the docker daemon to 24.0.2 (#15652)
saiarcot895 Jul 6, 2023
6f6218a
[FRR]Fixing the advertisement of static ipv6 route (#15688)
stepanblyschak Jul 6, 2023
ddb3086
Revert "Revert "Fix for fast/cold-boot: call db_migrator only after o…
vaibhavhd Jul 7, 2023
74e3917
[submodule] Update submodule sonic-swss-common to the latest HEAD aut…
mssonicbld Jul 7, 2023
a86a026
[staticroutebfd] fix static route uninstall issue when all nexthops a…
baorliu Jul 7, 2023
87066ab
Enable BFD for Static Route for chassis-packet. (#15383)
abdosi Jul 7, 2023
f6282b8
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Jul 8, 2023
cd3cdee
[submodule] Update submodule sonic-mgmt-common to the latest HEAD aut…
mssonicbld Jul 8, 2023
e57692c
[ci/build]: Upgrade SONiC package versions (#15757)
mssonicbld Jul 8, 2023
9321c97
[submodule] Update submodule sonic-platform-daemons to the latest HEA…
mssonicbld Jul 9, 2023
c07447a
Refine PR test template format (#15636)
lerry-lee Jul 10, 2023
cb3ee65
Remove DNS configuration from minigraph schema (#15727)
ganglyu Jul 10, 2023
4303308
[staticroutebfd] fix ipv6 letter case issue (#15765)
baorliu Jul 10, 2023
7639df0
Added ssh configurations to YANG model (#13338)
ycoheNvidia Jul 10, 2023
72021fd
Add remote syslog configuration (#14513)
iavraham Jul 10, 2023
c589230
Add Python3 packages to sonic-mgmt-docker (#15726)
wsycqyz Jul 11, 2023
c470b7d
Add health check probe for k8s upgrade containers. (#15223)
lixiaoyuner Jul 11, 2023
d1c0fae
[submodule] Update submodule sonic-gnmi to the latest HEAD automatica…
mssonicbld Jul 11, 2023
5cbae46
[submodule] Advance sonic-utilities pointer (#15779)
dgsudharsan Jul 11, 2023
5eaa0d2
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Jul 11, 2023
75a1fd9
[submodule] Update submodule sonic-utilities to the latest HEAD autom…
mssonicbld Jul 11, 2023
114f276
[docker-sonic-vs]: More changes to support DPU-2P HWKSU (#15695)
prabhataravind Jul 11, 2023
51b5008
Pick dependency files in submodules. (#15142)
iMasaruOki Jul 11, 2023
28b9299
Support Reset factory (#14105)
Mohammedz93 Jul 11, 2023
3b9e8ff
[submodule] Update submodule sonic-utilities to the latest HEAD autom…
mssonicbld Jul 12, 2023
e3fc93d
[submodule] Update submodule sonic-platform-common to the latest HEAD…
mssonicbld Jul 12, 2023
4f4559c
[submodule] Update submodule sonic-linux-kernel to the latest HEAD au…
mssonicbld Jul 12, 2023
9864dfe
[SNMP][IPv6]: Fix SNMP IPv6 reachability issue in certain scenarios (…
SuvarnaMeenakshi Jul 12, 2023
dc5258e
[Build] Fix the python module importlib.metadata not found issue (#15…
xumia Jul 13, 2023
25defcf
[submodule] Update submodule sonic-swss to the latest HEAD automatica…
mssonicbld Jul 13, 2023
b3e5910
[submodule] Update submodule sonic-platform-daemons to the latest HEA…
mssonicbld Jul 13, 2023
30959ec
[Build] Change the build option from ENABLE_FIPS_FEATURE to INCLUDE_F…
xumia Jul 13, 2023
d549787
limit privileged flag for bgp container (#14932)
maipbui Jul 14, 2023
df13380
[k8s]: Bypass the systemd service restart limit and do immediately re…
lixiaoyuner Jul 14, 2023
1bf2a61
[ctrmgr]: Container image clean up bug fix (#15772)
lixiaoyuner Jul 14, 2023
95d1197
update rsyslog log size conf (#15821)
lipxu Jul 14, 2023
23a0a87
[submodule] Update submodule sonic-utilities to the latest HEAD autom…
mssonicbld Jul 14, 2023
c991c5f
Upgrade scapy in the PTF's python3 virtualenv to 2.5.0 (#15573)
saiarcot895 Jul 14, 2023
bf49154
Potential fix for Celestica E1031 device hang (#15822)
yxieca Jul 14, 2023
2602ad2
[ctgmgr]: do not remove label when do systemd service stop when servi…
lixiaoyuner Jul 14, 2023
94c47c8
Sync from sonicbuild image and lom-prod
GouthamBanala Jul 14, 2023
109830b
devicehealth name corrected in supervisord
GouthamBanala Jul 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 55 additions & 0 deletions .azure-pipelines/azure-pipelines-build-ubuntu-2004.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
pr: none

trigger:
batch: true
branches:
include:
- master

stages:
- stage: Build

jobs:
- job:
displayName: "amd64/ubuntu-20.04"
pool:
vmImage: 'ubuntu-20.04'

steps:
- checkout: self
submodules: true
- script: |
sudo apt-get update
sudo apt-get install -y make wget libtool m4 autoconf dh-exec libdebhelper-perl=13.6ubuntu1~bpo20.04.1 debhelper=13.6ubuntu1~bpo20.04.1 \
cmake pkg-config python3-pip python cmake libgtest-dev libgmock-dev libyang-dev \
debhelper-compat dh-elpa dh-sequence-python3 python3-all \
libpython3-all-dev python3-six xmlto unzip rake-compiler gem2deb pkg-php-tools \
ant default-jdk maven-repo-helper libguava-java
wget http://ftp.us.debian.org/debian/pool/main/libg/libgoogle-gson-java/libgoogle-gson-java_2.8.6-1+deb11u1_all.deb
sudo dpkg -i libgoogle-gson-java_2.8.6-1+deb11u1_all.deb
mkdir -p /tmp/artifacts
displayName: "Install dependencies"
- script: |
SONIC_CONFIG_MAKE_JOBS=$(nproc) CONFIGURED_ARCH=amd64 DEST=/tmp/artifacts make -f ../rules/protobuf.mk -f protobuf/Makefile
workingDirectory: src
displayName: "Build protobuf"
- script: |
sudo dpkg -i protobuf-compiler_3.21.12-3_amd64.deb libprotoc32_3.21.12-3_amd64.deb \
libprotobuf32_3.21.12-3_amd64.deb libprotobuf-dev_3.21.12-3_amd64.deb \
libprotobuf-lite32_3.21.12-3_amd64.deb
workingDirectory: /tmp/artifacts
displayName: "Install protobuf"
- script: |
dpkg-buildpackage -rfakeroot -b -us -uc
workingDirectory: src/sonic-dash-api
displayName: "Build sonic-dash-api"
- script: |
cp *.deb /tmp/artifacts
workingDirectory: src
- publish: /tmp/artifacts
artifact: sonic-buildimage.amd64.ubuntu20_04
displayName: "Archive sonic-buildimage debian packages for ubuntu20.04"
114 changes: 92 additions & 22 deletions .azure-pipelines/run-test-scheduler-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ parameters:
type: string
default: 1

- name: NUM_ASIC
type: number
default: 1

- name: TEST_SET
type: string
default: ""
Expand All @@ -34,17 +38,73 @@ parameters:
type: string
default: "ceos"

- name: SPECIFIED_PARAMS
- name: TESTBED_NAME
type: string
default: ""

- name: IMAGE_URL
type: string
default: ""

- name: HWSKU
type: string
default: ""

- name: TEST_PLAN_TYPE
type: string
default: ""

- name: PLATFORM
type: string
default: ""

- name: SCRIPTS
type: string
default: ""

- name: FEATURES
type: string
default: ""

- name: SCRIPTS_EXCLUDE
type: string
default: ""

- name: FEATURES_EXCLUDE
type: string
default: "{}"
default: ""

- name: REPO_NAME
type: string
default: ""

- name: MGMT_BRANCH
type: string
default: master
default: ""

- name: NUM_ASIC
- name: STOP_ON_FAILURE
type: string
default: ""

- name: RETRY_TIMES
type: string
default: ""

- name: DUMP_KVM_IF_FAIL
type: string
default: "True"
values:
- "True"
- "False"

- name: REQUESTER
type: string
default: ""

- name: MAX_RUN_TEST_MINUTES
type: number
default: 1
default: 480


steps:
- script: |
Expand All @@ -57,12 +117,20 @@ steps:
set -e
pip install PyYAML
rm -f new_test_plan_id.txt
python ./.azure-pipelines/test_plan.py create -t ${{ parameters.TOPOLOGY }} -o new_test_plan_id.txt \
--min-worker ${{ parameters.MIN_WORKER }} --max-worker ${{ parameters.MAX_WORKER }} \
--test-set ${{ parameters.TEST_SET }} --kvm-build-id $(KVM_BUILD_ID) \
--deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" \
--mgmt-branch ${{ parameters.MGMT_BRANCH }} --vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" \

python ./.azure-pipelines/test_plan.py create \
-t ${{ parameters.TOPOLOGY }} \
-o new_test_plan_id.txt \
--min-worker ${{ parameters.MIN_WORKER }} \
--max-worker ${{ parameters.MAX_WORKER }} \
--test-set ${{ parameters.TEST_SET }} \
--kvm-build-id $(KVM_BUILD_ID) \
--deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" \
--common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" \
--mgmt-branch ${{ parameters.MGMT_BRANCH }} \
--vm-type ${{ parameters.VM_TYPE }} \
--num-asic ${{ parameters.NUM_ASIC }}

TEST_PLAN_ID=`cat new_test_plan_id.txt`

echo "Created test plan $TEST_PLAN_ID"
Expand Down Expand Up @@ -108,18 +176,20 @@ steps:
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
displayName: Run test

- script: |
set -e
echo "KVM dump"
echo "SONiC PR system-level test is powered by SONiC Elastictest, for any issue, please send email to sonicelastictest@microsoft.com"
echo "Runtime detailed progress at $(FRONTEND_URL)/scheduler/testplan/$TEST_PLAN_ID "
# When "KVMDUMP" finish, it changes into "FAILED", "CANCELLED" or "FINISHED"
python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --expected-state KVMDUMP
condition: succeededOrFailed()
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
displayName: KVM dump
timeoutInMinutes: ${{ parameters.MAX_RUN_TEST_MINUTES }}

- ${{ if eq(parameters.DUMP_KVM_IF_FAIL, 'True') }}:
- script: |
set -e
echo "KVM dump"
echo "SONiC PR system-level test is powered by SONiC Elastictest, for any issue, please send email to sonicelastictest@microsoft.com"
echo "Runtime detailed progress at $(FRONTEND_URL)/scheduler/testplan/$TEST_PLAN_ID "
# When "KVMDUMP" finish, it changes into "FAILED", "CANCELLED" or "FINISHED"
python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --expected-state KVMDUMP
condition: succeededOrFailed()
env:
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
displayName: KVM dump

- script: |
set -e
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@
[submodule "src/sonic-device-health"]
path = src/sonic-device-health
url = https://github.com/renukamanavalan/sonic-device-health.git
[submodule "src/sonic-dash-api/sonic-dash-api"]
path = src/sonic-dash-api/sonic-dash-api
url = https://github.com/sonic-net/sonic-dash-api.git
10 changes: 5 additions & 5 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ DOCKER_ROOT = $(PWD)/fsroot.docker.$(BLDENV)

# Support FIPS feature, armhf not supported yet
ifeq ($(PLATFORM_ARCH),armhf)
ENABLE_FIPS_FEATURE := n
INCLUDE_FIPS := n
ENABLE_FIPS := n
endif

ifeq ($(ENABLE_FIPS_FEATURE), n)
ifeq ($(INCLUDE_FIPS), n)
ifeq ($(ENABLE_FIPS), y)
$(error Cannot set fips config ENABLE_FIPS=y when ENABLE_FIPS_FEATURE=n)
$(error Cannot set fips config ENABLE_FIPS=y when INCLUDE_FIPS=n)
endif
endif

Expand All @@ -210,7 +210,7 @@ $(shell \
$(shell CONFIGURED_ARCH=$(CONFIGURED_ARCH) \
MULTIARCH_QEMU_ENVIRON=$(MULTIARCH_QEMU_ENVIRON) \
CROSS_BUILD_ENVIRON=$(CROSS_BUILD_ENVIRON) \
ENABLE_FIPS_FEATURE=$(ENABLE_FIPS_FEATURE) \
INCLUDE_FIPS=$(INCLUDE_FIPS) \
DOCKER_EXTRA_OPTS=$(DOCKER_EXTRA_OPTS) \
DEFAULT_CONTAINER_REGISTRY=$(DEFAULT_CONTAINER_REGISTRY) \
GZ_COMPRESS_PROGRAM=$(GZ_COMPRESS_PROGRAM) \
Expand Down Expand Up @@ -561,7 +561,7 @@ SONIC_BUILD_INSTRUCTION := $(MAKE) \
ENABLE_ASAN=$(ENABLE_ASAN) \
SONIC_INCLUDE_BOOTCHART=$(INCLUDE_BOOTCHART) \
SONIC_ENABLE_BOOTCHART=$(ENABLE_BOOTCHART) \
ENABLE_FIPS_FEATURE=$(ENABLE_FIPS_FEATURE) \
INCLUDE_FIPS=$(INCLUDE_FIPS) \
ENABLE_FIPS=$(ENABLE_FIPS) \
SONIC_SLAVE_DOCKER_DRIVER=$(SONIC_SLAVE_DOCKER_DRIVER) \
MIRROR_URLS=$(MIRROR_URLS) \
Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,34 @@
[![Innovium](https://dev.azure.com/mssonic/build/_apis/build/status/innovium/Azure.sonic-buildimage.official.innovium?branchName=master&label=Innovium)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=148&branchName=master)
[![Mellanox](https://dev.azure.com/mssonic/build/_apis/build/status/mellanox/Azure.sonic-buildimage.official.mellanox?branchName=master&label=Mellanox)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=139&branchName=master)
[![Marvell(armhf)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-armhf?branchName=master&label=Marvell-armhf)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=141&branchName=master)
[![Marvell(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-arm64?branchName=master&label=Marvell-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=999&branchName=master)
[![Nephos](https://dev.azure.com/mssonic/build/_apis/build/status/nephos/Azure.sonic-buildimage.official.nephos?branchName=master&label=Nephos)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=149&branchName=master)
[![VS](https://dev.azure.com/mssonic/build/_apis/build/status/vs/Azure.sonic-buildimage.official.vs?branchName=master&label=VS)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=142&branchName=master)

*202305 builds*:

[![Barefoot](https://dev.azure.com/mssonic/build/_apis/build/status/barefoot/Azure.sonic-buildimage.official.barefoot?branchName=202205&label=Barefoot)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=146&branchName=202305)
[![Broadcom](https://dev.azure.com/mssonic/build/_apis/build/status/broadcom/Azure.sonic-buildimage.official.broadcom?branchName=202305&label=Broadcom)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=138&branchName=202305)
[![Centec](https://dev.azure.com/mssonic/build/_apis/build/status/centec/Azure.sonic-buildimage.official.centec?branchName=202305&label=Centec)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=143&branchName=202305)
[![Centec(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/centec/Azure.sonic-buildimage.official.centec-arm64?branchName=202305&label=Centec-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=140&branchName=202305)
[![Innovium](https://dev.azure.com/mssonic/build/_apis/build/status/innovium/Azure.sonic-buildimage.official.innovium?branchName=202305&label=Innovium)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=148&branchName=202305)
[![Mellanox](https://dev.azure.com/mssonic/build/_apis/build/status/mellanox/Azure.sonic-buildimage.official.mellanox?branchName=202305&label=Mellanox)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=139&branchName=202305)
[![Marvell(armhf)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-armhf?branchName=202305&label=Marvell-armhf)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=141&branchName=202305)
[![Nephos](https://dev.azure.com/mssonic/build/_apis/build/status/nephos/Azure.sonic-buildimage.official.nephos?branchName=202305&label=Nephos)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=149&branchName=202305)
[![VS](https://dev.azure.com/mssonic/build/_apis/build/status/vs/Azure.sonic-buildimage.official.vs?branchName=202305&label=VS)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=142&branchName=202305)

*202211 builds*:

[![Barefoot](https://dev.azure.com/mssonic/build/_apis/build/status/barefoot/Azure.sonic-buildimage.official.barefoot?branchName=202205&label=Barefoot)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=146&branchName=202211)
[![Broadcom](https://dev.azure.com/mssonic/build/_apis/build/status/broadcom/Azure.sonic-buildimage.official.broadcom?branchName=202211&label=Broadcom)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=138&branchName=202211)
[![Centec](https://dev.azure.com/mssonic/build/_apis/build/status/centec/Azure.sonic-buildimage.official.centec?branchName=202211&label=Centec)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=143&branchName=202211)
[![Centec(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/centec/Azure.sonic-buildimage.official.centec-arm64?branchName=202211&label=Centec-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=140&branchName=202211)
[![Innovium](https://dev.azure.com/mssonic/build/_apis/build/status/innovium/Azure.sonic-buildimage.official.innovium?branchName=202211&label=Innovium)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=148&branchName=202211)
[![Mellanox](https://dev.azure.com/mssonic/build/_apis/build/status/mellanox/Azure.sonic-buildimage.official.mellanox?branchName=202211&label=Mellanox)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=139&branchName=202211)
[![Marvell(armhf)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-armhf?branchName=202211&label=Marvell-armhf)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=141&branchName=202211)
[![Nephos](https://dev.azure.com/mssonic/build/_apis/build/status/nephos/Azure.sonic-buildimage.official.nephos?branchName=202211&label=Nephos)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=149&branchName=202211)
[![VS](https://dev.azure.com/mssonic/build/_apis/build/status/vs/Azure.sonic-buildimage.official.vs?branchName=202211&label=VS)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=142&branchName=202211)

*202205 builds*:

[![Barefoot](https://dev.azure.com/mssonic/build/_apis/build/status/barefoot/Azure.sonic-buildimage.official.barefoot?branchName=202205&label=Barefoot)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=146&branchName=202205)
Expand Down
60 changes: 32 additions & 28 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,27 +108,26 @@ stages:
sudo rm -rf ../*.deb
displayName: "Cleanup"

- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: 9
artifact: sonic-swss-common.amd64.ubuntu20_04
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
displayName: "Download sonic swss common deb packages"

- task: DownloadPipelineArtifact@2
inputs:
artifact: sonic-buildimage.vs
displayName: "Download sonic-buildimage.vs artifact"

- script: |
set -x
sudo apt-get update
sudo apt-get install libyang0.16 -y
sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb
sudo dpkg -i ../python3-swsscommon_1.0.0_amd64.deb
sudo apt-get install -y make libtool m4 autoconf dh-exec debhelper cmake pkg-config \
libhiredis-dev libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libnl-nf-3-dev swig3.0 \
libpython2.7-dev libboost-dev libboost-serialization-dev uuid-dev libzmq5 libzmq3-dev python3-pip \
cmake libgtest-dev libgmock-dev libyang-dev
sudo pip3 install pytest
cd src/sonic-swss-common
./autogen.sh
dpkg-buildpackage -rfakeroot -us -uc -b -j$(nproc)
sudo dpkg -i --force-confask,confnew ../libswsscommon_*.deb
sudo dpkg -i ../python3-swsscommon_*.deb
displayName: "Compile sonic swss common"

- script: |
sudo docker load -i ../target/docker-sonic-vs.gz
docker tag docker-sonic-vs:latest docker-sonic-vs:$(Build.BuildNumber)
username=$(id -un)
Expand Down Expand Up @@ -158,6 +157,7 @@ stages:
TOPOLOGY: t0
MIN_WORKER: $(T0_INSTANCE_NUM)
MAX_WORKER: $(T0_INSTANCE_NUM)
MGMT_BRANCH: master

- job: t0_2vlans_elastictest
pool: ubuntu-20.04
Expand All @@ -171,6 +171,7 @@ stages:
TEST_SET: t0-2vlans
MIN_WORKER: $(T0_2VLANS_INSTANCE_NUM)
MAX_WORKER: $(T0_2VLANS_INSTANCE_NUM)
MGMT_BRANCH: master
DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a"

- job: t1_lag_elastictest
Expand All @@ -184,6 +185,7 @@ stages:
TOPOLOGY: t1-lag
MIN_WORKER: $(T1_LAG_INSTANCE_NUM)
MAX_WORKER: $(T1_LAG_INSTANCE_NUM)
MGMT_BRANCH: master

- job: multi_asic_elastictest
displayName: "kvmtest-multi-asic-t1-lag by Elastictest"
Expand All @@ -198,6 +200,7 @@ stages:
MIN_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
MAX_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
NUM_ASIC: 4
MGMT_BRANCH: master

- job: dualtor_elastictest
pool: ubuntu-20.04
Expand All @@ -210,6 +213,7 @@ stages:
TOPOLOGY: dualtor
MIN_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
MGMT_BRANCH: master
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "

- job: sonic_t0_elastictest
Expand All @@ -224,19 +228,19 @@ stages:
MIN_WORKER: $(T0_SONIC_INSTANCE_NUM)
MAX_WORKER: $(T0_SONIC_INSTANCE_NUM)
TEST_SET: t0-sonic
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic --enable_macsec --macsec_profile=128_SCI,256_XPN_SCI"
MGMT_BRANCH: master
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic "
VM_TYPE: vsonic
SPECIFIED_PARAMS: '{\"test_pretest.py\":[\"--completeness_level=confident\",\"--allow_recover\"],\"test_posttest.py\":[\"--completeness_level=confident\",\"--allow_recover\"]}'

- job: wan_elastictest
displayName: "kvmtest-wan by Elastictest"
pool: ubuntu-20.04
timeoutInMinutes: 240
continueOnError: false
steps:
- template: .azure-pipelines/run-test-scheduler-template.yml
parameters:
TOPOLOGY: wan-pub
MIN_WORKER: $(WAN_INSTANCE_NUM)
MAX_WORKER: $(WAN_INSTANCE_NUM)
COMMON_EXTRA_PARAMS: "--skip_sanity "
# - job: wan_elastictest
# displayName: "kvmtest-wan by Elastictest"
# pool: ubuntu-20.04
# timeoutInMinutes: 240
# continueOnError: false
# steps:
# - template: .azure-pipelines/run-test-scheduler-template.yml
# parameters:
# TOPOLOGY: wan-pub
# MIN_WORKER: $(WAN_INSTANCE_NUM)
# MAX_WORKER: $(WAN_INSTANCE_NUM)
# COMMON_EXTRA_PARAMS: "--skip_sanity "
Loading