Skip to content

Commit 10c2d60

Browse files
[202012][TestbedV2] Add dualtor test jobs using TestbedV2. (#12672)
Add dualtor test jobs using TestbedV2 in 202012 branch. Why I did it Add dualtor test jobs using TestbedV2 in 202012 branch. How I did it Add dualtor test jobs using TestbedV2 in 202012 branch. Signed-off-by: Yutong Zhang <[email protected]>
1 parent ea3620c commit 10c2d60

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.azure-pipelines/run-test-scheduler-template.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ parameters:
3030
type: string
3131
default: master
3232

33+
- name: COMMON_EXTRA_PARAMS
34+
type: string
35+
default: ""
36+
3337
steps:
3438
- script: |
3539
set -ex
@@ -42,7 +46,9 @@ steps:
4246
set -ex
4347
pip install PyYAML
4448
rm -f new_test_plan_id.txt
45-
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 }}" --mgmt-branch ${{ parameters.MGMT_BRANCH }}
49+
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 }} \
50+
--test-set ${{ parameters.TEST_SET }} --kvm-build-id $(KVM_BUILD_ID) --deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" --mgmt-branch ${{ parameters.MGMT_BRANCH }} \
51+
--common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}"
4652
TEST_PLAN_ID=`cat new_test_plan_id.txt`
4753
4854
echo "Created test plan $TEST_PLAN_ID"

azure-pipelines.yml

+16
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,19 @@ stages:
280280
281281
echo "Both classic and TestbedV2 t1-lag jobs failed! Please check the detailed information. (Any of them passed, t1-lag will be considered as passed)"
282282
exit 1
283+
284+
- job: dualtor_testbedv2
285+
pool:
286+
vmImage: 'ubuntu-20.04'
287+
displayName: "kvmtest-dualtor-t0 by TestbedV2"
288+
timeoutInMinutes: 1080
289+
condition: and(succeeded(), eq(variables.BUILD_IMG_RUN_TESTBEDV2_TEST, 'YES'))
290+
continueOnError: false
291+
steps:
292+
- template: .azure-pipelines/run-test-scheduler-template.yml
293+
parameters:
294+
TOPOLOGY: dualtor
295+
MIN_WORKER: 1
296+
MAX_WORKER: 1
297+
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
298+
MGMT_BRANCH: 202012

0 commit comments

Comments
 (0)