Skip to content

Commit 32cf34b

Browse files
authored
Merge pull request #582 from Altinity/customizations/24.8.11
24.8.11 Altinity Stable Pre-release
2 parents a9b661d + b728176 commit 32cf34b

File tree

459 files changed

+9312
-2629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+9312
-2629
lines changed

.github/actionlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ self-hosted-runner:
44
- func-tester
55
- func-tester-aarch64
66
- fuzzer-unit-tester
7+
- altinity-on-demand
8+
- altinity-type-cpx51
9+
- altinity-in-ash
10+
- altinity-image-x86-system-ubuntu-22.04
711
- style-checker
812
- style-checker-aarch64
913
- release-maker

.github/actions/common_setup/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ runs:
2828
run: |
2929
# to remove every leftovers
3030
sudo rm -fr "$TEMP_PATH" && mkdir -p "$TEMP_PATH"
31+
- name: Setup zram
32+
shell: bash
33+
run: |
34+
sudo modprobe zram
35+
MemTotal=$(grep -Po "(?<=MemTotal:)\s+\d+" /proc/meminfo) # KiB
36+
Percent=200
37+
ZRAM_SIZE=$(($MemTotal / 1024 / 1024 * $Percent / 100)) # Convert to GiB
38+
.github/retry.sh 30 2 sudo zramctl --size ${ZRAM_SIZE}GiB --algorithm zstd /dev/zram0
39+
sudo mkswap /dev/zram0 && sudo swapon -p 100 /dev/zram0
40+
sudo sysctl vm.swappiness=200
3141
- name: Tune vm.mmap_rnd_bits for sanitizers
3242
shell: bash
3343
run: |
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Docker setup
2+
description: Setup docker
3+
inputs:
4+
test_name:
5+
description: name of the test, used in determining ipv6 configs.
6+
default: None
7+
type: string
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Docker IPv6 configuration
12+
shell: bash
13+
env:
14+
ipv6_subnet: ${{ contains(inputs.test_name, 'Integration') && '2001:db8:1::/64' || '2001:3984:3989::/64' }}
15+
run: |
16+
# make sure docker uses proper IPv6 config
17+
sudo touch /etc/docker/daemon.json
18+
sudo chown ubuntu:ubuntu /etc/docker/daemon.json
19+
sudo cat <<EOT > /etc/docker/daemon.json
20+
{
21+
"ipv6": true,
22+
"fixed-cidr-v6": "${{ env.ipv6_subnet }}"
23+
}
24+
EOT
25+
sudo chown root:root /etc/docker/daemon.json
26+
sudo systemctl restart docker
27+
sudo systemctl status docker
28+
- name: Docker info
29+
shell: bash
30+
run: |
31+
docker info

.github/retry.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Execute command until exitcode is 0 or
3+
# maximum number of retries is reached
4+
# Example:
5+
# ./retry <retries> <delay> <command>
6+
retries=$1
7+
delay=$2
8+
command="${@:3}"
9+
exitcode=0
10+
try=0
11+
until [ "$try" -ge $retries ]
12+
do
13+
echo "$command"
14+
eval "$command"
15+
exitcode=$?
16+
if [ $exitcode -eq 0 ]; then
17+
break
18+
fi
19+
try=$((try+1))
20+
sleep $2
21+
done
22+
exit $exitcode

.github/workflows/backport_branches.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
data: ${{ steps.runconfig.outputs.CI_DATA }}
2323
steps:
2424
- name: Check out repository code
25-
uses: ClickHouse/checkout@v1
25+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
2626
with:
2727
clear-repository: true # to ensure correct digests
2828
fetch-depth: 0 # to get version
@@ -164,7 +164,7 @@ jobs:
164164
runs-on: [self-hosted, style-checker-aarch64]
165165
steps:
166166
- name: Check out repository code
167-
uses: ClickHouse/checkout@v1
167+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
168168
- name: Download reports
169169
run: |
170170
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --infile ${{ toJson(needs.RunConfig.outputs.data) }} --pre --job-name Builds
@@ -194,7 +194,7 @@ jobs:
194194
uses: ./.github/workflows/reusable_test.yml
195195
with:
196196
test_name: Install packages (aarch64)
197-
runner_type: style-checker-aarch64
197+
runner_type: altinity-on-demand, altinity-type-cax41, altinity-in-hel1, altinity-image-arm-app-docker-ce
198198
data: ${{ needs.RunConfig.outputs.data }}
199199
run_command: |
200200
python3 install_check.py "$CHECK_NAME"
@@ -229,7 +229,7 @@ jobs:
229229
uses: ./.github/workflows/reusable_test.yml
230230
with:
231231
test_name: Stress test (tsan)
232-
runner_type: func-tester
232+
runner_type: altinity-on-demand, altinity-type-cpx51, altinity-in-ash, altinity-image-x86-system-ubuntu-22.04
233233
data: ${{ needs.RunConfig.outputs.data }}
234234
#############################################################################################
235235
############################# INTEGRATION TESTS #############################################
@@ -240,15 +240,15 @@ jobs:
240240
uses: ./.github/workflows/reusable_test.yml
241241
with:
242242
test_name: Integration tests (asan, old analyzer)
243-
runner_type: func-tester
243+
runner_type: altinity-on-demand, altinity-type-cpx51, altinity-in-ash, altinity-image-x86-system-ubuntu-22.04
244244
data: ${{ needs.RunConfig.outputs.data }}
245245
IntegrationTestsTsan:
246246
needs: [RunConfig, BuilderDebTsan]
247247
if: ${{ !failure() && !cancelled() }}
248248
uses: ./.github/workflows/reusable_test.yml
249249
with:
250250
test_name: Integration tests (tsan)
251-
runner_type: func-tester
251+
runner_type: altinity-on-demand, altinity-type-cpx51, altinity-in-ash, altinity-image-x86-system-ubuntu-22.04
252252
data: ${{ needs.RunConfig.outputs.data }}
253253
FinishCheck:
254254
if: ${{ !cancelled() }}
@@ -265,7 +265,7 @@ jobs:
265265
runs-on: [self-hosted, style-checker]
266266
steps:
267267
- name: Check out repository code
268-
uses: ClickHouse/checkout@v1
268+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
269269
with:
270270
clear-repository: true
271271
- name: Finish label

.github/workflows/cherry_pick.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
REPO_TEAM=core
2929
EOF
3030
- name: Check out repository code
31-
uses: ClickHouse/checkout@v1
31+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
3232
with:
3333
clear-repository: true
3434
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}

.github/workflows/create_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: [self-hosted, release-maker]
3535
steps:
3636
- name: Check out repository code
37-
uses: ClickHouse/checkout@v1
37+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
3838
with:
3939
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
4040
fetch-depth: 0

.github/workflows/docker_test_images.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,31 @@ name: Build docker images
1010
description: set latest tag for resulting multiarch manifest
1111
required: false
1212
type: boolean
13-
default: false
13+
default: false
14+
secrets:
15+
secret_envs:
16+
description: if given, it's passed to the environments
17+
required: false
18+
AWS_SECRET_ACCESS_KEY:
19+
description: the access key to the aws param store.
20+
required: true
21+
AWS_ACCESS_KEY_ID:
22+
description: the access key id to the aws param store.
23+
required: true
24+
25+
env:
26+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
27+
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
28+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1429

1530
jobs:
1631
DockerBuildAarch64:
17-
runs-on: [self-hosted, style-checker-aarch64]
32+
runs-on: [self-hosted, altinity-on-demand, altinity-type-cax41, altinity-image-arm-snapshot-22.04-arm, altinity-startup-snapshot, altinity-setup-none]
1833
if: |
1934
!failure() && !cancelled() && toJson(fromJson(inputs.data).docker_data.missing_aarch64) != '[]'
2035
steps:
2136
- name: Check out repository code
22-
uses: ClickHouse/checkout@v1
37+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f6
2338
with:
2439
ref: ${{ fromJson(inputs.data).git_ref }}
2540
- name: Build images
@@ -29,12 +44,12 @@ jobs:
2944
--image-tags '${{ toJson(fromJson(inputs.data).docker_data.images) }}' \
3045
--missing-images '${{ toJson(fromJson(inputs.data).docker_data.missing_aarch64) }}'
3146
DockerBuildAmd64:
32-
runs-on: [self-hosted, style-checker]
47+
runs-on: [self-hosted, altinity-on-demand, altinity-type-cpx51, altinity-image-x86-snapshot-22.04-amd, altinity-startup-snapshot, altinity-setup-none]
3348
if: |
3449
!failure() && !cancelled() && toJson(fromJson(inputs.data).docker_data.missing_amd64) != '[]'
3550
steps:
3651
- name: Check out repository code
37-
uses: ClickHouse/checkout@v1
52+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f6
3853
with:
3954
ref: ${{ fromJson(inputs.data).git_ref }}
4055
- name: Build images
@@ -45,12 +60,12 @@ jobs:
4560
--missing-images '${{ toJson(fromJson(inputs.data).docker_data.missing_amd64) }}'
4661
DockerMultiArchManifest:
4762
needs: [DockerBuildAmd64, DockerBuildAarch64]
48-
runs-on: [self-hosted, style-checker]
63+
runs-on: [self-hosted, altinity-on-demand, altinity-type-cpx51, altinity-image-x86-snapshot-22.04-amd, altinity-startup-snapshot, altinity-setup-none]
4964
if: |
5065
!failure() && !cancelled() && (toJson(fromJson(inputs.data).docker_data.missing_multi) != '[]' || inputs.set_latest)
5166
steps:
5267
- name: Check out repository code
53-
uses: ClickHouse/checkout@v1
68+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f6
5469
with:
5570
ref: ${{ fromJson(inputs.data).git_ref }}
5671
- name: Build images

.github/workflows/jepsen.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
data: ${{ steps.runconfig.outputs.CI_DATA }}
1717
steps:
1818
- name: Check out repository code
19-
uses: ClickHouse/checkout@v1
19+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
2020
with:
2121
clear-repository: true # to ensure correct digests
2222
fetch-depth: 0 # to get version
@@ -43,7 +43,7 @@ jobs:
4343
uses: ./.github/workflows/reusable_test.yml
4444
with:
4545
test_name: ClickHouse Keeper Jepsen
46-
runner_type: style-checker-aarch64
46+
runner_type: altinity-on-demand, altinity-type-cax41, altinity-in-hel1, altinity-image-arm-app-docker-ce
4747
data: ${{ needs.RunConfig.outputs.data }}
4848
run_command: |
4949
python3 jepsen_check.py keeper
@@ -53,7 +53,7 @@ jobs:
5353
uses: ./.github/workflows/reusable_test.yml
5454
with:
5555
test_name: ClickHouse Server Jepsen
56-
runner_type: style-checker-aarch64
56+
runner_type: altinity-on-demand, altinity-type-cax41, altinity-in-hel1, altinity-image-arm-app-docker-ce
5757
data: ${{ needs.RunConfig.outputs.data }}
5858
run_command: |
5959
python3 jepsen_check.py server
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: [self-hosted, style-checker-aarch64]
6464
steps:
6565
- name: Check out repository code
66-
uses: ClickHouse/checkout@v1
66+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
6767
- name: Check Workflow results
6868
if: ${{ !cancelled() }}
6969
run: |

.github/workflows/master.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
data: ${{ steps.runconfig.outputs.CI_DATA }}
1717
steps:
1818
- name: Check out repository code
19-
uses: ClickHouse/checkout@v1
19+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
2020
with:
2121
clear-repository: true # to ensure correct digests
2222
fetch-depth: 0 # to get version
@@ -118,7 +118,7 @@ jobs:
118118
uses: ./.github/workflows/reusable_test.yml
119119
with:
120120
test_name: Builds
121-
runner_type: style-checker-aarch64
121+
runner_type: altinity-on-demand, altinity-type-cax41, altinity-in-hel1, altinity-image-arm-app-docker-ce
122122
data: ${{ needs.RunConfig.outputs.data }}
123123

124124
FinishCheck:
@@ -127,7 +127,7 @@ jobs:
127127
runs-on: [self-hosted, style-checker-aarch64]
128128
steps:
129129
- name: Check out repository code
130-
uses: ClickHouse/checkout@v1
130+
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
131131
- name: Finish label
132132
run: |
133133
cd "$GITHUB_WORKSPACE/tests/ci"

0 commit comments

Comments
 (0)