8000 24.3.4 Run CI/CD in Altinity infrastructure by Enmk · Pull Request #413 · Altinity/ClickHouse · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
0eea702
update labels
MyroTk May 14, 2024
bcba7ec
Update dockerfiles to use altinityinfra, add sccache, and update rele…
MyroTk May 14, 2024
93d53fa
fix typo in commit sha
MyroTk May 14, 2024
a4671e5
skip label check
MyroTk May 14, 2024
e9a8652
add secrets to env
MyroTk May 14, 2024
87f4496
update docker username and pwd
MyroTk May 14, 2024
20feef9
bring back our implementation of get_best_robot_token
MyroTk May 14, 2024
ec8b90b
pass secrets
MyroTk May 14, 2024
3f224dc
add secrets to env
MyroTk May 14, 2024
95b479b
update images to be altinityinfra
MyroTk May 14, 2024
ca387ef
more docker image renaming
MyroTk May 14, 2024
fd4d4ac
docker image renaming
MyroTk May 14, 2024
86fd4bf
remove version from cctools
MyroTk May 14, 2024
1b43ccb
set binary-builder as cctools dependant temporarily
MyroTk May 14, 2024
9e7baf9
build images in correct order
MyroTk May 14, 2024
74059ea
more docker image renaming
MyroTk May 14, 2024
1bc0e6e
temporary workaround to get all docker images built
MyroTk May 15, 2024
5d1ec8e
remove scaffolding
MyroTk May 15, 2024
9c2d698
update versioning scripts
MyroTk May 16, 2024
34be467
patch version
MyroTk May 16, 2024
9b1895f
update version unit test
MyroTk May 16, 2024
5a82d9b
fix version unit test
MyroTk May 16, 2024
29843d4
update test_git.py to use altinitystable
MyroTk May 16, 2024
3e61b44
disable unit tests temporarily
MyroTk May 16, 2024
6811330
git regex fix
MyroTk May 16, 2024
10f5323
pin dependencies
MyroTk May 16, 2024
6d87d9b
use altinity-robot
MyroTk May 16, 2024
b4e0bab
version
MyroTk May 16, 2024
01bf6a4
use altinity images for integration tests
MyroTk May 16, 2024
b153c4f
make integration amd only
MyroTk May 16, 2024
0ca87c8
update runner images
MyroTk May 30, 2024
b63a6bd
force all tests to run and docker ipv6 config
MyroTk May 30, 2024
f6be6d2
setting tests to always run, and increase timeout
MyroTk May 30, 2024
db13ffe
make stress and integration always run
MyroTk May 30, 2024
8e6ca5c
Update dockerd-entrypoint.sh
MyroTk May 31, 2024
554e672
Update reusable_docker.yml
MyroTk May 31, 2024
5f1a2cd
update Altinity message
MyroTk Jun 3, 2024
4a90ca2
message fix
MyroTk Jun 3, 2024
e5a7323
pin python requests to 2.31.0
MyroTk Jun 3, 2024
c600503
update integration dockerfile
MyroTk Jun 3, 2024
60bb8a1
hadoop fix
MyroTk Jun 3, 2024
ff27d10
add sign release
MyroTk Jun 4, 2024
dbdafcf
regression fix
MyroTk Jun 4, 2024
d9db6d1
stateless fix
MyroTk Jun 5, 2024
dde853a
stateless and stateful timeout
MyroTk Jun 5, 2024
e74b6e5
change regression dependancy
MyroTk Jun 5, 2024
692c8d2
run regression
MyroTk Jun 5, 2024
637cc17
functional test timeout
MyroTk Jun 5, 2024
804efb6
url and artifacts change
MyroTk Jun 6, 2024
0f71821
sign release and artifacts for regression
MyroTk Jun 6, 2024
e7acc02
remove unzip
MyroTk Jun 6, 2024
1de820e
regression
MyroTk Jun 6, 2024
b26b956
test fixes
MyroTk Jun 13, 2024
6189f94
regression update
MyroTk Jun 17, 2024
0e5cffa
regression arm
MyroTk Jun 18, 2024
6c2859e
regresison update
MyroTk Jun 20, 2024
6fc1623
sign release job
MyroTk Jun 25, 2024
e71568f
Attempt to fix flapping integration tests
Enmk Jun 26, 2024
ac87141
Temporary commented-out SIGN_RELEASE to allow tests
Enmk Jun 26, 2024
8f4c0e2
fix sign release
MyroTk Jun 26, 2024
72e2a83
sign release and regression update
MyroTk Jun 26, 2024
67d72d3
move sign release
MyroTk Jun 26, 2024
cc0e404
sign aarch64
MyroTk Jun 26, 2024
6848e0a
reusable sign workflow
MyroTk Jun 27, 2024
6df6bd5
add workflow file
MyroTk Jun 27, 2024
6f614d2
Attempt to fix integration test test_storage_s3_queue
Enmk Jun 27, 2024
f630be4
sign run command
MyroTk Jun 27, 2024
fa34885
sign release report_path type
MyroTk Jul 1, 2024
3b5a7dd
sign release result_path
MyroTk Jul 2, 2024
57993f4
skip directories when signing
MyroTk Jul 2, 2024
4d6b6db
Merge remote-tracking branch 'altinity/24.3.3-pipeline' into 24.3.4-p…
Enmk Jul 2, 2024
a9d9dcf
sign artifact name
MyroTk Jul 2, 2024
2254923
Merge remote-tracking branch 'altinity/24.3.3-pipeline' into 24.3.4-p…
Enmk Jul 3, 2024
717cf5f
Fix RunConfig failure test_get_version_from_repo (test_version.TestFu…
Enmk Jul 3, 2024
88b624c
Attempt to fix DockerBuildAmd64 issue
Enmk Jul 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/actions/docker_setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker setup
description: Setup docker
inputs:
nested_job:
description: the fuse for unintended use inside of the reusable callable jobs
default: true
type: boolean
runs:
using: "composite"
steps:
- name: Docker IPv6 configuration
shell: bash
run: |
# make sure docker uses proper IPv6 config
sudo touch /etc/docker/daemon.json
sudo chown ubuntu:ubuntu /etc/docker/daemon.json
sudo cat <<EOT > /etc/docker/daemon.json
{
"ipv6": true,
"fixed-cidr-v6": "2001:3984:3989::/64"
}
EOT
sudo chown root:root /etc/docker/daemon.json
sudo systemctl restart docker
sudo systemctl status docker
- name: Docker info
shell: bash
run: |
docker info
22 changes: 22 additions & 0 deletions .github/retry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# Execute command until exitcode is 0 or
# maximum number of retries is reached
# Example:
# ./retry <retries> <delay> <command>
retries=$1
delay=$2
command="${@:3}"
exitcode=0
try=0
until [ "$try" -ge $retries ]
do
echo "$command"
eval "$command"
exitcode=$?
if [ $exitcode -eq 0 ]; then
break
fi
try=$((try+1))
sleep $2
done
exit $exitcode
25 changes: 10 additions & 15 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ on: # yamllint disable-line rule:truthy

jobs:
RunConfig:
runs-on: [self-hosted, style-checker-aarch64]
runs-on: [self-hosted, altinity-on-demand, altinity-type-cax41, altinity-in-hel1, altinity-image-arm-app-docker-ce]
outputs:
data: ${{ steps.runconfig.outputs.CI_DATA }}
steps:
- name: DebugInfo
uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6
10BC8 - name: Check out repository code
uses: ClickHouse/checkout@v1
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
with:
clear-repository: true # to ensure correct digests
fetch-depth: 0 # to get version
Expand Down Expand Up @@ -75,25 +75,20 @@ jobs:
test_name: Style check
runner_type: style-checker
run_command: |
python3 style_check.py
python3 style_check.py --no-push
data: ${{ needs.RunConfig.outputs.data }}
secrets:
secret_envs: |
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
RCSK
FastTest:
needs: [RunConfig, BuildDockers]
if: ${{ !failure() && !cancelled() && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'Fast test') }}
uses: ./.github/workflows/reusable_test.yml
with:
test_name: Fast test
runner_type: builder
runner_type: altinity-on-demand, altinity-type-cpx51, altinity-in-ash, altinity-image-x86-app-docker-ce
data: ${{ needs.RunConfig.outputs.data }}
run_command: |
python3 fast_test_check.py

################################# Main statges #################################
################################# Main stages #################################
# for main CI chain
#
Builds_1:
Expand Down Expand Up @@ -140,7 +135,7 @@ jobs:
uses: ./.github/workflows/reusable_test.yml
with:
test_name: ClickHouse build check
runner_type: style-checker-aarch64
runner_type: altinity-on-demand, altinity-type-cax41, altinity-in-hel1, altinity-image-arm-app-docker-ce
data: ${{ needs.RunConfig.outputs.data }}
Builds_2_Report:
# run report check for failed builds to indicate the CI error
Expand All @@ -151,18 +146,18 @@ jobs:
uses: ./.github/workflows/reusable_test.yml
with:
test_name: ClickHouse special build check
runner_type: style-checker-aarch64
runner_type: altinity-on-demand, altinity-type-cax41, altinity-in-hel1, altinity-image-arm-app-docker-ce
data: ${{ needs.RunConfig.outputs.data }}

################################# Stage Final #################################
#
FinishCheck:
if: ${{ !failure() && !cancelled() }}
needs: [Tests_1, Tests_2]
runs-on: [self-hosted, style-checker]
runs-on: [self-hosted, altinity-on-demand, altinity-type-cpx41, altinity-in-ash, altinity-image-x86-app-docker-ce]
steps:
- name: Check out repository code
uses: ClickHouse/checkout@v1
uses: Altinity/checkout@19599efdf36c4f3f30eb55d5bb388896faea69f
- name: Finish label
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
Expand All @@ -186,5 +181,5 @@ jobs:
uses: ./.github/workflows/reusable_test.yml
with:
test_name: ClickHouse Keeper Jepsen
runner_type: style-checker
runner_type: altinity-on-demand, altinity-type-cpx51, altinity-in-ash, altinity-image-x86-app-docker-ce
data: ${{ needs.RunConfig.outputs.data }}
Loading
0