[202205][TestbedV2] Add multi-asic test jobs using TestbedV2. (#12722)
Why I did it Add multi-asic test jobs using TestbedV2 in 202205 branch. How I did it 1. Add a job in azure-pipelines.yml to add a multi-asic test job using TestbedV2 in 202205 branch. 2. Add a parameter num_asic in .azure-pipelines/run-test-scheduler-template.yml to appiont the specific image version.
This commit is contained in:
parent
3591f6b8a3
commit
ab397d04ed
@ -42,6 +42,10 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
|
- name: NUM_ASIC
|
||||||
|
type: number
|
||||||
|
default: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
set -ex
|
set -ex
|
||||||
@ -57,7 +61,7 @@ steps:
|
|||||||
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 }} \
|
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) \
|
--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 }} \
|
--deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" --mgmt-branch ${{ parameters.MGMT_BRANCH }} \
|
||||||
--vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}"
|
--vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" --num-asic ${{ parameters.NUM_ASIC }}
|
||||||
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"
|
||||||
|
@ -333,3 +333,20 @@ stages:
|
|||||||
MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
|
MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
|
||||||
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
|
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
|
||||||
MGMT_BRANCH: 202205
|
MGMT_BRANCH: 202205
|
||||||
|
|
||||||
|
- job: multi_asic_testbedv2
|
||||||
|
displayName: "kvmtest-multi-asic-t1-lag by TestbedV2"
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-20.04'
|
||||||
|
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: t1-8-lag
|
||||||
|
TEST_SET: multi-asic-t1-lag
|
||||||
|
MIN_WORKER: 1
|
||||||
|
MAX_WORKER: 1
|
||||||
|
NUM_ASIC: 4
|
||||||
|
MGMT_BRANCH: 202205
|
||||||
|
Reference in New Issue
Block a user