From 10c2d601ed2f51960206be16d4b13ad1d0fe425e Mon Sep 17 00:00:00 2001 From: Yutong Zhang <90831468+yutongzhang-microsoft@users.noreply.github.com> Date: Wed, 16 Nov 2022 13:48:19 +0800 Subject: [PATCH] [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 --- .azure-pipelines/run-test-scheduler-template.yml | 8 +++++++- azure-pipelines.yml | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/run-test-scheduler-template.yml b/.azure-pipelines/run-test-scheduler-template.yml index 963b9d5b59..5af2f8696e 100644 --- a/.azure-pipelines/run-test-scheduler-template.yml +++ b/.azure-pipelines/run-test-scheduler-template.yml @@ -30,6 +30,10 @@ parameters: type: string default: master +- name: COMMON_EXTRA_PARAMS + type: string + default: "" + steps: - script: | set -ex @@ -42,7 +46,9 @@ steps: set -ex pip install PyYAML 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` echo "Created test plan $TEST_PLAN_ID" diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ed140d61a5..4fcdcb3926 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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)" 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