Skip to content

Commit 01c14e5

Browse files
Update azure-pipelines.yml
1 parent fe5201b commit 01c14e5

File tree

1 file changed

+3
-89
lines changed

1 file changed

+3
-89
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -60,95 +60,9 @@ stages:
6060
parameters:
6161
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}'
6262
jobGroups:
63-
- name: broadcom
64-
variables:
65-
swi_image: yes
66-
- name: mellanox
67-
- name: marvell-armhf
68-
pool: sonicbld-armhf
63+
- name: centec-arm64
64+
pool: sonicbld-arm64
6965
timeoutInMinutes: 1200
7066
variables:
71-
PLATFORM_ARCH: armhf
72-
73-
- stage: Test
74-
dependsOn: BuildVS
75-
condition: and(ne(stageDependencies.BuildVS.outputs['vs.SetVar.SKIP_VSTEST'], 'YES'), in(dependencies.BuildVS.result, 'Succeeded', 'SucceededWithIssues'))
76-
variables:
77-
- name: inventory
78-
value: veos_vtb
79-
- name: testbed_file
80-
value: vtestbed.csv
81-
82-
jobs:
83-
- job:
84-
pool: sonictest
85-
displayName: "vstest"
86-
timeoutInMinutes: 60
87-
steps:
88-
- checkout: self
89-
clean: true
90-
submodules: recursive
91-
displayName: 'Checkout code'
92-
93-
- task: DownloadPipelineArtifact@2
94-
inputs:
95-
source: specific
96-
project: build
97-
pipeline: 9
98-
artifact: sonic-swss-common.amd64.ubuntu20_04
99-
runVersion: 'latestFromBranch'
100-
runBranch: 'refs/heads/master'
101-
displayName: "Download sonic swss common deb packages"
102-
103-
- task: DownloadPipelineArtifact@2
104-
inputs:
105-
artifact: sonic-buildimage.vs
106-
displayName: "Download sonic-buildimage.vs artifact"
107-
108-
- script: |
109-
set -x
110-
sudo dpkg -i --force-confask,confnew ../libswsscommon_1.0.0_amd64.deb
111-
sudo dpkg -i ../python3-swsscommon_1.0.0_amd64.deb
112-
sudo docker load -i ../target/docker-sonic-vs.gz
113-
docker tag docker-sonic-vs:latest docker-sonic-vs:$(Build.BuildNumber)
114-
username=$(id -un)
115-
116-
trap "docker ps; docker images; ip netns list; \
117-
docker rmi docker-sonic-vs:$(Build.BuildNumber); \
118-
ip netns list | grep -E [-]srv[0-9]+ | awk '{print $1}' | xargs -I {} sudo ip netns delete {}; \
119-
sudo chown -R ${username}.${username} .; \
120-
sudo chown -R ${username}.${username} $(System.DefaultWorkingDirectory)" EXIT
121-
pushd platform/vs/tests
122-
sudo py.test -v --junitxml=tr.xml --imgname=docker-sonic-vs:$(Build.BuildNumber)
123-
displayName: "Run vs tests"
124-
125-
- task: PublishTestResults@2
126-
inputs:
127-
testResultsFiles: '**/tr.xml'
128-
testRunTitle: vstest
129-
130-
- job:
131-
pool: sonictest
132-
displayName: "kvmtest-t0"
133-
timeoutInMinutes: 360
134-
135-
steps:
136-
- template: .azure-pipelines/run-test-template.yml
137-
parameters:
138-
dut: vlab-01
139-
tbname: vms-kvm-t0
140-
ptf_name: ptf_vms6-1
141-
tbtype: t0
142-
143-
- job:
144-
pool: sonictest-t1-lag
145-
displayName: "kvmtest-t1-lag"
146-
timeoutInMinutes: 240
67+
PLATFORM_ARCH: arm64
14768

148-
steps:
149-
- template: .azure-pipelines/run-test-template.yml
150-
parameters:
151-
dut: vlab-03
152-
tbname: vms-kvm-t1-lag
153-
ptf_name: ptf_vms6-2
154-
tbtype: t1-lag

0 commit comments

Comments
 (0)