-
Notifications
You must be signed in to change notification settings - Fork 0
224 lines (213 loc) Β· 7.21 KB
/
Copy pathrun-regression-repeater.yml
File metadata and controls
224 lines (213 loc) Β· 7.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
name: π¬ Suite repeater
run-name: π¬ ${{ inputs.custom_run_name || (inputs.suite == 'all' && format('{0} | Full Regression', inputs.version)) || format('{0} | {1}', inputs.version, inputs.suite) }}
${{ !contains(inputs.package, 'arm64') && !contains(inputs.package, 'aarch64') && ' | x86' || '' }}
${{ !contains(inputs.package, 'x86') && !contains(inputs.package, 'amd64') && ' | ARM' || '' }}
${{ inputs.flags != 'none' && format(' | {0}', inputs.flags) || '' }}
${{ inputs.extra_args && format(' | {0}', inputs.extra_args) || '' }}
on:
workflow_dispatch:
inputs:
package:
description: "π¦ Package. Either 'docker://' or 'https://'. Example: 'https://.../clickhouse-common-static_23.3.1.64_amd64.deb', or 'docker://altinity/clickhouse-server:23.8.8'"
required: true
type: string
default: docker://altinity/clickhouse-server:25.3.6.10034.altinitystable
version:
description: "π― Expected version. Example: 25.3.6.10034"
type: string
required: true
default: 25.3.6.10034.altinitystable
flags:
description: "π© Flags"
type: choice
options:
- "--use-keeper"
- "none"
- "--as-binary"
- "--as-binary --use-keeper"
- "--thread-fuzzer"
- "--thread-fuzzer --use-keeper"
- "--thread-fuzzer --as-binary"
- "--thread-fuzzer --as-binary --use-keeper"
- "--with-analyzer"
- "--with-analyzer --use-keeper"
- "--with-analyzer --as-binary"
- "--with-analyzer --as-binary --use-keeper"
- "--thread-fuzzer --with-analyzer"
- "--thread-fuzzer --with-analyzer --use-keeper"
- "--thread-fuzzer --with-analyzer --as-binary"
- "--thread-fuzzer --with-analyzer --as-binary --use-keeper"
suite:
description: "π§ͺ Test suite to run (default: all)"
type: choice
options:
- all_aws
- all_gcs
- aes_encryption
- aggregate_functions
- atomic_insert
- alter_all
- alter_replace_partition
- alter_attach_partition
- alter_move_partition
- attach
- base_58
- benchmark_all
- benchmark_aws
- benchmark_gcs
- benchmark_minio
- clickhouse_keeper
- clickhouse_keeper_failover
- data_types
- datetime64_extended_range
- disk_level_encryption
- dns
- engines
- example
- extended_precision_data_types
- functions
- iceberg
- jwt_authentication
- kafka
- kerberos
- key_value
- ldap
- lightweight_delete
- memory
- parquet_all
- parquet
- parquet_minio
- parquet_s3
- part_moves_between_shards
- rbac
- s3_all
- s3_aws
- s3_gcs
- s3_minio
- selects
- session_timezone
- ssl_server
- tiered_storage_all
- tiered_storage_aws
- tiered_storage_gcs
- tiered_storage_local
- tiered_storage_minio
- window_functions
artifacts:
description: "Artifact S3 bucket"
type: choice
options:
- internal
output_format:
description: "π Testflows output style."
type: choice
options:
- nice-new-fails
- brisk-new-fails
- plain-new-fails
- pnice-new-fails
- new-fails
- classic
- nice
- fails
- slick
- brisk
- quiet
- short
- manual
- dots
- progress
- raw
ref:
description: "Commit SHA to checkout. Default: current (empty string)."
type: string
default: ""
extra_args:
description: "ποΈ Extra test program arguments. Default: none (empty string)."
type: string
default: ""
custom_run_name:
description: 'π Custom run name (optional)'
required: false
repeat:
description: "π Repeat the test suite N times"
type: number
default: 1
env:
run_x86: ${{ !contains(inputs.package, 'arm64') && !contains(inputs.package, 'aarch64') }}
run_arm: ${{ !contains(inputs.package, 'x86') && !contains(inputs.package, 'amd64') }}
jobs:
define-matrix:
runs-on: [self-hosted, x86, type-cx42, image-x86-app-docker-ce]
outputs:
parallel_ids_x86: ${{ steps.parallel_ids_x86.outputs.parallel_ids_x86 }}
parallel_ids_arm: ${{ steps.parallel_ids_arm.outputs.parallel_ids_arm }}
run_x86: ${{ steps.set_run_x86.outputs.run_x86 }}
run_arm: ${{ steps.set_run_arm.outputs.run_arm }}
steps:
- name: Set run_x86
id: set_run_x86
run: echo "run_x86=${{ env.run_x86 }}" >> $GITHUB_OUTPUT
- name: Define parallel_ids for x86
id: parallel_ids_x86
run: |
if [ "${{ env.run_arm }}" = "true" ]; then
count=$(((${{ inputs.repeat }}+1)/2)) # +1 to imitate ceil division
else
count=${{ inputs.repeat }}
fi
echo parallel_ids_x86=[\"$(seq -s '","' 1 $count)\"] >> $GITHUB_OUTPUT
- name: Set run_arm
id: set_run_arm
run: echo "run_arm=${{ env.run_arm }}" >> $GITHUB_OUTPUT
- name: Define parallel_ids for ARM
id: parallel_ids_arm
run: |
if [ "${{ env.run_x86 }}" = "true" ]; then
count=$((${{ inputs.repeat }}/2))
else
count=${{ inputs.repeat }}
fi
if [ $count -eq 0 ] && [ "${{ env.run_arm }}" = "true" ]; then
echo "parallel_ids_arm=[\"1\"]" >> $GITHUB_OUTPUT
else
echo parallel_ids_arm=[\"$(seq -s '","' 1 $count)\"] >> $GITHUB_OUTPUT
fi
x86:
if: ${{ needs.define-matrix.outputs.run_x86 == 'true' }}
uses: ./.github/workflows/run-regression.yml
secrets: inherit
needs: define-matrix
strategy:
max-parallel: 30
fail-fast: false
matrix:
parallel_id: ${{fromJson(needs.define-matrix.outputs.parallel_ids_x86)}}
with:
package: ${{ inputs.package }}
version: ${{ inputs.version }}
suite: ${{ inputs.suite }}
artifacts: ${{ inputs.artifacts }}
output_format: ${{ inputs.output_format }}
ref: ${{ inputs.ref }}
extra_args: ${{ inputs.flags != 'none' && inputs.flags || ''}} ${{ inputs.extra_args }}
arch: x86
ARM:
if: ${{ needs.define-matrix.outputs.run_arm == 'true' }}
uses: ./.github/workflows/run-regression.yml
secrets: inherit
needs: define-matrix
strategy:
max-parallel: 30
fail-fast: false
matrix:
parallel_id: ${{fromJson(needs.define-matrix.outputs.parallel_ids_arm)}}
with:
package: ${{ inputs.package }}
version: ${{ inputs.version }}
suite: ${{ inputs.suite }}
artifacts: ${{ inputs.artifacts }}
output_format: ${{ inputs.output_format }}
ref: ${{ inputs.ref }}
extra_args: ${{ inputs.flags != 'none' && inputs.flags || ''}} ${{ inputs.extra_args }}
arch: arm64