Skip to content

Commit 80401ab

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-gcu_t2_support_ecn_config
2 parents e2c559b + 31bec95 commit 80401ab

1,240 files changed

Lines changed: 207570 additions & 24241 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.azure-pipelines/baseline_test/baseline.test.mgmt.public.master.yml renamed to .azure-pipelines/baseline_test/baseline.test.mgmt.public.yml

File renamed without changes.
Lines changed: 63 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -1,214 +1,101 @@
11
jobs:
22
- job: get_impacted_area
3+
cancelTimeoutInMinutes: 10
34
displayName: "Get impacted area"
45
timeoutInMinutes: 240
56
continueOnError: false
67
pool: sonic-ubuntu-1c
78
steps:
89
- template: ../impacted_area_testing/get-impacted-area.yml
910

10-
- job: impacted_area_t0_elastictest
11-
displayName: "impacted-area-kvmtest-t0 by Elastictest"
11+
- job: impacted_area_kvmtest
12+
displayName: " "
13+
cancelTimeoutInMinutes: 10
1214
dependsOn: get_impacted_area
13-
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 't0_checker')
14-
variables:
15-
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
16-
timeoutInMinutes: 240
17-
continueOnError: false
18-
pool: sonic-ubuntu-1c
19-
steps:
20-
- template: ../impacted_area_testing/calculate-instance-numbers.yml
21-
parameters:
15+
strategy:
16+
matrix:
17+
impacted-area-kvmtest-t0:
18+
TESTBED_PREP_TOPOLOGY: t0
19+
CHECKER: t0_checker
2220
TOPOLOGY: t0
23-
BUILD_BRANCH: "master"
24-
25-
- template: ../run-test-elastictest-template.yml
26-
parameters:
27-
TOPOLOGY: t0
28-
SCRIPTS: $(SCRIPTS)
29-
MIN_WORKER: $(INSTANCE_NUMBER)
30-
MAX_WORKER: $(INSTANCE_NUMBER)
31-
KVM_IMAGE_BRANCH: "master"
32-
MGMT_BRANCH: "master"
33-
BUILD_REASON: "BaselineTest"
34-
RETRY_TIMES: "0"
35-
STOP_ON_FAILURE: "False"
36-
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
37-
38-
- job: impacted_area_t0_2vlans_elastictest
39-
displayName: "impacted-area-kvmtest-t0_2vlans by Elastictest"
40-
dependsOn: get_impacted_area
41-
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 't0-2vlans_checker')
42-
variables:
43-
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
44-
timeoutInMinutes: 240
45-
continueOnError: false
46-
pool: sonic-ubuntu-1c
47-
steps:
48-
- template: ../impacted_area_testing/calculate-instance-numbers.yml
49-
parameters:
50-
TOPOLOGY: t0-2vlans
51-
BUILD_BRANCH: "master"
52-
53-
- template: ../run-test-elastictest-template.yml
54-
parameters:
21+
PREPARE_TIME: 30
22+
impacted-area-kvmtest-t0-2vlans:
23+
TESTBED_PREP_TOPOLOGY: t0-2vlans
24+
CHECKER: t0-2vlans_checker
25+
DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a "
5526
TOPOLOGY: t0
56-
SCRIPTS: $(SCRIPTS)
57-
MIN_WORKER: $(INSTANCE_NUMBER)
58-
MAX_WORKER: $(INSTANCE_NUMBER)
59-
DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a"
60-
KVM_IMAGE_BRANCH: "master"
61-
MGMT_BRANCH: "master"
62-
BUILD_REASON: "BaselineTest"
63-
RETRY_TIMES: "0"
64-
STOP_ON_FAILURE: "False"
65-
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
66-
67-
- job: impacted_area_t1_lag_elastictest
68-
displayName: "impacted-area-kvmtest-t1-lag by Elastictest"
69-
dependsOn: get_impacted_area
70-
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 't1_checker')
71-
variables:
72-
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
73-
timeoutInMinutes: 240
74-
continueOnError: false
75-
pool: sonic-ubuntu-1c
76-
steps:
77-
- template: ../impacted_area_testing/calculate-instance-numbers.yml
78-
parameters:
79-
TOPOLOGY: t1
80-
BUILD_BRANCH: "master"
27+
PREPARE_TIME: 30
28+
impacted-area-kvmtest-t1-lag:
29+
TESTBED_PREP_TOPOLOGY: t1
30+
CHECKER: t1_checker
31+
TOPOLOGY: t1-lag
8132
# 50 mins for preparing testbed, 30 mins for pre-test and post-test
8233
PREPARE_TIME: 80
83-
84-
- template: ../run-test-elastictest-template.yml
85-
parameters:
86-
TOPOLOGY: t1-lag
87-
SCRIPTS: $(SCRIPTS)
88-
MIN_WORKER: $(INSTANCE_NUMBER)
89-
MAX_WORKER: $(INSTANCE_NUMBER)
90-
KVM_IMAGE_BRANCH: "master"
91-
MGMT_BRANCH: "master"
92-
BUILD_REASON: "BaselineTest"
93-
RETRY_TIMES: "0"
94-
STOP_ON_FAILURE: "False"
95-
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
96-
97-
- job: impacted_area_dualtor_elastictest
98-
displayName: "impacted-area-kvmtest-dualtor by Elastictest"
99-
dependsOn: get_impacted_area
100-
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 'dualtor_checker')
101-
variables:
102-
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
103-
timeoutInMinutes: 240
104-
continueOnError: false
105-
pool: sonic-ubuntu-1c
106-
steps:
107-
- template: ../impacted_area_testing/calculate-instance-numbers.yml
108-
parameters:
34+
impacted-area-kvmtest-dualtor:
35+
TESTBED_PREP_TOPOLOGY: dualtor
36+
CHECKER: dualtor_checker
37+
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
10938
TOPOLOGY: dualtor
110-
BUILD_BRANCH: "master"
11139
# 30 mins for preparing testbed, 30 mins for pre-test and 20 mins for post-test
11240
PREPARE_TIME: 80
113-
114-
- template: ../run-test-elastictest-template.yml
115-
parameters:
116-
TOPOLOGY: dualtor
117-
SCRIPTS: $(SCRIPTS)
118-
MIN_WORKER: $(INSTANCE_NUMBER)
119-
MAX_WORKER: $(INSTANCE_NUMBER)
120-
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
121-
KVM_IMAGE_BRANCH: "master"
122-
MGMT_BRANCH: "master"
123-
BUILD_REASON: "BaselineTest"
124-
RETRY_TIMES: "0"
125-
STOP_ON_FAILURE: "False"
126-
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
127-
128-
- job: impacted_area_multi_asic_elastictest
129-
displayName: "impacted-area-kvmtest-multi_asic by Elastictest"
130-
dependsOn: get_impacted_area
131-
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 't1-multi-asic_checker')
132-
variables:
133-
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
134-
timeoutInMinutes: 240
135-
continueOnError: false
136-
pool: sonic-ubuntu-1c
137-
steps:
138-
- template: ../impacted_area_testing/calculate-instance-numbers.yml
139-
parameters:
140-
TOPOLOGY: t1-multi-asic
141-
BUILD_BRANCH: "master"
142-
143-
- template: ../run-test-elastictest-template.yml
144-
parameters:
41+
impacted-area-kvmtest-multi-asic-t1:
42+
TESTBED_PREP_TOPOLOGY: t1-multi-asic
43+
CHECKER: t1-multi-asic_checker
14544
TOPOLOGY: t1-8-lag
146-
SCRIPTS: $(SCRIPTS)
147-
MIN_WORKER: $(INSTANCE_NUMBER)
148-
MAX_WORKER: $(INSTANCE_NUMBER)
14945
NUM_ASIC: 4
150-
KVM_IMAGE_BRANCH: "master"
151-
MGMT_BRANCH: "master"
152-
BUILD_REASON: "BaselineTest"
153-
RETRY_TIMES: "0"
154-
STOP_ON_FAILURE: "False"
155-
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
156-
157-
- job: impacted_area_sonic_t0_elastictest
158-
displayName: "impacted-area-kvmtest-sonic_t0 by Elastictest"
159-
dependsOn: get_impacted_area
160-
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 't0-sonic_checker')
161-
variables:
162-
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
163-
timeoutInMinutes: 240
164-
continueOnError: false
165-
pool: sonic-ubuntu-1c
166-
steps:
167-
- template: ../impacted_area_testing/calculate-instance-numbers.yml
168-
parameters:
169-
TOPOLOGY: t0-sonic
170-
BUILD_BRANCH: "master"
171-
PREPARE_TIME: 40
172-
173-
- template: ../run-test-elastictest-template.yml
174-
parameters:
175-
TOPOLOGY: t0-64-32
176-
SCRIPTS: $(SCRIPTS)
177-
MIN_WORKER: $(INSTANCE_NUMBER)
178-
MAX_WORKER: $(INSTANCE_NUMBER)
179-
KVM_IMAGE_BRANCH: "master"
46+
PREPARE_TIME: 30
47+
impacted-area-kvmtest-t0-sonic:
48+
TESTBED_PREP_TOPOLOGY: t0-sonic
49+
CHECKER: t0-sonic_checker
18050
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic "
51+
TOPOLOGY: t0-64-32
52+
PREPARE_TIME: 40
18153
VM_TYPE: vsonic
182-
MGMT_BRANCH: "master"
183-
BUILD_REASON: "BaselineTest"
184-
RETRY_TIMES: "0"
185-
STOP_ON_FAILURE: "False"
186-
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
187-
188-
- job: impacted_area_dpu_elastictest
189-
displayName: "impacted-area-kvmtest-dpu by Elastictest"
190-
dependsOn: get_impacted_area
191-
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 'dpu_checker')
54+
SPECIFIC_PARAM: '[
55+
{"name": "bgp/test_bgp_fact.py", "param": "--neighbor_type=sonic --enable_macsec --macsec_profile=128_SCI,256_XPN_SCI"},
56+
{"name": "macsec", "param": "--neighbor_type=sonic --enable_macsec --macsec_profile=128_SCI,256_XPN_SCI"}
57+
]'
58+
impacted-area-kvmtest-dpu:
59+
TESTBED_PREP_TOPOLOGY: dpu
60+
CHECKER: dpu_checker
61+
TOPOLOGY: dpu
62+
PREPARE_TIME: 30
63+
SPECIFIC_PARAM: '[
64+
{"name": "dash/test_dash_vnet.py", "param": "--skip_dataplane_checking"}
65+
]'
66+
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], variables['CHECKER'])
19267
variables:
19368
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
194-
timeoutInMinutes: 240
69+
NUM_ASIC: 1
70+
VM_TYPE: ceos
71+
COMMON_EXTRA_PARAMS: ""
72+
DEPLOY_MG_EXTRA_PARAMS: ""
73+
SPECIFIC_PARAM: "[]"
74+
timeoutInMinutes: 300
19575
continueOnError: false
19676
pool: sonic-ubuntu-1c
19777
steps:
19878
- template: ../impacted_area_testing/calculate-instance-numbers.yml
19979
parameters:
200-
TOPOLOGY: dpu
201-
BUILD_BRANCH: "master"
80+
TOPOLOGY: $(TESTBED_PREP_TOPOLOGY)
81+
BUILD_BRANCH: $(Build.SourceBranchName)
82+
PREPARE_TIME: $(PREPARE_TIME)
20283

20384
- template: ../run-test-elastictest-template.yml
20485
parameters:
205-
TOPOLOGY: dpu
86+
TOPOLOGY: $(TOPOLOGY)
20687
SCRIPTS: $(SCRIPTS)
20788
MIN_WORKER: $(INSTANCE_NUMBER)
20889
MAX_WORKER: $(INSTANCE_NUMBER)
209-
KVM_IMAGE_BRANCH: "master"
210-
MGMT_BRANCH: "master"
90+
DEPLOY_MG_EXTRA_PARAMS: $(DEPLOY_MG_EXTRA_PARAMS)
91+
COMMON_EXTRA_PARAMS: $(COMMON_EXTRA_PARAMS)
92+
KVM_IMAGE_BRANCH: $(Build.SourceBranchName)
93+
MGMT_BRANCH: $(Build.SourceBranchName)
21194
BUILD_REASON: "BaselineTest"
21295
RETRY_TIMES: "0"
21396
STOP_ON_FAILURE: "False"
21497
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
98+
NUM_ASIC: $(NUM_ASIC)
99+
VM_TYPE: $(VM_TYPE)
100+
SPECIFIC_PARAM: $(SPECIFIC_PARAM)
101+
MAX_RUN_TEST_MINUTES: 240

0 commit comments

Comments
 (0)