diff --git a/.clang-tidy b/.clang-tidy
index 860e7b3189f..532b0f37b81 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -22,6 +22,8 @@ Checks: '*,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions,
-bugprone-not-null-terminated-result,
+ -bugprone-unchecked-optional-access,
+ -bugprone-assignment-in-if-condition,
-cert-dcl16-c,
-cert-err58-cpp,
@@ -103,6 +105,7 @@ Checks: '*,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
+ -misc-const-correctness,
-modernize-avoid-c-arrays,
-modernize-concat-nested-namespaces,
@@ -114,6 +117,7 @@ Checks: '*,
-modernize-use-nodiscard,
-modernize-use-override,
-modernize-use-trailing-return-type,
+ -modernize-macro-to-enum,
-performance-inefficient-string-concatenation,
-performance-no-int-to-ptr,
@@ -135,6 +139,7 @@ Checks: '*,
-readability-suspicious-call-argument,
-readability-uppercase-literal-suffix,
-readability-use-anyofallof,
+ -readability-simplify-boolean-expr,
-zirkon-*,
'
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 00000000000..06e893fabb3
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,15 @@
+# This is a file that can be used by git-blame to ignore some revisions.
+# (git 2.23+, released in August 2019)
+#
+# Can be configured as follow:
+#
+# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
+#
+# For more information you can look at git-blame(1) man page.
+
+# Changed tabs to spaces in code [#CLICKHOUSE-3]
+137ad95929ee016cc6d3c03bccb5586941c163ff
+
+# dbms/ → src/
+# (though it is unlikely that you will see it in blame)
+06446b4f08a142d6f1bc30664c47ded88ab51782
diff --git a/.github/workflows/backport_branches.yml b/.github/workflows/backport_branches.yml
index a1086452184..4c8d023f2ec 100644
--- a/.github/workflows/backport_branches.yml
+++ b/.github/workflows/backport_branches.yml
@@ -112,10 +112,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#########################################################################################
#################################### ORDINARY BUILDS ####################################
@@ -162,10 +160,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebAarch64:
needs: [DockerHubPush]
@@ -209,10 +205,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebAsan:
needs: [DockerHubPush]
@@ -254,10 +248,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebTsan:
needs: [DockerHubPush]
@@ -299,10 +291,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebDebug:
needs: [DockerHubPush]
@@ -344,10 +334,98 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinDarwin:
+ needs: [DockerHubPush]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_darwin
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # otherwise we will have no info about contributors
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinDarwinAarch64:
+ needs: [DockerHubPush]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_darwin_aarch64
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # otherwise we will have no info about contributors
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
############################################################################################
##################################### Docker images #######################################
@@ -374,10 +452,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
############################################################################################
##################################### BUILD REPORTER #######################################
@@ -420,10 +496,46 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH"
+ BuilderSpecialReport:
+ needs:
+ - BuilderBinDarwin
+ - BuilderBinDarwinAarch64
+ runs-on: [self-hosted, style-checker]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/report_check
+ REPORTS_PATH=${{runner.temp}}/reports_dir
+ CHECK_NAME=ClickHouse special build check
+ NEEDS_DATA_PATH=${{runner.temp}}/needs.json
+ EOF
+ - name: Download json reports
+ uses: actions/download-artifact@v2
+ with:
+ path: ${{ env.REPORTS_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ - name: Report Builder
+ run: |
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cat > "$NEEDS_DATA_PATH" << 'EOF'
+ ${{ toJSON(needs) }}
+ EOF
+ cd "$GITHUB_WORKSPACE/tests/ci"
+ python3 build_report_check.py "$CHECK_NAME"
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
########################### FUNCTIONAl STATELESS TESTS #######################################
@@ -460,10 +572,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
############################ FUNCTIONAl STATEFUL TESTS #######################################
@@ -500,10 +610,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
######################################### STRESS TESTS #######################################
@@ -543,10 +651,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
############################# INTEGRATION TESTS #############################################
@@ -582,16 +688,15 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FinishCheck:
needs:
- DockerHubPush
- DockerServerImages
- BuilderReport
+ - BuilderSpecialReport
- FunctionalStatelessTestAsan
- FunctionalStatefulTestDebug
- StressTestTsan
diff --git a/.github/workflows/cherry_pick.yml b/.github/workflows/cherry_pick.yml
index e6a10479c7e..3e6f9e76c56 100644
--- a/.github/workflows/cherry_pick.yml
+++ b/.github/workflows/cherry_pick.yml
@@ -40,8 +40,6 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
diff --git a/.github/workflows/docs_check.yml b/.github/workflows/docs_check.yml
index b50584a2c01..7a15e77becb 100644
--- a/.github/workflows/docs_check.yml
+++ b/.github/workflows/docs_check.yml
@@ -125,10 +125,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
DocsCheck:
needs: DockerHubPush
@@ -158,10 +156,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FinishCheck:
needs:
diff --git a/.github/workflows/docs_release.yml b/.github/workflows/docs_release.yml
index e0fdb0c2f7b..da67edd4aa1 100644
--- a/.github/workflows/docs_release.yml
+++ b/.github/workflows/docs_release.yml
@@ -116,8 +116,6 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
diff --git a/.github/workflows/jepsen.yml b/.github/workflows/jepsen.yml
index 1682cd1e812..a8b04af5773 100644
--- a/.github/workflows/jepsen.yml
+++ b/.github/workflows/jepsen.yml
@@ -36,8 +36,6 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index e8e3deceef5..3d22cb984dd 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -112,10 +112,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
CompatibilityCheck:
needs: [BuilderDebRelease]
@@ -146,10 +144,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
SharedBuildSmokeTest:
needs: [BuilderDebShared]
@@ -180,10 +176,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#########################################################################################
#################################### ORDINARY BUILDS ####################################
@@ -230,10 +224,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
BuilderDebAarch64:
needs: [DockerHubPush]
@@ -273,10 +265,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinRelease:
needs: [DockerHubPush]
@@ -320,56 +310,9 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
- # BuilderBinGCC:
- # needs: [DockerHubPush]
- # runs-on: [self-hosted, builder]
- # steps:
- # - name: Set envs
- # run: |
- # cat >> "$GITHUB_ENV" << 'EOF'
- # TEMP_PATH=${{runner.temp}}/build_check
- # IMAGES_PATH=${{runner.temp}}/images_path
- # REPO_COPY=${{runner.temp}}/build_check/ClickHouse
- # CACHES_PATH=${{runner.temp}}/../ccaches
- # BUILD_NAME=binary_gcc
- # EOF
- # - name: Download changed images
- # uses: actions/download-artifact@v2
- # with:
- # name: changed_images
- # path: ${{ env.IMAGES_PATH }}
- # - name: Clear repository
- # run: |
- # sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- # - name: Check out repository code
- # uses: actions/checkout@v2
- # - name: Build
- # run: |
- # git -C "$GITHUB_WORKSPACE" submodule sync --recursive
- # git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
- # sudo rm -fr "$TEMP_PATH"
- # mkdir -p "$TEMP_PATH"
- # cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
- # cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- # - name: Upload build URLs to artifacts
- # if: ${{ success() || failure() }}
- # uses: actions/upload-artifact@v2
- # with:
- # name: ${{ env.BUILD_URLS }}
- # path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
- # - 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" "$CACHES_PATH"
BuilderDebAsan:
needs: [DockerHubPush]
runs-on: [self-hosted, builder]
@@ -410,10 +353,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebUBsan:
needs: [DockerHubPush]
@@ -455,10 +396,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebTsan:
needs: [DockerHubPush]
@@ -500,10 +439,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebMsan:
needs: [DockerHubPush]
@@ -545,10 +482,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebDebug:
needs: [DockerHubPush]
@@ -590,10 +525,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
##########################################################################################
##################################### SPECIAL BUILDS #####################################
@@ -638,10 +571,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinClangTidy:
needs: [DockerHubPush]
@@ -683,10 +614,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinDarwin:
needs: [DockerHubPush]
@@ -730,10 +659,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinAarch64:
needs: [DockerHubPush]
@@ -777,10 +704,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinFreeBSD:
needs: [DockerHubPush]
@@ -824,10 +749,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinDarwinAarch64:
needs: [DockerHubPush]
@@ -871,10 +794,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinPPC64:
needs: [DockerHubPush]
@@ -918,10 +839,98 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinAmd64SSE2:
+ needs: [DockerHubPush]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_amd64sse2
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # otherwise we will have no info about contributors
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinAarch64V80Compat:
+ needs: [DockerHubPush]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_aarch64_v80compat
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # otherwise we will have no info about contributors
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
############################################################################################
##################################### Docker images #######################################
@@ -948,10 +957,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
############################################################################################
##################################### BUILD REPORTER #######################################
@@ -998,10 +1005,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
BuilderSpecialReport:
needs:
@@ -1011,6 +1016,8 @@ jobs:
- BuilderBinFreeBSD
# - BuilderBinGCC
- BuilderBinPPC64
+ - BuilderBinAmd64SSE2
+ - BuilderBinAarch64V80Compat
- BuilderBinClangTidy
- BuilderDebShared
runs-on: [self-hosted, style-checker]
@@ -1044,10 +1051,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
########################### FUNCTIONAl STATELESS TESTS #######################################
@@ -1084,10 +1089,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseDatabaseOrdinary:
needs: [BuilderDebRelease]
@@ -1121,10 +1124,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseDatabaseReplicated0:
needs: [BuilderDebRelease]
@@ -1160,10 +1161,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseDatabaseReplicated1:
needs: [BuilderDebRelease]
@@ -1199,10 +1198,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseS3:
needs: [BuilderDebRelease]
@@ -1236,10 +1233,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAarch64:
needs: [BuilderDebAarch64]
@@ -1273,10 +1268,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAsan0:
needs: [BuilderDebAsan]
@@ -1312,10 +1305,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAsan1:
needs: [BuilderDebAsan]
@@ -1351,10 +1342,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan0:
needs: [BuilderDebTsan]
@@ -1390,10 +1379,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan1:
needs: [BuilderDebTsan]
@@ -1429,10 +1416,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan2:
needs: [BuilderDebTsan]
@@ -1468,10 +1453,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestUBsan:
needs: [BuilderDebUBsan]
@@ -1505,10 +1488,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan0:
needs: [BuilderDebMsan]
@@ -1544,10 +1525,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan1:
needs: [BuilderDebMsan]
@@ -1583,10 +1562,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan2:
needs: [BuilderDebMsan]
@@ -1622,10 +1599,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug0:
needs: [BuilderDebDebug]
@@ -1661,10 +1636,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug1:
needs: [BuilderDebDebug]
@@ -1700,10 +1673,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug2:
needs: [BuilderDebDebug]
@@ -1739,10 +1710,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
############################ FUNCTIONAl STATEFUL TESTS #######################################
@@ -1779,10 +1748,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestAarch64:
needs: [BuilderDebAarch64]
@@ -1816,10 +1783,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestAsan:
needs: [BuilderDebAsan]
@@ -1853,10 +1818,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestTsan:
needs: [BuilderDebTsan]
@@ -1890,10 +1853,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestMsan:
needs: [BuilderDebMsan]
@@ -1927,10 +1888,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestUBsan:
needs: [BuilderDebUBsan]
@@ -1964,10 +1923,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestDebug:
needs: [BuilderDebDebug]
@@ -2001,10 +1958,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
######################################### STRESS TESTS #######################################
@@ -2040,10 +1995,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestTsan:
needs: [BuilderDebTsan]
@@ -2080,10 +2033,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestMsan:
needs: [BuilderDebMsan]
@@ -2116,10 +2067,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestUBsan:
needs: [BuilderDebUBsan]
@@ -2152,10 +2101,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestDebug:
needs: [BuilderDebDebug]
@@ -2188,10 +2135,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
############################# INTEGRATION TESTS #############################################
@@ -2229,10 +2174,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsAsan1:
needs: [BuilderDebAsan]
@@ -2267,10 +2210,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsAsan2:
needs: [BuilderDebAsan]
@@ -2305,10 +2246,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan0:
needs: [BuilderDebTsan]
@@ -2343,10 +2282,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan1:
needs: [BuilderDebTsan]
@@ -2381,10 +2318,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan2:
needs: [BuilderDebTsan]
@@ -2419,10 +2354,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan3:
needs: [BuilderDebTsan]
@@ -2457,10 +2390,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsRelease0:
needs: [BuilderDebRelease]
@@ -2495,10 +2426,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsRelease1:
needs: [BuilderDebRelease]
@@ -2533,10 +2462,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
##################################### AST FUZZERS ############################################
@@ -2572,10 +2499,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestTsan:
needs: [BuilderDebTsan]
@@ -2608,10 +2533,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestUBSan:
needs: [BuilderDebUBsan]
@@ -2644,10 +2567,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestMSan:
needs: [BuilderDebMsan]
@@ -2680,10 +2601,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestDebug:
needs: [BuilderDebDebug]
@@ -2716,10 +2635,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
#################################### UNIT TESTS #############################################
@@ -2755,10 +2672,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
UnitTestsReleaseClang:
needs: [BuilderBinRelease]
@@ -2791,10 +2706,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
# UnitTestsReleaseGCC:
# needs: [BuilderBinGCC]
@@ -2827,10 +2740,8 @@ jobs:
# - name: Cleanup
# if: always()
# run: |
- # # shellcheck disable=SC2046
- # docker kill $(docker ps -q) ||:
- # # shellcheck disable=SC2046
- # docker rm -f $(docker ps -a -q) ||:
+ # docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ # docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
# sudo rm -fr "$TEMP_PATH"
UnitTestsTsan:
needs: [BuilderDebTsan]
@@ -2863,10 +2774,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
UnitTestsMsan:
needs: [BuilderDebMsan]
@@ -2899,10 +2808,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
UnitTestsUBsan:
needs: [BuilderDebUBsan]
@@ -2935,10 +2842,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
#################################### PERFORMANCE TESTS ######################################
@@ -2976,10 +2881,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonX86-1:
needs: [BuilderDebRelease]
@@ -3014,10 +2917,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonX86-2:
needs: [BuilderDebRelease]
@@ -3052,10 +2953,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonX86-3:
needs: [BuilderDebRelease]
@@ -3090,10 +2989,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FinishCheck:
needs:
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index e712ada1551..801f7eda94a 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -119,8 +119,6 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 6dd28215d78..2795dc62d6d 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -141,10 +141,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FastTest:
needs: DockerHubPush
@@ -177,10 +175,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
CompatibilityCheck:
needs: [BuilderDebRelease]
@@ -211,10 +207,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
SharedBuildSmokeTest:
needs: [BuilderDebShared]
@@ -245,10 +239,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#########################################################################################
#################################### ORDINARY BUILDS ####################################
@@ -295,10 +287,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
BuilderBinRelease:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -340,10 +330,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebAarch64:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -387,10 +375,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebAsan:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -432,10 +418,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebUBsan:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -477,10 +461,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebTsan:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -522,10 +504,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebMsan:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -567,10 +547,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebDebug:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -612,10 +590,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
##########################################################################################
##################################### SPECIAL BUILDS #####################################
@@ -660,10 +636,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinClangTidy:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -705,10 +679,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinDarwin:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -750,10 +722,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinAarch64:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -795,10 +765,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinFreeBSD:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -840,10 +808,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinDarwinAarch64:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -885,10 +851,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinPPC64:
needs: [DockerHubPush, FastTest, StyleCheck]
@@ -930,10 +894,94 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinAmd64SSE2:
+ needs: [DockerHubPush, FastTest, StyleCheck]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_amd64sse2
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinAarch64V80Compat:
+ needs: [DockerHubPush, FastTest, StyleCheck]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_aarch64_v80compat
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
############################################################################################
##################################### Docker images #######################################
@@ -960,10 +1008,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
############################################################################################
##################################### BUILD REPORTER #######################################
@@ -1010,10 +1056,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
BuilderSpecialReport:
needs:
@@ -1023,6 +1067,8 @@ jobs:
- BuilderBinFreeBSD
# - BuilderBinGCC
- BuilderBinPPC64
+ - BuilderBinAmd64SSE2
+ - BuilderBinAarch64V80Compat
- BuilderBinClangTidy
- BuilderDebShared
runs-on: [self-hosted, style-checker]
@@ -1057,10 +1103,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
########################### FUNCTIONAl STATELESS TESTS #######################################
@@ -1097,10 +1141,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseDatabaseReplicated0:
needs: [BuilderDebRelease]
@@ -1136,10 +1178,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseDatabaseReplicated1:
needs: [BuilderDebRelease]
@@ -1175,10 +1215,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseWideParts:
needs: [BuilderDebRelease]
@@ -1212,10 +1250,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestReleaseS3:
needs: [BuilderDebRelease]
@@ -1249,10 +1285,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestS3Debug0:
needs: [BuilderDebDebug]
@@ -1288,8 +1322,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- docker kill "$(docker ps -q)" ||:
- docker rm -f "$(docker ps -a -q)" ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestS3Debug1:
needs: [BuilderDebDebug]
@@ -1325,8 +1359,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- docker kill "$(docker ps -q)" ||:
- docker rm -f "$(docker ps -a -q)" ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestS3Debug2:
needs: [BuilderDebDebug]
@@ -1362,8 +1396,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- docker kill "$(docker ps -q)" ||:
- docker rm -f "$(docker ps -a -q)" ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestS3Tsan0:
needs: [BuilderDebTsan]
@@ -1399,8 +1433,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- docker kill "$(docker ps -q)" ||:
- docker rm -f "$(docker ps -a -q)" ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestS3Tsan1:
needs: [BuilderDebTsan]
@@ -1436,8 +1470,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- docker kill "$(docker ps -q)" ||:
- docker rm -f "$(docker ps -a -q)" ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestS3Tsan2:
needs: [BuilderDebTsan]
@@ -1473,8 +1507,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- docker kill "$(docker ps -q)" ||:
- docker rm -f "$(docker ps -a -q)" ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAarch64:
needs: [BuilderDebAarch64]
@@ -1508,10 +1542,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAsan0:
needs: [BuilderDebAsan]
@@ -1547,10 +1579,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAsan1:
needs: [BuilderDebAsan]
@@ -1586,10 +1616,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan0:
needs: [BuilderDebTsan]
@@ -1625,10 +1653,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan1:
needs: [BuilderDebTsan]
@@ -1664,10 +1690,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan2:
needs: [BuilderDebTsan]
@@ -1703,10 +1727,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestUBsan:
needs: [BuilderDebUBsan]
@@ -1740,10 +1762,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan0:
needs: [BuilderDebMsan]
@@ -1779,10 +1799,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan1:
needs: [BuilderDebMsan]
@@ -1818,10 +1836,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan2:
needs: [BuilderDebMsan]
@@ -1857,10 +1873,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug0:
needs: [BuilderDebDebug]
@@ -1896,10 +1910,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug1:
needs: [BuilderDebDebug]
@@ -1935,10 +1947,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug2:
needs: [BuilderDebDebug]
@@ -1974,10 +1984,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestFlakyCheck:
needs: [BuilderDebAsan]
@@ -2011,10 +2019,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
TestsBugfixCheck:
runs-on: [self-hosted, stress-tester]
@@ -2058,10 +2064,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
############################ FUNCTIONAl STATEFUL TESTS #######################################
@@ -2098,10 +2102,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestAarch64:
needs: [BuilderDebAarch64]
@@ -2135,10 +2137,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestAsan:
needs: [BuilderDebAsan]
@@ -2172,10 +2172,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestTsan:
needs: [BuilderDebTsan]
@@ -2209,10 +2207,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestMsan:
needs: [BuilderDebMsan]
@@ -2246,10 +2242,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestUBsan:
needs: [BuilderDebUBsan]
@@ -2283,10 +2277,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestDebug:
needs: [BuilderDebDebug]
@@ -2320,10 +2312,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
######################################### STRESS TESTS #######################################
@@ -2359,10 +2349,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestTsan:
needs: [BuilderDebTsan]
@@ -2399,10 +2387,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestMsan:
needs: [BuilderDebMsan]
@@ -2435,10 +2421,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestUBsan:
needs: [BuilderDebUBsan]
@@ -2471,10 +2455,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestDebug:
needs: [BuilderDebDebug]
@@ -2507,10 +2489,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
##################################### AST FUZZERS ############################################
@@ -2546,10 +2526,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestTsan:
needs: [BuilderDebTsan]
@@ -2582,10 +2560,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestUBSan:
needs: [BuilderDebUBsan]
@@ -2618,10 +2594,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestMSan:
needs: [BuilderDebMsan]
@@ -2654,10 +2628,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
ASTFuzzerTestDebug:
needs: [BuilderDebDebug]
@@ -2690,10 +2662,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
############################# INTEGRATION TESTS #############################################
@@ -2731,10 +2701,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsAsan1:
needs: [BuilderDebAsan]
@@ -2769,10 +2737,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsAsan2:
needs: [BuilderDebAsan]
@@ -2807,10 +2773,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan0:
needs: [BuilderDebTsan]
@@ -2845,10 +2809,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan1:
needs: [BuilderDebTsan]
@@ -2883,10 +2845,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan2:
needs: [BuilderDebTsan]
@@ -2921,10 +2881,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan3:
needs: [BuilderDebTsan]
@@ -2959,10 +2917,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsRelease0:
needs: [BuilderDebRelease]
@@ -2997,10 +2953,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsRelease1:
needs: [BuilderDebRelease]
@@ -3035,10 +2989,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsFlakyCheck:
needs: [BuilderDebAsan]
@@ -3071,10 +3023,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
#################################### UNIT TESTS #############################################
@@ -3110,10 +3060,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
UnitTestsReleaseClang:
needs: [BuilderBinRelease]
@@ -3146,10 +3094,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
UnitTestsTsan:
needs: [BuilderDebTsan]
@@ -3182,10 +3128,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
UnitTestsMsan:
needs: [BuilderDebMsan]
@@ -3218,10 +3162,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
UnitTestsUBsan:
needs: [BuilderDebUBsan]
@@ -3254,10 +3196,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
#################################### PERFORMANCE TESTS ######################################
@@ -3295,10 +3235,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonX86-1:
needs: [BuilderDebRelease]
@@ -3333,10 +3271,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonX86-2:
needs: [BuilderDebRelease]
@@ -3371,10 +3307,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonX86-3:
needs: [BuilderDebRelease]
@@ -3409,10 +3343,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonAarch-0:
needs: [BuilderDebAarch64]
@@ -3447,10 +3379,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonAarch-1:
needs: [BuilderDebAarch64]
@@ -3485,10 +3415,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonAarch-2:
needs: [BuilderDebAarch64]
@@ -3523,10 +3451,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
PerformanceComparisonAarch-3:
needs: [BuilderDebAarch64]
@@ -3561,10 +3487,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
###################################### JEPSEN TESTS #########################################
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7e12695990c..0b0f125d641 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -29,8 +29,13 @@ jobs:
rm -rf "$TEMP_PATH" && mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY"
- python3 ./tests/ci/push_to_artifactory.py --release "${{ github.ref }}" \
- --commit '${{ github.sha }}' --artifactory-url "${{ secrets.JFROG_ARTIFACTORY_URL }}" --all
+ # Download and push packages to artifactory
+ python3 ./tests/ci/push_to_artifactory.py --release '${{ github.ref }}' \
+ --commit '${{ github.sha }}' --artifactory-url '${{ secrets.JFROG_ARTIFACTORY_URL }}' --all
+ # Download macos binaries to ${{runner.temp}}/download_binary
+ python3 ./tests/ci/download_binary.py --version '${{ github.ref }}' \
+ --commit '${{ github.sha }}' binary_darwin binary_darwin_aarch64
+ mv '${{runner.temp}}/download_binary/'clickhouse-* '${{runner.temp}}/push_to_artifactory'
- name: Upload packages to release assets
uses: svenstaro/upload-release-action@v2
with:
@@ -61,8 +66,6 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
diff --git a/.github/workflows/release_branches.yml b/.github/workflows/release_branches.yml
index 6403d00157f..8f42ca92646 100644
--- a/.github/workflows/release_branches.yml
+++ b/.github/workflows/release_branches.yml
@@ -103,10 +103,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#########################################################################################
#################################### ORDINARY BUILDS ####################################
@@ -153,10 +151,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebAarch64:
needs: [DockerHubPush]
@@ -196,10 +192,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebAsan:
needs: [DockerHubPush]
@@ -241,10 +235,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebUBsan:
needs: [DockerHubPush]
@@ -286,10 +278,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebTsan:
needs: [DockerHubPush]
@@ -331,10 +321,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebMsan:
needs: [DockerHubPush]
@@ -376,10 +364,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderDebDebug:
needs: [DockerHubPush]
@@ -421,10 +407,98 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinDarwin:
+ needs: [DockerHubPush]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_darwin
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # otherwise we will have no info about contributors
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
+ BuilderBinDarwinAarch64:
+ needs: [DockerHubPush]
+ runs-on: [self-hosted, builder]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/build_check
+ IMAGES_PATH=${{runner.temp}}/images_path
+ REPO_COPY=${{runner.temp}}/build_check/ClickHouse
+ CACHES_PATH=${{runner.temp}}/../ccaches
+ BUILD_NAME=binary_darwin_aarch64
+ EOF
+ - name: Download changed images
+ uses: actions/download-artifact@v2
+ with:
+ name: changed_images
+ path: ${{ env.IMAGES_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0 # otherwise we will have no info about contributors
+ - name: Build
+ run: |
+ git -C "$GITHUB_WORKSPACE" submodule sync --recursive
+ git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
+ cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
+ - name: Upload build URLs to artifacts
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.BUILD_URLS }}
+ path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
############################################################################################
##################################### Docker images #######################################
@@ -451,10 +525,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
############################################################################################
##################################### BUILD REPORTER #######################################
@@ -500,10 +572,46 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
+ sudo rm -fr "$TEMP_PATH"
+ BuilderSpecialReport:
+ needs:
+ - BuilderBinDarwin
+ - BuilderBinDarwinAarch64
+ runs-on: [self-hosted, style-checker]
+ steps:
+ - name: Set envs
+ run: |
+ cat >> "$GITHUB_ENV" << 'EOF'
+ TEMP_PATH=${{runner.temp}}/report_check
+ REPORTS_PATH=${{runner.temp}}/reports_dir
+ CHECK_NAME=ClickHouse special build check
+ NEEDS_DATA_PATH=${{runner.temp}}/needs.json
+ EOF
+ - name: Download json reports
+ uses: actions/download-artifact@v2
+ with:
+ path: ${{ env.REPORTS_PATH }}
+ - name: Clear repository
+ run: |
+ sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
+ - name: Check out repository code
+ uses: actions/checkout@v2
+ - name: Report Builder
+ run: |
+ sudo rm -fr "$TEMP_PATH"
+ mkdir -p "$TEMP_PATH"
+ cat > "$NEEDS_DATA_PATH" << 'EOF'
+ ${{ toJSON(needs) }}
+ EOF
+ cd "$GITHUB_WORKSPACE/tests/ci"
+ python3 build_report_check.py "$CHECK_NAME"
+ - name: Cleanup
+ if: always()
+ run: |
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
########################### FUNCTIONAl STATELESS TESTS #######################################
@@ -540,10 +648,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAarch64:
needs: [BuilderDebAarch64]
@@ -577,10 +683,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAsan0:
needs: [BuilderDebAsan]
@@ -616,10 +720,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestAsan1:
needs: [BuilderDebAsan]
@@ -655,10 +757,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan0:
needs: [BuilderDebTsan]
@@ -694,10 +794,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan1:
needs: [BuilderDebTsan]
@@ -733,10 +831,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestTsan2:
needs: [BuilderDebTsan]
@@ -772,10 +868,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestUBsan:
needs: [BuilderDebUBsan]
@@ -809,10 +903,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan0:
needs: [BuilderDebMsan]
@@ -848,10 +940,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan1:
needs: [BuilderDebMsan]
@@ -887,10 +977,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestMsan2:
needs: [BuilderDebMsan]
@@ -926,10 +1014,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug0:
needs: [BuilderDebDebug]
@@ -965,10 +1051,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug1:
needs: [BuilderDebDebug]
@@ -1004,10 +1088,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestDebug2:
needs: [BuilderDebDebug]
@@ -1043,10 +1125,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
############################ FUNCTIONAl STATEFUL TESTS #######################################
@@ -1083,10 +1163,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestAarch64:
needs: [BuilderDebAarch64]
@@ -1120,10 +1198,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestAsan:
needs: [BuilderDebAsan]
@@ -1157,10 +1233,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestTsan:
needs: [BuilderDebTsan]
@@ -1194,10 +1268,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestMsan:
needs: [BuilderDebMsan]
@@ -1231,10 +1303,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestUBsan:
needs: [BuilderDebUBsan]
@@ -1268,10 +1338,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatefulTestDebug:
needs: [BuilderDebDebug]
@@ -1305,10 +1373,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
##############################################################################################
######################################### STRESS TESTS #######################################
@@ -1344,10 +1410,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestTsan:
needs: [BuilderDebTsan]
@@ -1384,10 +1448,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestMsan:
needs: [BuilderDebMsan]
@@ -1420,10 +1482,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestUBsan:
needs: [BuilderDebUBsan]
@@ -1456,10 +1516,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
StressTestDebug:
needs: [BuilderDebDebug]
@@ -1492,10 +1550,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
#############################################################################################
############################# INTEGRATION TESTS #############################################
@@ -1533,10 +1589,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsAsan1:
needs: [BuilderDebAsan]
@@ -1571,10 +1625,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsAsan2:
needs: [BuilderDebAsan]
@@ -1609,10 +1661,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan0:
needs: [BuilderDebTsan]
@@ -1647,10 +1697,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan1:
needs: [BuilderDebTsan]
@@ -1685,10 +1733,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan2:
needs: [BuilderDebTsan]
@@ -1723,10 +1769,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsTsan3:
needs: [BuilderDebTsan]
@@ -1761,10 +1805,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsRelease0:
needs: [BuilderDebRelease]
@@ -1799,10 +1841,8 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
IntegrationTestsRelease1:
needs: [BuilderDebRelease]
@@ -1837,16 +1877,15 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
FinishCheck:
needs:
- DockerHubPush
- DockerServerImages
- BuilderReport
+ - BuilderSpecialReport
- FunctionalStatelessTestDebug0
- FunctionalStatelessTestDebug1
- FunctionalStatelessTestDebug2
diff --git a/.github/workflows/tags_stable.yml b/.github/workflows/tags_stable.yml
index 9711f7688cb..a9172a8a2e2 100644
--- a/.github/workflows/tags_stable.yml
+++ b/.github/workflows/tags_stable.yml
@@ -43,6 +43,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN }}
run: |
./utils/list-versions/list-versions.sh > ./utils/list-versions/version_date.tsv
+ ./utils/list-versions/update-docker-version.sh
GID=$(id -g "${UID}")
docker run -u "${UID}:${GID}" -e PYTHONUNBUFFERED=1 \
--volume="${GITHUB_WORKSPACE}:/ClickHouse" clickhouse/style-test \
diff --git a/.github/workflows/woboq.yml b/.github/workflows/woboq.yml
index dd29131e9dc..b928a4a8d3d 100644
--- a/.github/workflows/woboq.yml
+++ b/.github/workflows/woboq.yml
@@ -37,8 +37,6 @@ jobs:
- name: Cleanup
if: always()
run: |
- # shellcheck disable=SC2046
- docker kill $(docker ps -q) ||:
- # shellcheck disable=SC2046
- docker rm -f $(docker ps -a -q) ||:
+ docker ps --quiet | xargs --no-run-if-empty docker kill ||:
+ docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
diff --git a/.gitignore b/.gitignore
index e517dfd63c2..dd632eba85d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,6 +58,10 @@ cmake_install.cmake
CTestTestfile.cmake
*.a
*.o
+*.so
+*.dll
+*.lib
+*.dylib
cmake-build-*
# Python cache
diff --git a/.gitmodules b/.gitmodules
index 62b2f9d7766..f372a309cad 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -259,6 +259,10 @@
[submodule "contrib/minizip-ng"]
path = contrib/minizip-ng
url = https://github.com/zlib-ng/minizip-ng
+[submodule "contrib/annoy"]
+ path = contrib/annoy
+ url = https://github.com/ClickHouse/annoy.git
+ branch = ClickHouse-master
[submodule "contrib/qpl"]
path = contrib/qpl
url = https://github.com/intel/qpl.git
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3198c15b15c..56d117d05dd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
### Table of Contents
+**[ClickHouse release v22.9, 2022-09-22](#229)**
**[ClickHouse release v22.8, 2022-08-18](#228)**
**[ClickHouse release v22.7, 2022-07-21](#227)**
**[ClickHouse release v22.6, 2022-06-16](#226)**
@@ -10,6 +11,213 @@
**[Changelog for 2021](https://clickhouse.com/docs/en/whats-new/changelog/2021/)**
+### ClickHouse release 22.9, 2022-09-22
+
+#### Backward Incompatible Change
+* Upgrade from 20.3 and older to 22.9 and newer should be done through an intermediate version if there are any `ReplicatedMergeTree` tables, otherwise server with the new version will not start. [#40641](https://github.com/ClickHouse/ClickHouse/pull/40641) ([Alexander Tokmakov](https://github.com/tavplubix)).
+* Remove the functions `accurate_Cast` and `accurate_CastOrNull` (they are different to `accurateCast` and `accurateCastOrNull` by underscore in the name and they are not affected by the value of `cast_keep_nullable` setting). These functions were undocumented, untested, unused, and unneeded. They appeared to be alive due to code generalization. [#40682](https://github.com/ClickHouse/ClickHouse/pull/40682) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Add a test to ensure that every new table function will be documented. See [#40649](https://github.com/ClickHouse/ClickHouse/issues/40649). Rename table function `MeiliSearch` to `meilisearch`. [#40709](https://github.com/ClickHouse/ClickHouse/pull/40709) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Add a test to ensure that every new function will be documented. See [#40649](https://github.com/ClickHouse/ClickHouse/pull/40649). The functions `lemmatize`, `synonyms`, `stem` were case-insensitive by mistake. Now they are case-sensitive. [#40711](https://github.com/ClickHouse/ClickHouse/pull/40711) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Make interpretation of YAML configs to be more conventional. [#41044](https://github.com/ClickHouse/ClickHouse/pull/41044) ([Vitaly Baranov](https://github.com/vitlibar)).
+
+#### New Feature
+* Support `insert_quorum = 'auto'` to use majority number. [#39970](https://github.com/ClickHouse/ClickHouse/pull/39970) ([Sachin](https://github.com/SachinSetiya)).
+* Add embedded dashboards to ClickHouse server. This is a demo project about how to achieve 90% results with 1% effort using ClickHouse features. [#40461](https://github.com/ClickHouse/ClickHouse/pull/40461) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Added new settings constraint writability kind `changeable_in_readonly`. [#40631](https://github.com/ClickHouse/ClickHouse/pull/40631) ([Sergei Trifonov](https://github.com/serxa)).
+* Add support for `INTERSECT DISTINCT` and `EXCEPT DISTINCT`. [#40792](https://github.com/ClickHouse/ClickHouse/pull/40792) ([Duc Canh Le](https://github.com/canhld94)).
+* Add new input/output format `JSONObjectEachRow` - Support import for formats `JSON/JSONCompact/JSONColumnsWithMetadata`. Add new setting `input_format_json_validate_types_from_metadata` that controls whether we should check if data types from metadata match data types from the header. - Add new setting `input_format_json_validate_utf8`, when it's enabled, all `JSON` formats will validate UTF-8 sequences. It will be disabled by default. Note that this setting doesn't influence output formats `JSON/JSONCompact/JSONColumnsWithMetadata`, they always validate utf8 sequences (this exception was made because of compatibility reasons). - Add new setting `input_format_json_read_numbers_as_strings ` that allows to parse numbers in String column, the setting is disabled by default. - Add new setting `output_format_json_quote_decimals` that allows to output decimals in double quotes, disabled by default. - Allow to parse decimals in double quotes during data import. [#40910](https://github.com/ClickHouse/ClickHouse/pull/40910) ([Kruglov Pavel](https://github.com/Avogar)).
+* Query parameters supported in DESCRIBE TABLE query. [#40952](https://github.com/ClickHouse/ClickHouse/pull/40952) ([Nikita Taranov](https://github.com/nickitat)).
+* Add support to Parquet Time32/64 by converting it into DateTime64. Parquet time32/64 represents time elapsed since midnight, while DateTime32/64 represents an actual unix timestamp. Conversion simply offsets from `0`. [#41333](https://github.com/ClickHouse/ClickHouse/pull/41333) ([Arthur Passos](https://github.com/arthurpassos)).
+* Implement set operations on Apache Datasketches. [#39919](https://github.com/ClickHouse/ClickHouse/pull/39919) ([Fangyuan Deng](https://github.com/pzhdfy)). Note: there is no point of using Apache Datasketches, they are inferiour than ClickHouse and only make sense for integration with other systems.
+* Allow recording errors to specified file while reading text formats (`CSV`, `TSV`). [#40516](https://github.com/ClickHouse/ClickHouse/pull/40516) ([zjial](https://github.com/zjial)).
+
+#### Experimental Feature
+
+* Add ANN (approximate nearest neighbor) index based on `Annoy`. [#40818](https://github.com/ClickHouse/ClickHouse/pull/40818) ([Filatenkov Artur](https://github.com/FArthur-cmd)). [#37215](https://github.com/ClickHouse/ClickHouse/pull/37215) ([VVMak](https://github.com/VVMak)).
+* Add new storage engine `KeeperMap`, that uses ClickHouse Keeper or ZooKeeper as a key-value store. [#39976](https://github.com/ClickHouse/ClickHouse/pull/39976) ([Antonio Andelic](https://github.com/antonio2368)). This storage engine is intended to store a small amount of metadata.
+* Improvement for in-memory data parts: remove completely processed WAL files. [#40592](https://github.com/ClickHouse/ClickHouse/pull/40592) ([Azat Khuzhin](https://github.com/azat)).
+
+#### Performance Improvement
+* Implement compression of marks and primary key. Close [#34437](https://github.com/ClickHouse/ClickHouse/issues/34437). [#37693](https://github.com/ClickHouse/ClickHouse/pull/37693) ([zhongyuankai](https://github.com/zhongyuankai)).
+* Allow to load marks with threadpool in advance. Regulated by setting `load_marks_asynchronously` (default: 0). [#40821](https://github.com/ClickHouse/ClickHouse/pull/40821) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Virtual filesystem over s3 will use random object names split into multiple path prefixes for better performance on AWS. [#40968](https://github.com/ClickHouse/ClickHouse/pull/40968) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Account `max_block_size` value while producing single-level aggregation results. Allows to execute following query plan steps using more threads. [#39138](https://github.com/ClickHouse/ClickHouse/pull/39138) ([Nikita Taranov](https://github.com/nickitat)).
+* Software prefetching is used in aggregation to speed up operations with hash tables. Controlled by the setting `enable_software_prefetch_in_aggregation`, enabled by default. [#39304](https://github.com/ClickHouse/ClickHouse/pull/39304) ([Nikita Taranov](https://github.com/nickitat)).
+* Better support of `optimize_read_in_order` in case when some of sorting key columns are always constant after applying `WHERE` clause. E.g. query like `SELECT ... FROM table WHERE a = 'x' ORDER BY a, b`, where `table` has storage definition: `MergeTree ORDER BY (a, b)`. [#38715](https://github.com/ClickHouse/ClickHouse/pull/38715) ([Anton Popov](https://github.com/CurtizJ)).
+* Filter joined streams for `full_sorting_join` by each other before sorting. [#39418](https://github.com/ClickHouse/ClickHouse/pull/39418) ([Vladimir C](https://github.com/vdimir)).
+* LZ4 decompression optimised by skipping empty literals processing. [#40142](https://github.com/ClickHouse/ClickHouse/pull/40142) ([Nikita Taranov](https://github.com/nickitat)).
+* Speedup backup process using native `copy` when possible instead of copying through `clickhouse-server` memory. [#40395](https://github.com/ClickHouse/ClickHouse/pull/40395) ([alesapin](https://github.com/alesapin)).
+* Do not obtain storage snapshot for each INSERT block (slightly improves performance). [#40638](https://github.com/ClickHouse/ClickHouse/pull/40638) ([Azat Khuzhin](https://github.com/azat)).
+* Implement batch processing for aggregate functions with multiple nullable arguments. [#41058](https://github.com/ClickHouse/ClickHouse/pull/41058) ([Raúl Marín](https://github.com/Algunenano)).
+* Speed up reading UniquesHashSet (`uniqState` from disk for example). [#41089](https://github.com/ClickHouse/ClickHouse/pull/41089) ([Raúl Marín](https://github.com/Algunenano)).
+* Fixed high memory usage while executing mutations of compact parts in tables with huge number of columns. [#41122](https://github.com/ClickHouse/ClickHouse/pull/41122) ([lthaooo](https://github.com/lthaooo)).
+* Enable the vectorscan library on ARM, this speeds up regexp evaluation. [#41033](https://github.com/ClickHouse/ClickHouse/pull/41033) ([Robert Schulze](https://github.com/rschu1ze)).
+* Upgrade vectorscan to 5.4.8 which has many performance optimizations to speed up regexp evaluation. [#41270](https://github.com/ClickHouse/ClickHouse/pull/41270) ([Robert Schulze](https://github.com/rschu1ze)).
+* Fix incorrect fallback to skip the local filesystem cache for VFS (like S3) which happened on very high concurrency level. [#40420](https://github.com/ClickHouse/ClickHouse/pull/40420) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* If row policy filter is always false, return empty result immediately without reading any data. This closes [#24012](https://github.com/ClickHouse/ClickHouse/issues/24012). [#40740](https://github.com/ClickHouse/ClickHouse/pull/40740) ([Amos Bird](https://github.com/amosbird)).
+* Parallel hash JOIN for Float data types might be suboptimal. Make it better. [#41183](https://github.com/ClickHouse/ClickHouse/pull/41183) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+
+#### Improvement
+* During startup and ATTACH call, `ReplicatedMergeTree` tables will be readonly until the ZooKeeper connection is made and the setup is finished. [#40148](https://github.com/ClickHouse/ClickHouse/pull/40148) ([Antonio Andelic](https://github.com/antonio2368)).
+* Add `enable_extended_results_for_datetime_functions` option to return results of type Date32 for functions toStartOfYear, toStartOfISOYear, toStartOfQuarter, toStartOfMonth, toStartOfWeek, toMonday and toLastDayOfMonth when argument is Date32 or DateTime64, otherwise results of Date type are returned. For compatibility reasons default value is ‘0’. [#41214](https://github.com/ClickHouse/ClickHouse/pull/41214) ([Roman Vasin](https://github.com/rvasin)).
+* For security and stability reasons, CatBoost models are no longer evaluated within the ClickHouse server. Instead, the evaluation is now done in the clickhouse-library-bridge, a separate process that loads the catboost library and communicates with the server process via HTTP. [#40897](https://github.com/ClickHouse/ClickHouse/pull/40897) ([Robert Schulze](https://github.com/rschu1ze)). [#39629](https://github.com/ClickHouse/ClickHouse/pull/39629) ([Robert Schulze](https://github.com/rschu1ze)).
+* Add more metrics for on-disk temporary data, close [#40206](https://github.com/ClickHouse/ClickHouse/issues/40206). [#40239](https://github.com/ClickHouse/ClickHouse/pull/40239) ([Vladimir C](https://github.com/vdimir)).
+* Add config option `warning_supress_regexp`, close [#40330](https://github.com/ClickHouse/ClickHouse/issues/40330). [#40548](https://github.com/ClickHouse/ClickHouse/pull/40548) ([Vladimir C](https://github.com/vdimir)).
+* Add setting to disable limit on kafka_num_consumers. Closes [#40331](https://github.com/ClickHouse/ClickHouse/issues/40331). [#40670](https://github.com/ClickHouse/ClickHouse/pull/40670) ([Kruglov Pavel](https://github.com/Avogar)).
+* Support `SETTINGS` in `DELETE ...` query. [#41533](https://github.com/ClickHouse/ClickHouse/pull/41533) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Detailed S3 profile events `DiskS3*` per S3 API call split for S3 ObjectStorage. [#41532](https://github.com/ClickHouse/ClickHouse/pull/41532) ([Sergei Trifonov](https://github.com/serxa)).
+* Two new metrics in `system.asynchronous_metrics`. `NumberOfDetachedParts` and `NumberOfDetachedByUserParts`. [#40779](https://github.com/ClickHouse/ClickHouse/pull/40779) ([Sema Checherinda](https://github.com/CheSema)).
+* Allow CONSTRAINTs for ODBC and JDBC tables. [#34551](https://github.com/ClickHouse/ClickHouse/pull/34551) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Don't print `SETTINGS` more than once during query formatting if it didn't appear multiple times in the original query. [#38900](https://github.com/ClickHouse/ClickHouse/pull/38900) ([Raúl Marín](https://github.com/Algunenano)).
+* Improve the tracing (OpenTelemetry) context propagation across threads. [#39010](https://github.com/ClickHouse/ClickHouse/pull/39010) ([Frank Chen](https://github.com/FrankChen021)).
+* ClickHouse Keeper: add listeners for `interserver_listen_host` only in Keeper if specified. [#39973](https://github.com/ClickHouse/ClickHouse/pull/39973) ([Antonio Andelic](https://github.com/antonio2368)).
+* Improve recovery of Replicated user access storage after errors. [#39977](https://github.com/ClickHouse/ClickHouse/pull/39977) ([Vitaly Baranov](https://github.com/vitlibar)).
+* Add support for TTL in `EmbeddedRocksDB`. [#39986](https://github.com/ClickHouse/ClickHouse/pull/39986) ([Lloyd-Pottiger](https://github.com/Lloyd-Pottiger)).
+* Add schema inference to `clickhouse-obfuscator`, so the `--structure` argument is no longer required. [#40120](https://github.com/ClickHouse/ClickHouse/pull/40120) ([Nikolay Degterinsky](https://github.com/evillique)).
+* Improve and fix dictionaries in `Arrow` format. [#40173](https://github.com/ClickHouse/ClickHouse/pull/40173) ([Kruglov Pavel](https://github.com/Avogar)).
+* More natural conversion of `Date32`, `DateTime64`, `Date` to narrower types: upper or lower normal value is considered when out of normal range. [#40217](https://github.com/ClickHouse/ClickHouse/pull/40217) ([Andrey Zvonov](https://github.com/zvonand)).
+* Fix the case when `Merge` table over `View` cannot use index. [#40233](https://github.com/ClickHouse/ClickHouse/pull/40233) ([Duc Canh Le](https://github.com/canhld94)).
+* Custom key names for JSON server logs. [#40251](https://github.com/ClickHouse/ClickHouse/pull/40251) ([Mallik Hassan](https://github.com/SadiHassan)).
+* It is now possible to set a custom error code for the exception thrown by function `throwIf`. [#40319](https://github.com/ClickHouse/ClickHouse/pull/40319) ([Robert Schulze](https://github.com/rschu1ze)).
+* Improve schema inference cache, respect format settings that can change the schema. [#40414](https://github.com/ClickHouse/ClickHouse/pull/40414) ([Kruglov Pavel](https://github.com/Avogar)).
+* Allow parsing `Date` as `DateTime` and `DateTime64`. This implements the enhancement proposed in [#36949](https://github.com/ClickHouse/ClickHouse/issues/36949). [#40474](https://github.com/ClickHouse/ClickHouse/pull/40474) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Allow conversion from `String` with `DateTime64` like `2022-08-22 01:02:03.456` to `Date` and `Date32`. Allow conversion from String with DateTime like `2022-08-22 01:02:03` to `Date32`. This closes [#39598](https://github.com/ClickHouse/ClickHouse/issues/39598). [#40475](https://github.com/ClickHouse/ClickHouse/pull/40475) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Better support for nested data structures in Parquet format [#40485](https://github.com/ClickHouse/ClickHouse/pull/40485) ([Arthur Passos](https://github.com/arthurpassos)).
+* Support reading Array(Record) into flatten nested table in Avro. [#40534](https://github.com/ClickHouse/ClickHouse/pull/40534) ([Kruglov Pavel](https://github.com/Avogar)).
+* Add read-only support for `EmbeddedRocksDB`. [#40543](https://github.com/ClickHouse/ClickHouse/pull/40543) ([Lloyd-Pottiger](https://github.com/Lloyd-Pottiger)).
+* Validate the compression method parameter of URL table engine. [#40600](https://github.com/ClickHouse/ClickHouse/pull/40600) ([Frank Chen](https://github.com/FrankChen021)).
+* Better format detection for url table function/engine in presence of a query string after a file name. Closes [#40315](https://github.com/ClickHouse/ClickHouse/issues/40315). [#40636](https://github.com/ClickHouse/ClickHouse/pull/40636) ([Kruglov Pavel](https://github.com/Avogar)).
+* Disable projection when grouping set is used. It generated wrong result. This fixes [#40635](https://github.com/ClickHouse/ClickHouse/issues/40635). [#40726](https://github.com/ClickHouse/ClickHouse/pull/40726) ([Amos Bird](https://github.com/amosbird)).
+* Fix incorrect format of `APPLY` column transformer which can break metadata if used in table definition. This fixes [#37590](https://github.com/ClickHouse/ClickHouse/issues/37590). [#40727](https://github.com/ClickHouse/ClickHouse/pull/40727) ([Amos Bird](https://github.com/amosbird)).
+* Support the `%z` descriptor for formatting the timezone offset in `formatDateTime`. [#40736](https://github.com/ClickHouse/ClickHouse/pull/40736) ([Cory Levy](https://github.com/LevyCory)).
+* The interactive mode in `clickhouse-client` now interprets `.` and `/` as "run the last command". [#40750](https://github.com/ClickHouse/ClickHouse/pull/40750) ([Robert Schulze](https://github.com/rschu1ze)).
+* Fix issue with passing MySQL timeouts for MySQL database engine and MySQL table function. Closes [#34168](https://github.com/ClickHouse/ClickHouse/issues/34168). [#40751](https://github.com/ClickHouse/ClickHouse/pull/40751) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Create status file for filesystem cache directory to make sure that cache directories are not shared between different servers or caches. [#40820](https://github.com/ClickHouse/ClickHouse/pull/40820) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Add support for `DELETE` and `UPDATE` for `EmbeddedRocksDB` storage. [#40853](https://github.com/ClickHouse/ClickHouse/pull/40853) ([Antonio Andelic](https://github.com/antonio2368)).
+* ClickHouse Keeper: fix shutdown during long commit and increase allowed request size. [#40941](https://github.com/ClickHouse/ClickHouse/pull/40941) ([Antonio Andelic](https://github.com/antonio2368)).
+* Fix race in WriteBufferFromS3, add TSA annotations. [#40950](https://github.com/ClickHouse/ClickHouse/pull/40950) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Grouping sets with group_by_use_nulls should only convert key columns to nullable. [#40997](https://github.com/ClickHouse/ClickHouse/pull/40997) ([Duc Canh Le](https://github.com/canhld94)).
+* Improve the observability of INSERT on distributed table. [#41034](https://github.com/ClickHouse/ClickHouse/pull/41034) ([Frank Chen](https://github.com/FrankChen021)).
+* More low-level metrics for S3 interaction. [#41039](https://github.com/ClickHouse/ClickHouse/pull/41039) ([mateng915](https://github.com/mateng0915)).
+* Support relative path in Location header after HTTP redirect. Closes [#40985](https://github.com/ClickHouse/ClickHouse/issues/40985). [#41162](https://github.com/ClickHouse/ClickHouse/pull/41162) ([Kruglov Pavel](https://github.com/Avogar)).
+* Apply changes to HTTP handlers on fly without server restart. [#41177](https://github.com/ClickHouse/ClickHouse/pull/41177) ([Azat Khuzhin](https://github.com/azat)).
+* ClickHouse Keeper: properly close active sessions during shutdown. [#41215](https://github.com/ClickHouse/ClickHouse/pull/41215) ([Antonio Andelic](https://github.com/antonio2368)). This lowers the period of "table is read-only" errors.
+* Add ability to automatically comment SQL queries in clickhouse-client/local (with `Alt-#`, like in readline). [#41224](https://github.com/ClickHouse/ClickHouse/pull/41224) ([Azat Khuzhin](https://github.com/azat)).
+* Fix incompatibility of cache after switching setting `do_no_evict_index_and_mark_files` from 1 to 0, 0 to 1. [#41330](https://github.com/ClickHouse/ClickHouse/pull/41330) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Add a setting `allow_suspicious_fixed_string_types` to prevent users from creating columns of type FixedString with size > 256. [#41495](https://github.com/ClickHouse/ClickHouse/pull/41495) ([Duc Canh Le](https://github.com/canhld94)).
+* Add `has_lightweight_delete` to system.parts. [#41564](https://github.com/ClickHouse/ClickHouse/pull/41564) ([Kseniia Sumarokova](https://github.com/kssenii)).
+
+#### Build/Testing/Packaging Improvement
+* Enforce documentation for every setting. [#40644](https://github.com/ClickHouse/ClickHouse/pull/40644) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Enforce documentation for every current metric. [#40645](https://github.com/ClickHouse/ClickHouse/pull/40645) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Enforce documentation for every profile event counter. Write the documentation where it was missing. [#40646](https://github.com/ClickHouse/ClickHouse/pull/40646) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Allow minimal `clickhouse-local` build by correcting some dependencies. [#40460](https://github.com/ClickHouse/ClickHouse/pull/40460) ([Alexey Milovidov](https://github.com/alexey-milovidov)). It is less than 50 MiB.
+* Calculate and report SQL function coverage in tests. [#40593](https://github.com/ClickHouse/ClickHouse/issues/40593). [#40647](https://github.com/ClickHouse/ClickHouse/pull/40647) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Enforce documentation for every MergeTree setting. [#40648](https://github.com/ClickHouse/ClickHouse/pull/40648) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* A prototype of embedded reference documentation for high-level uniform server components. [#40649](https://github.com/ClickHouse/ClickHouse/pull/40649) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* We will check all queries from the changed perf tests to ensure that all changed queries were tested. [#40322](https://github.com/ClickHouse/ClickHouse/pull/40322) ([Nikita Taranov](https://github.com/nickitat)).
+* Fix TGZ packages. [#40681](https://github.com/ClickHouse/ClickHouse/pull/40681) ([Mikhail f. Shiryaev](https://github.com/Felixoid)).
+* Fix debug symbols. [#40873](https://github.com/ClickHouse/ClickHouse/pull/40873) ([Azat Khuzhin](https://github.com/azat)).
+* Extended the CI configuration to create a x86 SSE2-only build. Useful for old or embedded hardware. [#40999](https://github.com/ClickHouse/ClickHouse/pull/40999) ([Robert Schulze](https://github.com/rschu1ze)).
+* Switch to llvm/clang 15. [#41046](https://github.com/ClickHouse/ClickHouse/pull/41046) ([Azat Khuzhin](https://github.com/azat)).
+* Continuation of [#40938](https://github.com/ClickHouse/ClickHouse/issues/40938). Fix ODR violation for `Loggers` class. Fixes [#40398](https://github.com/ClickHouse/ClickHouse/issues/40398), [#40937](https://github.com/ClickHouse/ClickHouse/issues/40937). [#41060](https://github.com/ClickHouse/ClickHouse/pull/41060) ([Dmitry Novik](https://github.com/novikd)).
+* Add macOS binaries to GitHub release assets, it fixes [#37718](https://github.com/ClickHouse/ClickHouse/issues/37718). [#41088](https://github.com/ClickHouse/ClickHouse/pull/41088) ([Mikhail f. Shiryaev](https://github.com/Felixoid)).
+* The c-ares library is now bundled with ClickHouse's build system. [#41239](https://github.com/ClickHouse/ClickHouse/pull/41239) ([Robert Schulze](https://github.com/rschu1ze)).
+* Get rid of `dlopen` from the main ClickHouse code. It remains in the library-bridge and odbc-bridge. [#41428](https://github.com/ClickHouse/ClickHouse/pull/41428) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Don't allow `dlopen` in the main ClickHouse binary, because it is harmful and insecure. We don't use it. But it can be used by some libraries for the implementation of "plugins". We absolutely discourage the ancient technique of loading 3rd-party uncontrolled dangerous libraries into the process address space, because it is insane. [#41429](https://github.com/ClickHouse/ClickHouse/pull/41429) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Add `source` field to deb packages, update `nfpm`. [#41531](https://github.com/ClickHouse/ClickHouse/pull/41531) ([Mikhail f. Shiryaev](https://github.com/Felixoid)).
+* Support for DWARF-5 in the in-house DWARF parser. [#40710](https://github.com/ClickHouse/ClickHouse/pull/40710) ([Azat Khuzhin](https://github.com/azat)).
+* Add fault injection in ZooKeeper client for testing [#30498](https://github.com/ClickHouse/ClickHouse/pull/30498) ([Alexander Tokmakov](https://github.com/tavplubix)).
+* Add stateless tests with s3 storage with debug and tsan [#35262](https://github.com/ClickHouse/ClickHouse/pull/35262) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Trying stress on top of S3 [#36837](https://github.com/ClickHouse/ClickHouse/pull/36837) ([alesapin](https://github.com/alesapin)).
+* Enable `concurrency-mt-unsafe` in `clang-tidy` [#40224](https://github.com/ClickHouse/ClickHouse/pull/40224) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+
+#### Bug Fix
+
+* Fix potential dataloss due to [a bug in AWS SDK](https://github.com/aws/aws-sdk-cpp/issues/658). Bug can be triggered only when clickhouse is used over S3. [#40506](https://github.com/ClickHouse/ClickHouse/pull/40506) ([alesapin](https://github.com/alesapin)). This bug has been open for 5 years in AWS SDK and is closed after our report.
+* Malicious data in Native format might cause a crash. [#41441](https://github.com/ClickHouse/ClickHouse/pull/41441) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* The aggregate function `categorialInformationValue` was having incorrectly defined properties, which might cause a null pointer dereferencing at runtime. This closes [#41443](https://github.com/ClickHouse/ClickHouse/issues/41443). [#41449](https://github.com/ClickHouse/ClickHouse/pull/41449) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Writing data in Apache `ORC` format might lead to a buffer overrun. [#41458](https://github.com/ClickHouse/ClickHouse/pull/41458) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Fix memory safety issues with functions `encrypt` and `contingency` if Array of Nullable is used as an argument. This fixes [#41004](https://github.com/ClickHouse/ClickHouse/issues/41004). [#40195](https://github.com/ClickHouse/ClickHouse/pull/40195) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* Fix bugs in MergeJoin when 'not_processed' is not null. [#40335](https://github.com/ClickHouse/ClickHouse/pull/40335) ([liql2007](https://github.com/liql2007)).
+* Fix incorrect result in case of decimal precision loss in IN operator, ref [#41125](https://github.com/ClickHouse/ClickHouse/issues/41125). [#41130](https://github.com/ClickHouse/ClickHouse/pull/41130) ([Vladimir C](https://github.com/vdimir)).
+* Fix filling of missed `Nested` columns with multiple levels. [#37152](https://github.com/ClickHouse/ClickHouse/pull/37152) ([Anton Popov](https://github.com/CurtizJ)).
+* Fix SYSTEM UNFREEZE query for Ordinary (deprecated) database. Fix for https://github.com/ClickHouse/ClickHouse/pull/36424. [#38262](https://github.com/ClickHouse/ClickHouse/pull/38262) ([Vadim Volodin](https://github.com/PolyProgrammist)).
+* Fix unused unknown columns introduced by WITH statement. This fixes [#37812](https://github.com/ClickHouse/ClickHouse/issues/37812) . [#39131](https://github.com/ClickHouse/ClickHouse/pull/39131) ([Amos Bird](https://github.com/amosbird)).
+* Fix query analysis for ORDER BY in presence of window functions. Fixes [#38741](https://github.com/ClickHouse/ClickHouse/issues/38741) Fixes [#24892](https://github.com/ClickHouse/ClickHouse/issues/24892). [#39354](https://github.com/ClickHouse/ClickHouse/pull/39354) ([Dmitry Novik](https://github.com/novikd)).
+* Fixed `Unknown identifier (aggregate-function)` exception which appears when a user tries to calculate WINDOW ORDER BY/PARTITION BY expressions over aggregate functions. [#39762](https://github.com/ClickHouse/ClickHouse/pull/39762) ([Vladimir Chebotaryov](https://github.com/quickhouse)).
+* Limit number of analyze for one query with setting `max_analyze_depth`. It prevents exponential blow up of analysis time for queries with extraordinarily large number of subqueries. [#40334](https://github.com/ClickHouse/ClickHouse/pull/40334) ([Vladimir C](https://github.com/vdimir)).
+* Fix rare bug with column TTL for MergeTree engines family: In case of repeated vertical merge the error `Cannot unlink file ColumnName.bin ... No such file or directory.` could happen. [#40346](https://github.com/ClickHouse/ClickHouse/pull/40346) ([alesapin](https://github.com/alesapin)).
+* Use DNS entries for both IPv4 and IPv6 if present. [#40353](https://github.com/ClickHouse/ClickHouse/pull/40353) ([Maksim Kita](https://github.com/kitaisreal)).
+* Allow to read snappy compressed files from Hadoop. [#40482](https://github.com/ClickHouse/ClickHouse/pull/40482) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fix crash while parsing values of type `Object` (experimental feature) that contains arrays of variadic dimension. [#40483](https://github.com/ClickHouse/ClickHouse/pull/40483) ([Duc Canh Le](https://github.com/canhld94)).
+* Fix settings `input_format_tsv_skip_first_lines`. [#40491](https://github.com/ClickHouse/ClickHouse/pull/40491) ([mini4](https://github.com/mini4)).
+* Fix bug (race condition) when starting up MaterializedPostgreSQL database/table engine. [#40262](https://github.com/ClickHouse/ClickHouse/issues/40262). Fix error with reaching limit of relcache_callback_list slots. [#40511](https://github.com/ClickHouse/ClickHouse/pull/40511) ([Maksim Buren](https://github.com/maks-buren630501)).
+* Fix possible error 'Decimal math overflow' while parsing DateTime64. [#40546](https://github.com/ClickHouse/ClickHouse/pull/40546) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fix vertical merge of parts with lightweight deleted rows. [#40559](https://github.com/ClickHouse/ClickHouse/pull/40559) ([Alexander Gololobov](https://github.com/davenger)).
+* Fix segment fault when writing data to URL table engine if it enables compression. [#40565](https://github.com/ClickHouse/ClickHouse/pull/40565) ([Frank Chen](https://github.com/FrankChen021)).
+* Fix possible logical error `'Invalid Field get from type UInt64 to type String'` in arrayElement function with Map. [#40572](https://github.com/ClickHouse/ClickHouse/pull/40572) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fix possible race in filesystem cache. [#40586](https://github.com/ClickHouse/ClickHouse/pull/40586) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Removed skipping of mutations in unaffected partitions of `MergeTree` tables, because this feature never worked correctly and might cause resurrection of finished mutations. [#40589](https://github.com/ClickHouse/ClickHouse/pull/40589) ([Alexander Tokmakov](https://github.com/tavplubix)).
+* The clickhouse server will crash if we add a grpc port which has been occupied to the configuration in runtime. [#40597](https://github.com/ClickHouse/ClickHouse/pull/40597) ([何李夫](https://github.com/helifu)).
+* Fix `base58Encode / base58Decode` handling leading 0 / '1'. [#40620](https://github.com/ClickHouse/ClickHouse/pull/40620) ([Andrey Zvonov](https://github.com/zvonand)).
+* keeper-fix: fix race in accessing logs while snapshot is being installed. [#40627](https://github.com/ClickHouse/ClickHouse/pull/40627) ([Antonio Andelic](https://github.com/antonio2368)).
+* Fix short circuit execution of toFixedString function. Solves (partially) [#40622](https://github.com/ClickHouse/ClickHouse/issues/40622). [#40628](https://github.com/ClickHouse/ClickHouse/pull/40628) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fixes SQLite int8 column conversion to int64 column in ClickHouse. Fixes [#40639](https://github.com/ClickHouse/ClickHouse/issues/40639). [#40642](https://github.com/ClickHouse/ClickHouse/pull/40642) ([Barum Rho](https://github.com/barumrho)).
+* Fix stack overflow in recursive `Buffer` tables. This closes [#40637](https://github.com/ClickHouse/ClickHouse/issues/40637). [#40643](https://github.com/ClickHouse/ClickHouse/pull/40643) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
+* During insertion of a new query to the `ProcessList` allocations happen. If we reach the memory limit during these allocations we can not use `OvercommitTracker`, because `ProcessList::mutex` is already acquired. Fixes [#40611](https://github.com/ClickHouse/ClickHouse/issues/40611). [#40677](https://github.com/ClickHouse/ClickHouse/pull/40677) ([Dmitry Novik](https://github.com/novikd)).
+* Fix LOGICAL_ERROR with max_read_buffer_size=0 during reading marks. [#40705](https://github.com/ClickHouse/ClickHouse/pull/40705) ([Azat Khuzhin](https://github.com/azat)).
+* Fix memory leak while pushing to MVs w/o query context (from Kafka/...). [#40732](https://github.com/ClickHouse/ClickHouse/pull/40732) ([Azat Khuzhin](https://github.com/azat)).
+* Fix possible error Attempt to read after eof in CSV schema inference. [#40746](https://github.com/ClickHouse/ClickHouse/pull/40746) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fix logical error in write-through cache "File segment completion can be done only by downloader". Closes [#40748](https://github.com/ClickHouse/ClickHouse/issues/40748). [#40759](https://github.com/ClickHouse/ClickHouse/pull/40759) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Make the result of GROUPING function the same as in SQL and other DBMS. [#40762](https://github.com/ClickHouse/ClickHouse/pull/40762) ([Dmitry Novik](https://github.com/novikd)).
+* In [#40595](https://github.com/ClickHouse/ClickHouse/issues/40595) it was reported that the `host_regexp` functionality was not working properly with a name to address resolution in `/etc/hosts`. It's fixed. [#40769](https://github.com/ClickHouse/ClickHouse/pull/40769) ([Arthur Passos](https://github.com/arthurpassos)).
+* Fix incremental backups for Log family. [#40827](https://github.com/ClickHouse/ClickHouse/pull/40827) ([Vitaly Baranov](https://github.com/vitlibar)).
+* Fix extremely rare bug which can lead to potential data loss in zero-copy replication. [#40844](https://github.com/ClickHouse/ClickHouse/pull/40844) ([alesapin](https://github.com/alesapin)).
+* Fix key condition analyzing crashes when same set expression built from different column(s). [#40850](https://github.com/ClickHouse/ClickHouse/pull/40850) ([Duc Canh Le](https://github.com/canhld94)).
+* Fix nested JSON Objects schema inference. [#40851](https://github.com/ClickHouse/ClickHouse/pull/40851) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fix 3-digit prefix directory for filesystem cache files not being deleted if empty. Closes [#40797](https://github.com/ClickHouse/ClickHouse/issues/40797). [#40867](https://github.com/ClickHouse/ClickHouse/pull/40867) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Fix uncaught DNS_ERROR on failed connection to replicas. [#40881](https://github.com/ClickHouse/ClickHouse/pull/40881) ([Robert Coelho](https://github.com/coelho)).
+* Fix bug when removing unneeded columns in subquery. [#40884](https://github.com/ClickHouse/ClickHouse/pull/40884) ([luocongkai](https://github.com/TKaxe)).
+* Fix extra memory allocation for remote read buffers. [#40896](https://github.com/ClickHouse/ClickHouse/pull/40896) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Fixed a behaviour when user with explicitly revoked grant for dropping databases can still drop it. [#40906](https://github.com/ClickHouse/ClickHouse/pull/40906) ([Nikita Mikhaylov](https://github.com/nikitamikhaylov)).
+* A fix for ClickHouse Keeper: correctly compare paths in write requests to Keeper internal system node paths. [#40918](https://github.com/ClickHouse/ClickHouse/pull/40918) ([Antonio Andelic](https://github.com/antonio2368)).
+* Fix deadlock in WriteBufferFromS3. [#40943](https://github.com/ClickHouse/ClickHouse/pull/40943) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Fix access rights for `DESCRIBE TABLE url()` and some other `DESCRIBE TABLE ()`. [#40975](https://github.com/ClickHouse/ClickHouse/pull/40975) ([Vitaly Baranov](https://github.com/vitlibar)).
+* Remove wrong parser logic for `WITH GROUPING SETS` which may lead to nullptr dereference. [#41049](https://github.com/ClickHouse/ClickHouse/pull/41049) ([Duc Canh Le](https://github.com/canhld94)).
+* A fix for ClickHouse Keeper: fix possible segfault during Keeper shutdown. [#41075](https://github.com/ClickHouse/ClickHouse/pull/41075) ([Antonio Andelic](https://github.com/antonio2368)).
+* Fix possible segfaults, use-heap-after-free and memory leak in aggregate function combinators. Closes [#40848](https://github.com/ClickHouse/ClickHouse/issues/40848). [#41083](https://github.com/ClickHouse/ClickHouse/pull/41083) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fix query_views_log with Window views. [#41132](https://github.com/ClickHouse/ClickHouse/pull/41132) ([Raúl Marín](https://github.com/Algunenano)).
+* Disables optimize_monotonous_functions_in_order_by by default, mitigates: [#40094](https://github.com/ClickHouse/ClickHouse/issues/40094). [#41136](https://github.com/ClickHouse/ClickHouse/pull/41136) ([Denny Crane](https://github.com/den-crane)).
+* Fixed "possible deadlock avoided" error on automatic conversion of database engine from Ordinary to Atomic. [#41146](https://github.com/ClickHouse/ClickHouse/pull/41146) ([Alexander Tokmakov](https://github.com/tavplubix)).
+* Fix SIGSEGV in SortedBlocksWriter in case of empty block (possible to get with `optimize_aggregation_in_order` and `join_algorithm=auto`). [#41154](https://github.com/ClickHouse/ClickHouse/pull/41154) ([Azat Khuzhin](https://github.com/azat)).
+* Fix incorrect query result when trivial count optimization is in effect with array join. This fixes [#39431](https://github.com/ClickHouse/ClickHouse/issues/39431). [#41158](https://github.com/ClickHouse/ClickHouse/pull/41158) ([Denny Crane](https://github.com/den-crane)).
+* Fix stack-use-after-return in GetPriorityForLoadBalancing::getPriorityFunc(). [#41159](https://github.com/ClickHouse/ClickHouse/pull/41159) ([Azat Khuzhin](https://github.com/azat)).
+* Fix positional arguments exception Positional argument out of bounds. Closes [#40634](https://github.com/ClickHouse/ClickHouse/issues/40634). [#41189](https://github.com/ClickHouse/ClickHouse/pull/41189) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Fix background clean up of broken detached parts. [#41190](https://github.com/ClickHouse/ClickHouse/pull/41190) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Fix exponential query rewrite in case of lots of cross joins with where, close [#21557](https://github.com/ClickHouse/ClickHouse/issues/21557). [#41223](https://github.com/ClickHouse/ClickHouse/pull/41223) ([Vladimir C](https://github.com/vdimir)).
+* Fix possible logical error in write-through cache, which happened because not all types of exception were handled as needed. Closes [#41208](https://github.com/ClickHouse/ClickHouse/issues/41208). [#41232](https://github.com/ClickHouse/ClickHouse/pull/41232) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Fix String log entry in system.filesystem_cache_log. [#41233](https://github.com/ClickHouse/ClickHouse/pull/41233) ([jmimbrero](https://github.com/josemimbrero-tinybird)).
+* Queries with `OFFSET` clause in subquery and `WHERE` clause in outer query might return incorrect result, it's fixed. Fixes [#40416](https://github.com/ClickHouse/ClickHouse/issues/40416). [#41280](https://github.com/ClickHouse/ClickHouse/pull/41280) ([Alexander Tokmakov](https://github.com/tavplubix)).
+* Fix possible wrong query result with `query_plan_optimize_primary_key` enabled. Fixes [#40599](https://github.com/ClickHouse/ClickHouse/issues/40599). [#41281](https://github.com/ClickHouse/ClickHouse/pull/41281) ([Nikolai Kochetov](https://github.com/KochetovNicolai)).
+* Do not allow invalid sequences influence other rows in lowerUTF8/upperUTF8. [#41286](https://github.com/ClickHouse/ClickHouse/pull/41286) ([Azat Khuzhin](https://github.com/azat)).
+* Fix `ALTER ADD COLUMN` queries with columns of type `Object`. [#41290](https://github.com/ClickHouse/ClickHouse/pull/41290) ([Anton Popov](https://github.com/CurtizJ)).
+* Fixed "No node" error when selecting from `system.distributed_ddl_queue` when there's no `distributed_ddl.path` in config. Fixes [#41096](https://github.com/ClickHouse/ClickHouse/issues/41096). [#41296](https://github.com/ClickHouse/ClickHouse/pull/41296) ([young scott](https://github.com/young-scott)).
+* Fix incorrect logical error `Expected relative path` in disk object storage. Related to [#41246](https://github.com/ClickHouse/ClickHouse/issues/41246). [#41297](https://github.com/ClickHouse/ClickHouse/pull/41297) ([Kseniia Sumarokova](https://github.com/kssenii)).
+* Add column type check before UUID insertion in MsgPack format. [#41309](https://github.com/ClickHouse/ClickHouse/pull/41309) ([Kruglov Pavel](https://github.com/Avogar)).
+* Fix possible crash after inserting asynchronously (with enabled setting `async_insert`) malformed data to columns of type `Object`. It could happen, if JSONs in all batches of async inserts were invalid and could not be parsed. [#41336](https://github.com/ClickHouse/ClickHouse/pull/41336) ([Anton Popov](https://github.com/CurtizJ)).
+* Fix possible deadlock with async_socket_for_remote/use_hedged_requests and parallel KILL. [#41343](https://github.com/ClickHouse/ClickHouse/pull/41343) ([Azat Khuzhin](https://github.com/azat)).
+* Disables optimize_rewrite_sum_if_to_count_if by default, mitigates: [#38605](https://github.com/ClickHouse/ClickHouse/issues/38605) [#38683](https://github.com/ClickHouse/ClickHouse/issues/38683). [#41388](https://github.com/ClickHouse/ClickHouse/pull/41388) ([Denny Crane](https://github.com/den-crane)).
+* Since 22.8 `ON CLUSTER` clause is ignored if database is `Replicated` and cluster name and database name are the same. Because of this `DROP PARTITION ON CLUSTER` worked unexpected way with `Replicated`. It's fixed, now `ON CLUSTER` clause is ignored only for queries that are replicated on database level. Fixes [#41299](https://github.com/ClickHouse/ClickHouse/issues/41299). [#41390](https://github.com/ClickHouse/ClickHouse/pull/41390) ([Alexander Tokmakov](https://github.com/tavplubix)).
+* Fix possible hung/deadlock on query cancellation (`KILL QUERY` or server shutdown). [#41467](https://github.com/ClickHouse/ClickHouse/pull/41467) ([Azat Khuzhin](https://github.com/azat)).
+* Fix possible server crash when using the JBOD feature. This fixes [#41365](https://github.com/ClickHouse/ClickHouse/issues/41365). [#41483](https://github.com/ClickHouse/ClickHouse/pull/41483) ([Amos Bird](https://github.com/amosbird)).
+* Fix conversion from nullable fixed string to string. [#41541](https://github.com/ClickHouse/ClickHouse/pull/41541) ([Duc Canh Le](https://github.com/canhld94)).
+* Prevent crash when passing wrong aggregation states to groupBitmap*. [#41563](https://github.com/ClickHouse/ClickHouse/pull/41563) ([Raúl Marín](https://github.com/Algunenano)).
+* Queries with `ORDER BY` and `1500 <= LIMIT <= max_block_size` could return incorrect result with missing rows from top. Fixes [#41182](https://github.com/ClickHouse/ClickHouse/issues/41182). [#41576](https://github.com/ClickHouse/ClickHouse/pull/41576) ([Nikolai Kochetov](https://github.com/KochetovNicolai)).
+* Fix read bytes/rows in X-ClickHouse-Summary with materialized views. [#41586](https://github.com/ClickHouse/ClickHouse/pull/41586) ([Raúl Marín](https://github.com/Algunenano)).
+* Fix possible `pipeline stuck` exception for queries with `OFFSET`. The error was found with `enable_optimize_predicate_expression = 0` and always false condition in `WHERE`. Fixes [#41383](https://github.com/ClickHouse/ClickHouse/issues/41383). [#41588](https://github.com/ClickHouse/ClickHouse/pull/41588) ([Nikolai Kochetov](https://github.com/KochetovNicolai)).
+
+
### ClickHouse release 22.8, 2022-08-18
#### Backward Incompatible Change
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbbec2a600d..c737046a5f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ include (cmake/target.cmake)
include (cmake/tools.cmake)
include (cmake/ccache.cmake)
include (cmake/clang_tidy.cmake)
-include (cmake/git_status.cmake)
+include (cmake/git.cmake)
# Ignore export() since we don't use it,
# but it gets broken with a global targets via link_libraries()
@@ -143,6 +143,8 @@ include (cmake/add_warning.cmake)
if (COMPILER_CLANG)
# generate ranges for fast "addr2line" search
if (NOT CMAKE_BUILD_TYPE_UC STREQUAL "RELEASE")
+ # NOTE: that clang has a bug because of it does not emit .debug_aranges
+ # with ThinLTO, so custom ld.lld wrapper is shipped in docker images.
set(COMPILER_FLAGS "${COMPILER_FLAGS} -gdwarf-aranges")
endif ()
diff --git a/README.md b/README.md
index b173add94e3..49aed14f719 100644
--- a/README.md
+++ b/README.md
@@ -15,4 +15,5 @@ ClickHouse® is an open-source column-oriented database management system that a
* [Contacts](https://clickhouse.com/company/contact) can help to get your questions answered if there are any.
## Upcoming events
-* [**v22.8 Release Webinar**](https://clickhouse.com/company/events/v22-8-release-webinar) Original creator, co-founder, and CTO of ClickHouse Alexey Milovidov will walk us through the highlights of the release, provide live demos, and share vision into what is coming in the roadmap.
+* [**v22.9 Release Webinar**](https://clickhouse.com/company/events/v22-9-release-webinar) Original creator, co-founder, and CTO of ClickHouse Alexey Milovidov will walk us through the highlights of the release, provide live demos, and share vision into what is coming in the roadmap.
+* [**ClickHouse for Analytics @ Barracuda Networks**](https://www.meetup.com/clickhouse-silicon-valley-meetup-group/events/288140358/) Join us for this in person meetup hosted by our friends at Barracuda in Bay Area.
diff --git a/base/base/CachedFn.h b/base/base/CachedFn.h
deleted file mode 100644
index 19b2a8ce2c0..00000000000
--- a/base/base/CachedFn.h
+++ /dev/null
@@ -1,75 +0,0 @@
-#pragma once
-
-#include