@@ -18,6 +18,10 @@ parameters:
18
18
type : string
19
19
default : 1
20
20
21
+ - name : NUM_ASIC
22
+ type : number
23
+ default : 1
24
+
21
25
- name : TEST_SET
22
26
type : string
23
27
default : " "
@@ -34,17 +38,73 @@ parameters:
34
38
type : string
35
39
default : " ceos"
36
40
37
- - name : SPECIFIED_PARAMS
41
+ - name : TESTBED_NAME
42
+ type : string
43
+ default : " "
44
+
45
+ - name : IMAGE_URL
46
+ type : string
47
+ default : " "
48
+
49
+ - name : HWSKU
50
+ type : string
51
+ default : " "
52
+
53
+ - name : TEST_PLAN_TYPE
54
+ type : string
55
+ default : " "
56
+
57
+ - name : PLATFORM
58
+ type : string
59
+ default : " "
60
+
61
+ - name : SCRIPTS
62
+ type : string
63
+ default : " "
64
+
65
+ - name : FEATURES
66
+ type : string
67
+ default : " "
68
+
69
+ - name : SCRIPTS_EXCLUDE
70
+ type : string
71
+ default : " "
72
+
73
+ - name : FEATURES_EXCLUDE
38
74
type : string
39
- default : " {}"
75
+ default : " "
76
+
77
+ - name : REPO_NAME
78
+ type : string
79
+ default : " "
40
80
41
81
- name : MGMT_BRANCH
42
82
type : string
43
- default : master
83
+ default : " "
44
84
45
- - name : NUM_ASIC
85
+ - name : STOP_ON_FAILURE
86
+ type : string
87
+ default : " "
88
+
89
+ - name : RETRY_TIMES
90
+ type : string
91
+ default : " "
92
+
93
+ - name : DUMP_KVM_IF_FAIL
94
+ type : string
95
+ default : " True"
96
+ values :
97
+ - " True"
98
+ - " False"
99
+
100
+ - name : REQUESTER
101
+ type : string
102
+ default : " "
103
+
104
+ - name : MAX_RUN_TEST_MINUTES
46
105
type : number
47
- default : 1
106
+ default : 480
107
+
48
108
49
109
steps :
50
110
- script : |
@@ -57,12 +117,20 @@ steps:
57
117
set -e
58
118
pip install PyYAML
59
119
rm -f new_test_plan_id.txt
60
- python ./.azure-pipelines/test_plan.py create -t ${{ parameters.TOPOLOGY }} -o new_test_plan_id.txt \
61
- --min-worker ${{ parameters.MIN_WORKER }} --max-worker ${{ parameters.MAX_WORKER }} \
62
- --test-set ${{ parameters.TEST_SET }} --kvm-build-id $(KVM_BUILD_ID) \
63
- --deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" \
64
- --mgmt-branch ${{ parameters.MGMT_BRANCH }} --vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" \
120
+
121
+ python ./.azure-pipelines/test_plan.py create \
122
+ -t ${{ parameters.TOPOLOGY }} \
123
+ -o new_test_plan_id.txt \
124
+ --min-worker ${{ parameters.MIN_WORKER }} \
125
+ --max-worker ${{ parameters.MAX_WORKER }} \
126
+ --test-set ${{ parameters.TEST_SET }} \
127
+ --kvm-build-id $(KVM_BUILD_ID) \
128
+ --deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" \
129
+ --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" \
130
+ --mgmt-branch ${{ parameters.MGMT_BRANCH }} \
131
+ --vm-type ${{ parameters.VM_TYPE }} \
65
132
--num-asic ${{ parameters.NUM_ASIC }}
133
+
66
134
TEST_PLAN_ID=`cat new_test_plan_id.txt`
67
135
68
136
echo "Created test plan $TEST_PLAN_ID"
@@ -108,18 +176,20 @@ steps:
108
176
env:
109
177
TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
110
178
displayName: Run test
111
-
112
- - script : |
113
- set -e
114
- echo "KVM dump"
115
- echo "SONiC PR system-level test is powered by SONiC Elastictest, for any issue, please send email to [email protected] "
116
- echo "Runtime detailed progress at $(FRONTEND_URL)/scheduler/testplan/$TEST_PLAN_ID "
117
- # When "KVMDUMP" finish, it changes into "FAILED", "CANCELLED" or "FINISHED"
118
- python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --expected-state KVMDUMP
119
- condition: succeededOrFailed()
120
- env:
121
- TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
122
- displayName: KVM dump
179
+ timeoutInMinutes: ${{ parameters.MAX_RUN_TEST_MINUTES }}
180
+
181
+ - ${{ if eq(parameters.DUMP_KVM_IF_FAIL, 'True') }} :
182
+ - script : |
183
+ set -e
184
+ echo "KVM dump"
185
+ echo "SONiC PR system-level test is powered by SONiC Elastictest, for any issue, please send email to [email protected] "
186
+ echo "Runtime detailed progress at $(FRONTEND_URL)/scheduler/testplan/$TEST_PLAN_ID "
187
+ # When "KVMDUMP" finish, it changes into "FAILED", "CANCELLED" or "FINISHED"
188
+ python ./.azure-pipelines/test_plan.py poll -i "$(TEST_PLAN_ID)" --expected-state KVMDUMP
189
+ condition: succeededOrFailed()
190
+ env:
191
+ TESTBED_TOOLS_URL: $(TESTBED_TOOLS_URL)
192
+ displayName: KVM dump
123
193
124
194
- script : |
125
195
set -e
0 commit comments