[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 <yutongzhang@microsoft.com>
This commit is contained in:
parent
ea3620cde5
commit
10c2d601ed
@ -30,6 +30,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
|
||||||
|
- name: COMMON_EXTRA_PARAMS
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
set -ex
|
set -ex
|
||||||
@ -42,7 +46,9 @@ steps:
|
|||||||
set -ex
|
set -ex
|
||||||
pip install PyYAML
|
pip install PyYAML
|
||||||
rm -f new_test_plan_id.txt
|
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 }}" --mgmt-branch ${{ parameters.MGMT_BRANCH }}
|
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 }} \
|
||||||
|
--common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}"
|
||||||
TEST_PLAN_ID=`cat new_test_plan_id.txt`
|
TEST_PLAN_ID=`cat new_test_plan_id.txt`
|
||||||
|
|
||||||
echo "Created test plan $TEST_PLAN_ID"
|
echo "Created test plan $TEST_PLAN_ID"
|
||||||
|
@ -280,3 +280,19 @@ stages:
|
|||||||
|
|
||||||
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)"
|
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)"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
- job: dualtor_testbedv2
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-20.04'
|
||||||
|
displayName: "kvmtest-dualtor-t0 by TestbedV2"
|
||||||
|
timeoutInMinutes: 1080
|
||||||
|
condition: and(succeeded(), eq(variables.BUILD_IMG_RUN_TESTBEDV2_TEST, 'YES'))
|
||||||
|
continueOnError: false
|
||||||
|
steps:
|
||||||
|
- template: .azure-pipelines/run-test-scheduler-template.yml
|
||||||
|
parameters:
|
||||||
|
TOPOLOGY: dualtor
|
||||||
|
MIN_WORKER: 1
|
||||||
|
MAX_WORKER: 1
|
||||||
|
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
|
||||||
|
MGMT_BRANCH: 202012
|
||||||
|
Reference in New Issue
Block a user