Skip to content

Commit 21e49f9

Browse files
Transition multi_asic_t1 PR checker to impacted area-based PR checker (sonic-net#16789)
Description of PR In this PR, we transition the multi_asic_t1 PR checker to impacted area-based PR checker, enabling automatic selection of test scripts using pytest marks. Summary: Fixes # (issue) Approach What is the motivation for this PR? In this PR, we transition the multi_asic_t1 PR checker to impacted area-based PR checker, enabling automatic selection of test scripts using pytest marks. How did you do it? Transition the multi_asic_t1 PR checker to impacted area-based PR checker, How did you verify/test it? Test by pipeline itself. co-authorized by: jianquanye@microsoft.com
1 parent be40d55 commit 21e49f9

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

azure-pipelines.yml

+15-6
Original file line numberDiff line numberDiff line change
@@ -261,20 +261,29 @@ stages:
261261
KVM_IMAGE_BRANCH: $(BUILD_BRANCH)
262262
MGMT_BRANCH: "master"
263263

264-
# Below is the original PR checkers
265-
- job: onboarding_multi_asic_elastictest_t1
266-
displayName: "onboarding t1 testcases for kvmtest-multi-asic-t1-lag by Elastictest - optional"
264+
# This PR checker aims to run all t1 test scripts on multi-asic topology.
265+
- job: impacted_area_multi_asic_t1_elastictest
266+
displayName: "impacted-area-kvmtest-multi_asic_t1 by Elastictest - optional"
267+
dependsOn: get_impacted_area
268+
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], 't1_checker')
269+
variables:
270+
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
267271
timeoutInMinutes: 240
268272
continueOnError: true
269273
pool: sonic-ubuntu-1c
270274
steps:
275+
- template: .azure-pipelines/impacted_area_testing/calculate-instance-numbers.yml
276+
parameters:
277+
TOPOLOGY: t1
278+
BUILD_BRANCH: $(BUILD_BRANCH)
279+
271280
- template: .azure-pipelines/run-test-elastictest-template.yml
272281
parameters:
273282
TOPOLOGY: t1-8-lag
274283
STOP_ON_FAILURE: "False"
275-
TEST_SET: onboarding_t1_multi_asic
276-
MIN_WORKER: $(T1_MULTI_ASIC_ONBOARDING_INSTANCE_NUM)
277-
MAX_WORKER: $(T1_MULTI_ASIC_ONBOARDING_INSTANCE_NUM)
284+
SCRIPTS: $(SCRIPTS)
285+
MIN_WORKER: $(INSTANCE_NUMBER)
286+
MAX_WORKER: $(INSTANCE_NUMBER)
278287
NUM_ASIC: 4
279288
KVM_IMAGE_BRANCH: $(BUILD_BRANCH)
280289
MGMT_BRANCH: "master"

0 commit comments

Comments
 (0)