@@ -101,18 +101,16 @@ jobs: |
101 | 101 | printf '%s\n' "${a[@]}" | jq -R . | jq -s . |
102 | 102 | echo version-json=`printf '%s\n' "${a[@]}" | jq -R . | jq -s .` >> $GITHUB_OUTPUT |
103 | 103 |
|
104 | | - deploy: |
| 104 | + deploy-e2e: |
105 | 105 | if: ${{ success() }} |
106 | | - name: Deploy RocketMQ |
| 106 | + name: Deploy RocketMQ For E2E |
107 | 107 | needs: [list-version,docker] |
108 | 108 | runs-on: ubuntu-latest |
109 | 109 | timeout-minutes: 60 |
110 | 110 | strategy: |
111 | 111 | matrix: |
112 | 112 | version: ${{ fromJSON(needs.list-version.outputs.version-json) }} |
113 | | - test-type: [e2e, benchmark] |
114 | 113 | steps: |
115 | | - - run: echo "Running ${{ matrix.test-type }}... " |
116 | 114 | - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 |
117 | 115 | name: Deploy rocketmq |
118 | 116 | with: |
@@ -137,10 +135,44 @@ jobs: |
137 | 135 | repository: ${{env.DOCKER_REPO}} |
138 | 136 | tag: ${{ matrix.version }} |
139 | 137 |
|
| 138 | + deploy-benchmark: |
| 139 | + if: ${{ success() }} |
| 140 | + name: Deploy RocketMQ For Benchmarking |
| 141 | + needs: [list-version,docker] |
| 142 | + runs-on: ubuntu-latest |
| 143 | + timeout-minutes: 60 |
| 144 | + strategy: |
| 145 | + matrix: |
| 146 | + version: ${{ fromJSON(needs.list-version.outputs.version-json) }} |
| 147 | + steps: |
| 148 | + - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 |
| 149 | + name: Deploy rocketmq |
| 150 | + with: |
| 151 | + action: "deploy" |
| 152 | + ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" |
| 153 | + test-version: "${{ matrix.version }}" |
| 154 | + chart-git: "https://ghproxy.com/https://github.com/apache/rocketmq-docker.git" |
| 155 | + chart-branch: "master" |
| 156 | + chart-path: "./rocketmq-k8s-helm" |
| 157 | + job-id: "001-${{ strategy.job-index }}" |
| 158 | + helm-values: | |
| 159 | + nameserver: |
| 160 | + image: |
| 161 | + repository: ${{env.DOCKER_REPO}} |
| 162 | + tag: ${{ matrix.version }} |
| 163 | + broker: |
| 164 | + image: |
| 165 | + repository: ${{env.DOCKER_REPO}} |
| 166 | + tag: ${{ matrix.version }} |
| 167 | + proxy: |
| 168 | + image: |
| 169 | + repository: ${{env.DOCKER_REPO}} |
| 170 | + tag: ${{ matrix.version }} |
| 171 | +
|
140 | 172 | test-e2e-grpc-java: |
141 | 173 | if: ${{ success() }} |
142 | 174 | name: Test E2E grpc java |
143 | | - needs: [list-version, deploy] |
| 175 | + needs: [list-version, deploy-e2e] |
144 | 176 | runs-on: ubuntu-latest |
145 | 177 | timeout-minutes: 60 |
146 | 178 | strategy: |
@@ -176,7 +208,7 @@ jobs: |
176 | 208 | test-e2e-golang: |
177 | 209 | if: ${{ success() }} |
178 | 210 | name: Test E2E golang |
179 | | - needs: [list-version, deploy] |
| 211 | + needs: [list-version, deploy-e2e] |
180 | 212 | runs-on: ubuntu-latest |
181 | 213 | timeout-minutes: 60 |
182 | 214 | strategy: |
@@ -217,7 +249,7 @@ jobs: |
217 | 249 | test-e2e-remoting-java: |
218 | 250 | if: ${{ success() }} |
219 | 251 | name: Test E2E remoting java |
220 | | - needs: [ list-version, deploy ] |
| 252 | + needs: [ list-version, deploy-e2e ] |
221 | 253 | runs-on: ubuntu-latest |
222 | 254 | timeout-minutes: 60 |
223 | 255 | strategy: |
@@ -254,22 +286,22 @@ jobs: |
254 | 286 | if: ${{ success() }} |
255 | 287 | runs-on: ubuntu-latest |
256 | 288 | name: Performance benchmark test |
257 | | - needs: [ list-version, deploy ] |
| 289 | + needs: [ list-version, deploy-benchmark ] |
258 | 290 | timeout-minutes: 60 |
259 | 291 | steps: |
260 | 292 | - uses: apache/rocketmq-test-tool/benchmark-runner@ce372e5f3906ca1891e4918b05be14608eae608e |
261 | 293 | name: Performance benchmark |
262 | 294 | with: |
263 | 295 | action: "performance-benchmark" |
264 | 296 | ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" |
265 | | - job-id: 1 |
| 297 | + job-id: "001-${{ strategy.job-index }}" |
266 | 298 | # The time to run the test, 15 minutes |
267 | 299 | test-time: "900" |
268 | 300 | # Some thresholds set in advance |
269 | 301 | min-send-tps-threshold: "12000" |
270 | 302 | max-rt-ms-threshold: "500" |
271 | 303 | avg-rt-ms-threshold: "10" |
272 | | - max-2c-rt-ms-threshold: "100" |
| 304 | + max-2c-rt-ms-threshold: "150" |
273 | 305 | avg-2c-rt-ms-threshold: "10" |
274 | 306 | - name: Upload test report |
275 | 307 | if: always() |
@@ -278,18 +310,16 @@ jobs: |
278 | 310 | name: benchmark-report |
279 | 311 | path: benchmark/ |
280 | 312 |
|
281 | | - clean: |
| 313 | + clean-e2e: |
282 | 314 | if: always() |
283 | | - name: Clean |
284 | | - needs: [list-version, test-e2e-grpc-java, test-e2e-golang, test-e2e-remoting-java, benchmark-test] |
| 315 | + name: Clean E2E |
| 316 | + needs: [ list-version, test-e2e-grpc-java, test-e2e-golang, test-e2e-remoting-java ] |
285 | 317 | runs-on: ubuntu-latest |
286 | 318 | timeout-minutes: 60 |
287 | 319 | strategy: |
288 | 320 | matrix: |
289 | 321 | version: ${{ fromJSON(needs.list-version.outputs.version-json) }} |
290 | | - test-type: [ e2e, benchmark ] |
291 | 322 | steps: |
292 | | - - run: echo "Cleaning ${{ matrix.test-type }}... " |
293 | 323 | - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 |
294 | 324 | name: clean |
295 | 325 | with: |
@@ -298,3 +328,20 @@ jobs: |
298 | 328 | test-version: "${{ matrix.version }}" |
299 | 329 | job-id: ${{ strategy.job-index }} |
300 | 330 |
|
| 331 | + clean-benchmark: |
| 332 | + if: always() |
| 333 | + name: Clean Benchmarking |
| 334 | + needs: [ list-version, benchmark-test ] |
| 335 | + runs-on: ubuntu-latest |
| 336 | + timeout-minutes: 60 |
| 337 | + strategy: |
| 338 | + matrix: |
| 339 | + version: ${{ fromJSON(needs.list-version.outputs.version-json) }} |
| 340 | + steps: |
| 341 | + - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 |
| 342 | + name: clean |
| 343 | + with: |
| 344 | + action: "clean" |
| 345 | + ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" |
| 346 | + test-version: "${{ matrix.version }}" |
| 347 | + job-id: "001-${{ strategy.job-index }}" |