[CI/CD] Use remote PR test template from sonic-mgmt master to run PR test (#15980)
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 <chunangli@microsoft.com>
This commit is contained in:
parent
c564f37ec4
commit
3dfe75df7d
@ -28,6 +28,7 @@ resources:
|
|||||||
- repository: sonic-mgmt
|
- repository: sonic-mgmt
|
||||||
type: github
|
type: github
|
||||||
name: sonic-net/sonic-mgmt
|
name: sonic-net/sonic-mgmt
|
||||||
|
ref: master
|
||||||
endpoint: sonic-net
|
endpoint: sonic-net
|
||||||
- repository: buildimage
|
- repository: buildimage
|
||||||
type: github
|
type: github
|
||||||
@ -153,12 +154,12 @@ stages:
|
|||||||
timeoutInMinutes: 240
|
timeoutInMinutes: 240
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
steps:
|
steps:
|
||||||
- template: .azure-pipelines/run-test-scheduler-template.yml
|
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
|
||||||
parameters:
|
parameters:
|
||||||
TOPOLOGY: t0
|
TOPOLOGY: t0
|
||||||
MIN_WORKER: $(T0_INSTANCE_NUM)
|
MIN_WORKER: $(T0_INSTANCE_NUM)
|
||||||
MAX_WORKER: $(T0_INSTANCE_NUM)
|
MAX_WORKER: $(T0_INSTANCE_NUM)
|
||||||
MGMT_BRANCH: master
|
MGMT_BRANCH: "202305"
|
||||||
|
|
||||||
- job: t0_2vlans_elastictest
|
- job: t0_2vlans_elastictest
|
||||||
pool: ubuntu-20.04
|
pool: ubuntu-20.04
|
||||||
@ -166,13 +167,13 @@ stages:
|
|||||||
timeoutInMinutes: 240
|
timeoutInMinutes: 240
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
steps:
|
steps:
|
||||||
- template: .azure-pipelines/run-test-scheduler-template.yml
|
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
|
||||||
parameters:
|
parameters:
|
||||||
TOPOLOGY: t0
|
TOPOLOGY: t0
|
||||||
TEST_SET: t0-2vlans
|
TEST_SET: t0-2vlans
|
||||||
MIN_WORKER: $(T0_2VLANS_INSTANCE_NUM)
|
MIN_WORKER: $(T0_2VLANS_INSTANCE_NUM)
|
||||||
MAX_WORKER: $(T0_2VLANS_INSTANCE_NUM)
|
MAX_WORKER: $(T0_2VLANS_INSTANCE_NUM)
|
||||||
MGMT_BRANCH: master
|
MGMT_BRANCH: "202305"
|
||||||
DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a"
|
DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a"
|
||||||
|
|
||||||
- job: t1_lag_elastictest
|
- job: t1_lag_elastictest
|
||||||
@ -181,12 +182,12 @@ stages:
|
|||||||
timeoutInMinutes: 240
|
timeoutInMinutes: 240
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
steps:
|
steps:
|
||||||
- template: .azure-pipelines/run-test-scheduler-template.yml
|
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
|
||||||
parameters:
|
parameters:
|
||||||
TOPOLOGY: t1-lag
|
TOPOLOGY: t1-lag
|
||||||
MIN_WORKER: $(T1_LAG_INSTANCE_NUM)
|
MIN_WORKER: $(T1_LAG_INSTANCE_NUM)
|
||||||
MAX_WORKER: $(T1_LAG_INSTANCE_NUM)
|
MAX_WORKER: $(T1_LAG_INSTANCE_NUM)
|
||||||
MGMT_BRANCH: master
|
MGMT_BRANCH: "202305"
|
||||||
|
|
||||||
- job: multi_asic_elastictest
|
- job: multi_asic_elastictest
|
||||||
displayName: "kvmtest-multi-asic-t1-lag by Elastictest"
|
displayName: "kvmtest-multi-asic-t1-lag by Elastictest"
|
||||||
@ -194,14 +195,14 @@ stages:
|
|||||||
timeoutInMinutes: 240
|
timeoutInMinutes: 240
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
steps:
|
steps:
|
||||||
- template: .azure-pipelines/run-test-scheduler-template.yml
|
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
|
||||||
parameters:
|
parameters:
|
||||||
TOPOLOGY: t1-8-lag
|
TOPOLOGY: t1-8-lag
|
||||||
TEST_SET: multi-asic-t1-lag
|
TEST_SET: multi-asic-t1-lag
|
||||||
MIN_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
|
MIN_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
|
||||||
MAX_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
|
MAX_WORKER: $(MULTI_ASIC_INSTANCE_NUM)
|
||||||
NUM_ASIC: 4
|
NUM_ASIC: 4
|
||||||
MGMT_BRANCH: master
|
MGMT_BRANCH: "202305"
|
||||||
|
|
||||||
- job: dualtor_elastictest
|
- job: dualtor_elastictest
|
||||||
pool: ubuntu-20.04
|
pool: ubuntu-20.04
|
||||||
@ -209,12 +210,12 @@ stages:
|
|||||||
timeoutInMinutes: 240
|
timeoutInMinutes: 240
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
steps:
|
steps:
|
||||||
- template: .azure-pipelines/run-test-scheduler-template.yml
|
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
|
||||||
parameters:
|
parameters:
|
||||||
TOPOLOGY: dualtor
|
TOPOLOGY: dualtor
|
||||||
MIN_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
|
MIN_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
|
||||||
MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
|
MAX_WORKER: $(T0_DUALTOR_INSTANCE_NUM)
|
||||||
MGMT_BRANCH: master
|
MGMT_BRANCH: "202305"
|
||||||
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
|
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
|
||||||
|
|
||||||
- job: sonic_t0_elastictest
|
- job: sonic_t0_elastictest
|
||||||
@ -223,13 +224,13 @@ stages:
|
|||||||
timeoutInMinutes: 240
|
timeoutInMinutes: 240
|
||||||
continueOnError: false
|
continueOnError: false
|
||||||
steps:
|
steps:
|
||||||
- template: .azure-pipelines/run-test-scheduler-template.yml
|
- template: .azure-pipelines/run-test-elastictest-template.yml@sonic-mgmt
|
||||||
parameters:
|
parameters:
|
||||||
TOPOLOGY: t0-64-32
|
TOPOLOGY: t0-64-32
|
||||||
MIN_WORKER: $(T0_SONIC_INSTANCE_NUM)
|
MIN_WORKER: $(T0_SONIC_INSTANCE_NUM)
|
||||||
MAX_WORKER: $(T0_SONIC_INSTANCE_NUM)
|
MAX_WORKER: $(T0_SONIC_INSTANCE_NUM)
|
||||||
TEST_SET: t0-sonic
|
TEST_SET: t0-sonic
|
||||||
MGMT_BRANCH: master
|
MGMT_BRANCH: "202305"
|
||||||
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic "
|
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic "
|
||||||
VM_TYPE: vsonic
|
VM_TYPE: vsonic
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user