|
33 | 33 | include:
|
34 | 34 | - prefix: table
|
35 | 35 | workload: sync-table
|
| 36 | + create-args: grpc://localhost:2135 /Root/testdb |
| 37 | + run-args: | |
| 38 | + grpc://localhost:2135 /Root/testdb \ |
| 39 | + --prom-pgw localhost:9091 \ |
| 40 | + --report-period 250 \ |
| 41 | + --time ${{inputs.slo_workload_duration_seconds || 600}} \ |
| 42 | + --read-rps ${{inputs.slo_workload_read_max_rps || 1000}} \ |
| 43 | + --write-rps ${{inputs.slo_workload_write_max_rps || 100}} \ |
| 44 | + --read-timeout 1000 \ |
| 45 | + --write-timeout 1000 |
| 46 | + cleanup-args: grpc://localhost:2135 /Root/testdb |
36 | 47 | - prefix: table
|
37 | 48 | workload: sync-query
|
| 49 | + create-args: grpc://localhost:2135 /Root/testdb |
| 50 | + run-args: | |
| 51 | + grpc://localhost:2135 /Root/testdb \ |
| 52 | + --prom-pgw localhost:9091 \ |
| 53 | + --report-period 250 \ |
| 54 | + --time ${{inputs.slo_workload_duration_seconds || 600}} \ |
| 55 | + --read-rps ${{inputs.slo_workload_read_max_rps || 1000}} \ |
| 56 | + --write-rps ${{inputs.slo_workload_write_max_rps || 100}} \ |
| 57 | + --read-timeout 1000 \ |
| 58 | + --write-timeout 1000 |
| 59 | + cleanup-args: grpc://localhost:2135 /Root/testdb |
38 | 60 |
|
39 | 61 |
|
40 | 62 | concurrency:
|
@@ -67,26 +89,19 @@ jobs:
|
67 | 89 |
|
68 | 90 | - name: Prepare SLO Database
|
69 | 91 | run: |
|
70 |
| - python ./tests/slo/src ${{ matrix.prefix }}-create grpc://localhost:2135 /Root/testdb |
| 92 | + python ./tests/slo/src ${{ matrix.prefix }}-create ${{ matrix.create-args }} |
71 | 93 |
|
72 | 94 | - name: Run SLO Tests
|
73 | 95 | env:
|
74 | 96 | REF: '${{ github.head_ref || github.ref }}'
|
75 | 97 | WORKLOAD: '${{ matrix.workload }}'
|
76 | 98 | run: |
|
77 |
| - python ./tests/slo/src ${{ matrix.prefix }}-run grpc://localhost:2135 /Root/testdb \ |
78 |
| - --prom-pgw localhost:9091 \ |
79 |
| - --report-period 250 \ |
80 |
| - --time ${{inputs.slo_workload_duration_seconds || 600}} \ |
81 |
| - --read-rps ${{inputs.slo_workload_read_max_rps || 1000}} \ |
82 |
| - --write-rps ${{inputs.slo_workload_write_max_rps || 100}} \ |
83 |
| - --read-timeout 1000 \ |
84 |
| - --write-timeout 1000 |
| 99 | + python ./tests/slo/src ${{ matrix.prefix }}-run ${{ matrix.run-args }} |
85 | 100 |
|
86 | 101 | - if: always()
|
87 | 102 | name: Cleanup SLO Database
|
88 | 103 | run: |
|
89 |
| - python ./tests/slo/src ${{ matrix.prefix }}-cleanup grpc://localhost:2135 /Root/testdb |
| 104 | + python ./tests/slo/src ${{ matrix.prefix }}-cleanup ${{ matrix.cleanup-args }} |
90 | 105 |
|
91 | 106 | - if: always()
|
92 | 107 | name: Store ydb chaos testing logs
|
|
0 commit comments