[master][TestbedV2] migrate t0-sonic test jobs to TestbedV2. (#12651)
Migrate t0-sonic test jobs to TestbedV2. Why I did it Migrate t0-sonic test jobs to TestbedV2. How I did it Add two parameters to create testplan. Modify azure-pipelines.yml to run t0-sonic on tbv2. Signed-off-by: Yutong Zhang <yutongzhang@microsoft.com>
This commit is contained in:
parent
111752957f
commit
7c746e67d2
@ -30,6 +30,18 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
|
- name: VM_TYPE
|
||||||
|
type: string
|
||||||
|
default: "ceos"
|
||||||
|
|
||||||
|
- name: SPECIFIED_PARAMS
|
||||||
|
type: string
|
||||||
|
default: "{}"
|
||||||
|
|
||||||
|
- name: MGMT_BRANCH
|
||||||
|
type: string
|
||||||
|
default: master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
set -ex
|
set -ex
|
||||||
@ -41,7 +53,11 @@ 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 }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}"
|
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 }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" \
|
||||||
|
--mgmt-branch ${{ parameters.MGMT_BRANCH }} --vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_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"
|
||||||
|
@ -290,6 +290,7 @@ stages:
|
|||||||
pool: sonictest-sonic-t0
|
pool: sonictest-sonic-t0
|
||||||
displayName: "kvmtest-t0-sonic"
|
displayName: "kvmtest-t0-sonic"
|
||||||
timeoutInMinutes: 360
|
timeoutInMinutes: 360
|
||||||
|
condition: and(succeeded(), eq(variables.BUILD_IMG_RUN_CLASSICAL_TEST, 'YES'))
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
steps:
|
steps:
|
||||||
- template: .azure-pipelines/run-test-template.yml
|
- template: .azure-pipelines/run-test-template.yml
|
||||||
@ -328,4 +329,21 @@ stages:
|
|||||||
MIN_WORKER: 1
|
MIN_WORKER: 1
|
||||||
MAX_WORKER: 1
|
MAX_WORKER: 1
|
||||||
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
|
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
|
||||||
|
|
||||||
|
- job: sonic_t0_testbedv2
|
||||||
|
displayName: "kvmtest-t0-sonic by TestbedV2"
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-20.04'
|
||||||
|
timeoutInMinutes: 1080
|
||||||
|
condition: and(succeeded(), eq(variables.BUILD_IMG_RUN_TESTBEDV2_TEST, 'YES'))
|
||||||
|
continueOnError: true
|
||||||
|
steps:
|
||||||
|
- template: .azure-pipelines/run-test-scheduler-template.yml
|
||||||
|
parameters:
|
||||||
|
TOPOLOGY: t0-64-32
|
||||||
|
MIN_WORKER: 1
|
||||||
|
MAX_WORKER: 2
|
||||||
|
TEST_SET: t0-sonic
|
||||||
|
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic --enable_macsec --macsec_profile=128_SCI,256_XPN_SCI"
|
||||||
|
VM_TYPE: vsonic
|
||||||
|
SPECIFIED_PARAMS: '{\"test_pretest.py\":[\"--completeness_level=confident\",\"--allow_recover\"],\"test_posttest.py\":[\"--completeness_level=confident\",\"--allow_recover\"]}'
|
||||||
|
Reference in New Issue
Block a user