Skip to content

Commit

Permalink
Make builds and tests possible in Altinity's infrastructure
Browse files Browse the repository at this point in the history
add comment and rename github robot token
add clickhouse instance password parameter
use Altinity's s3 bucket
Use altinityinfra dockerhub images and minor adjustments (#135)
Allow CI to be triggered on PR
Proper error reporting during docker pull and lowercase version name
allow `altinitystable` git tags
Download specific MinIO version instead of latest - same as upstream master
remove stale chmod
More stable CI/CD builds:
- Rebuilding all docker images
- Reduced number of docker images
- Rerunning functional tests even if those were already executed in previous run
Added missing dependencies for stateful tests
Re-generating _pb2 files on each test run
Changed hardcoded docker images name prefixes from `clickhouse/` to `altinityinfra/`
Pushing images as :latest too to avoid some test failures
reverted back to use clickhouse/jdbc-bridge
Fixed how version is generated: taking into account VERSION_TWEAK and VERSION_FLAVOUR
Pushing checks events data to "gh-data" instead of "default"
etc.
  • Loading branch information
arthurpassos authored and Enmk committed Dec 9, 2022
1 parent 65c9506 commit 483d4c9
Show file tree
Hide file tree
Showing 98 changed files with 2,108 additions and 6,213 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/cherry_pick.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: CherryPick
# name: CherryPick

env:
# Force the stdout and stderr streams to be unbuffered
PYTHONUNBUFFERED: 1
# env:
# # Force the stdout and stderr streams to be unbuffered
# PYTHONUNBUFFERED: 1

concurrency:
group: cherry-pick
on: # yamllint disable-line rule:truthy
schedule:
- cron: '0 * * * *'
workflow_dispatch:
# concurrency:
# group: cherry-pick
# on: # yamllint disable-line rule:truthy
# schedule:
# - cron: '0 * * * *'
# workflow_dispatch:

jobs:
CherryPick:
runs-on: [self-hosted, style-checker-aarch64]
steps:
- name: Set envs
# https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#multiline-strings
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/cherry_pick
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
RCSK
REPO_OWNER=ClickHouse
REPO_NAME=ClickHouse
REPO_TEAM=core
EOF
- name: Check out repository code
uses: actions/checkout@v2
with:
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
fetch-depth: 0
- name: Cherry pick
run: |
sudo pip install GitPython
cd "$GITHUB_WORKSPACE/tests/ci"
python3 cherry_pick.py
- name: Cleanup
if: always()
run: |
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH"
# jobs:
# CherryPick:
# runs-on: [self-hosted, style-checker-aarch64]
# steps:
# - name: Set envs
# # https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#multiline-strings
# run: |
# cat >> "$GITHUB_ENV" << 'EOF'
# TEMP_PATH=${{runner.temp}}/cherry_pick
# ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
# ${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
# RCSK
# REPO_OWNER=ClickHouse
# REPO_NAME=ClickHouse
# REPO_TEAM=core
# EOF
# - name: Check out repository code
# uses: actions/checkout@v2
# with:
# token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
# fetch-depth: 0
# - name: Cherry pick
# run: |
# sudo pip install GitPython
# cd "$GITHUB_WORKSPACE/tests/ci"
# python3 cherry_pick.py
# - name: Cleanup
# if: always()
# run: |
# # shellcheck disable=SC2046
# docker kill $(docker ps -q) ||:
# # shellcheck disable=SC2046
# docker rm -f $(docker ps -a -q) ||:
# sudo rm -fr "$TEMP_PATH"
Loading

0 comments on commit 483d4c9

Please sign in to comment.