From f61334fb6e3acd24ba42a623f0f12d296a220355 Mon Sep 17 00:00:00 2001 From: lerry-lee <39114813+lerry-lee@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:19:43 +0800 Subject: [PATCH] [CI/CD] Use remote PR test template from sonic-mgmt master to run PR test (#15977) Why I did it Use remote PR test template from sonic-mgmt master to run PR test. How I did it Modify PR test azure pipeline yml file. How to verify it PR test executing normally. Signed-off-by: Chun'ang Li --- azure-pipelines.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 43218e11d3a8..1500dd78757b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,6 +29,7 @@ resources: - repository: sonic-mgmt type: github name: sonic-net/sonic-mgmt + ref: master endpoint: sonic-net - repository: buildimage type: github @@ -145,12 +146,12 @@ stages: timeoutInMinutes: 240 continueOnError: false steps: - - template: .azure-pipelines/run-test-scheduler-template.yml + - template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt parameters: TOPOLOGY: t0 MIN_WORKER: $(T0_INSTANCE_NUM) MAX_WORKER: $(T0_INSTANCE_NUM) - MGMT_BRANCH: 202205 + MGMT_BRANCH: "202205" - job: t0_2vlans_elastictest pool: ubuntu-20.04 @@ -158,14 +159,14 @@ stages: timeoutInMinutes: 240 continueOnError: false steps: - - template: .azure-pipelines/run-test-scheduler-template.yml + - template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt parameters: TOPOLOGY: t0 TEST_SET: t0-2vlans MIN_WORKER: $(T0_2VLANS_INSTANCE_NUM) MAX_WORKER: $(T0_2VLANS_INSTANCE_NUM) DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a" - MGMT_BRANCH: 202205 + MGMT_BRANCH: "202205" - job: t1_lag_elastictest pool: ubuntu-20.04 @@ -173,12 +174,12 @@ stages: timeoutInMinutes: 240 continueOnError: false steps: - - template: .azure-pipelines/run-test-scheduler-template.yml + - template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt parameters: TOPOLOGY: t1-lag MIN_WORKER: $(T1_LAG_INSTANCE_NUM) MAX_WORKER: $(T1_LAG_INSTANCE_NUM) - MGMT_BRANCH: 202205 + MGMT_BRANCH: "202205" - job: sonic_t0_elastictest pool: ubuntu-20.04 @@ -186,7 +187,7 @@ stages: timeoutInMinutes: 240 continueOnError: false steps: - - template: .azure-pipelines/run-test-scheduler-template.yml + - template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt parameters: TOPOLOGY: t0-64-32 MIN_WORKER: $(T0_SONIC_INSTANCE_NUM) @@ -194,7 +195,7 @@ stages: TEST_SET: t0-sonic COMMON_EXTRA_PARAMS: "--neighbor_type=sonic " VM_TYPE: vsonic - MGMT_BRANCH: 202205 + MGMT_BRANCH: "202205" - job: dualtor_elastictest pool: ubuntu-20.04 @@ -202,13 +203,13 @@ stages: timeoutInMinutes: 240 continueOnError: false steps: - - template: .azure-pipelines/run-test-scheduler-template.yml + - template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt parameters: TOPOLOGY: dualtor MIN_WORKER: $(T0_DUALTOR_INSTANCE_NUM) MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM) COMMON_EXTRA_PARAMS: "--disable_loganalyzer " - MGMT_BRANCH: 202205 + MGMT_BRANCH: "202205" - job: multi_asic_elastictest pool: ubuntu-20.04 @@ -216,11 +217,11 @@ stages: timeoutInMinutes: 1080 continueOnError: false steps: - - template: .azure-pipelines/run-test-scheduler-template.yml + - template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt parameters: TOPOLOGY: t1-8-lag TEST_SET: multi-asic-t1-lag MIN_WORKER: $(MULTI_ASIC_INSTANCE_NUM) MAX_WORKER: $(MULTI_ASIC_INSTANCE_NUM) NUM_ASIC: 4 - MGMT_BRANCH: 202205 + MGMT_BRANCH: "202205"