Skip to content

Commit dda6bd1

Browse files
authored
[CI/CD] Use remote PR test template from sonic-mgmt master to run PR test (#15975)
Why I did it Use remote PR test template from sonic-mgmt master to run PR test. How I did it Modify PR test azure pipeline yml file. How to verify it PR test executing normally. Signed-off-by: Chun'ang Li <[email protected]>
1 parent 5d91bd1 commit dda6bd1

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

azure-pipelines.yml

+13-12
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ resources:
2828
- repository: sonic-mgmt
2929
type: github
3030
name: sonic-net/sonic-mgmt
31+
ref: master
3132
endpoint: sonic-net
3233
- repository: buildimage
3334
type: github
@@ -152,26 +153,26 @@ stages:
152153
timeoutInMinutes: 240
153154
continueOnError: false
154155
steps:
155-
- template: .azure-pipelines/run-test-scheduler-template.yml
156+
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
156157
parameters:
157158
TOPOLOGY: t0
158159
MIN_WORKER: $(T0_INSTANCE_NUM)
159160
MAX_WORKER: $(T0_INSTANCE_NUM)
160-
MGMT_BRANCH: master
161+
MGMT_BRANCH: "master"
161162

162163
- job: t0_2vlans_elastictest
163164
pool: ubuntu-20.04
164165
displayName: "kvmtest-t0-2vlans by Elastictest"
165166
timeoutInMinutes: 240
166167
continueOnError: false
167168
steps:
168-
- template: .azure-pipelines/run-test-scheduler-template.yml
169+
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
169170
parameters:
170171
TOPOLOGY: t0
171172
TEST_SET: t0-2vlans
172173
MIN_WORKER: $(T0_2VLANS_INSTANCE_NUM)
173174
MAX_WORKER: $(T0_2VLANS_INSTANCE_NUM)
174-
MGMT_BRANCH: master
175+
MGMT_BRANCH: "master"
175176
DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a"
176177

177178
- job: t1_lag_elastictest
@@ -180,40 +181,40 @@ stages:
180181
timeoutInMinutes: 240
181182
continueOnError: false
182183
steps:
183-
- template: .azure-pipelines/run-test-scheduler-template.yml
184+
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
184185
parameters:
185186
TOPOLOGY: t1-lag
186187
MIN_WORKER: $(T1_LAG_INSTANCE_NUM)
187188
MAX_WORKER: $(T1_LAG_INSTANCE_NUM)
188-
MGMT_BRANCH: master
189+
MGMT_BRANCH: "master"
189190

190191
- job: multi_asic_elastictest
191192
displayName: "kvmtest-multi-asic-t1-lag by Elastictest"
192193
pool: ubuntu-20.04
193194
timeoutInMinutes: 240
194195
continueOnError: false
195196
steps:
196-
- template: .azure-pipelines/run-test-scheduler-template.yml
197+
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
197198
parameters:
198199
TOPOLOGY: t1-8-lag
199200
TEST_SET: multi-asic-t1-lag
200201
MIN_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
201202
MAX_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
202203
NUM_ASIC: 4
203-
MGMT_BRANCH: master
204+
MGMT_BRANCH: "master"
204205

205206
- job: dualtor_elastictest
206207
pool: ubuntu-20.04
207208
displayName: "kvmtest-dualtor-t0 by Elastictest"
208209
timeoutInMinutes: 240
209210
continueOnError: false
210211
steps:
211-
- template: .azure-pipelines/run-test-scheduler-template.yml
212+
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
212213
parameters:
213214
TOPOLOGY: dualtor
214215
MIN_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
215216
MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
216-
MGMT_BRANCH: master
217+
MGMT_BRANCH: "master"
217218
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
218219

219220
- job: sonic_t0_elastictest
@@ -222,13 +223,13 @@ stages:
222223
timeoutInMinutes: 240
223224
continueOnError: false
224225
steps:
225-
- template: .azure-pipelines/run-test-scheduler-template.yml
226+
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
226227
parameters:
227228
TOPOLOGY: t0-64-32
228229
MIN_WORKER: $(T0_SONIC_INSTANCE_NUM)
229230
MAX_WORKER: $(T0_SONIC_INSTANCE_NUM)
230231
TEST_SET: t0-sonic
231-
MGMT_BRANCH: master
232+
MGMT_BRANCH: "master"
232233
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic "
233234
VM_TYPE: vsonic
234235

0 commit comments

Comments
 (0)