Skip to content

Commit ab397d0

Browse files
[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.
1 parent 3591f6b commit ab397d0

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ parameters:
4242
type: string
4343
default: ""
4444

45+
- name: NUM_ASIC
46+
type: number
47+
default: 1
48+
4549
steps:
4650
- script: |
4751
set -ex
@@ -57,7 +61,7 @@ steps:
5761
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 }} \
5862
--test-set ${{ parameters.TEST_SET }} --kvm-build-id $(KVM_BUILD_ID) \
5963
--deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" --mgmt-branch ${{ parameters.MGMT_BRANCH }} \
60-
--vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}"
64+
--vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" --num-asic ${{ parameters.NUM_ASIC }}
6165
TEST_PLAN_ID=`cat new_test_plan_id.txt`
6266
6367
echo "Created test plan $TEST_PLAN_ID"

azure-pipelines.yml

+17
Original file line numberDiff line numberDiff line change
@@ -333,3 +333,20 @@ stages:
333333
MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
334334
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
335335
MGMT_BRANCH: 202205
336+
337+
- job: multi_asic_testbedv2
338+
displayName: "kvmtest-multi-asic-t1-lag by TestbedV2"
339+
pool:
340+
vmImage: 'ubuntu-20.04'
341+
timeoutInMinutes: 1080
342+
condition: and(succeeded(), eq(variables.BUILD_IMG_RUN_TESTBEDV2_TEST, 'YES'))
343+
continueOnError: false
344+
steps:
345+
- template: .azure-pipelines/run-test-scheduler-template.yml
346+
parameters:
347+
TOPOLOGY: t1-8-lag
348+
TEST_SET: multi-asic-t1-lag
349+
MIN_WORKER: 1
350+
MAX_WORKER: 1
351+
NUM_ASIC: 4
352+
MGMT_BRANCH: 202205

0 commit comments

Comments
 (0)