This is an automated email from the ASF dual-hosted git repository.

djwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new f1d1b2b128 Remove the unused hd-cli/* from Cloudberry source
f1d1b2b128 is described below

commit f1d1b2b1285f4b709f5734b1b25f0cc667eb8ab3
Author: Dianjin Wang <wangdian...@gmail.com>
AuthorDate: Mon Apr 28 11:07:40 2025 +0800

    Remove the unused hd-cli/* from Cloudberry source
    
    `contrib/pax_storage/hd-cli/*` workflow files include URLs that cannot
    be accessible in public and these files are not used in Cloudberry CICD
    workflows, so remove them.
---
 contrib/pax_storage/hd-ci/clang_tidy_pax.bash | 51 ---------------------------
 contrib/pax_storage/hd-ci/compile_pax.bash    | 38 --------------------
 2 files changed, 89 deletions(-)

diff --git a/contrib/pax_storage/hd-ci/clang_tidy_pax.bash 
b/contrib/pax_storage/hd-ci/clang_tidy_pax.bash
deleted file mode 100644
index 108c4bdfaa..0000000000
--- a/contrib/pax_storage/hd-ci/clang_tidy_pax.bash
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env bash
-set -exo pipefail
-CBDB_PAX_SRC_PATH="/code/gpdb_pax_src"
-CBDB_PAX_DEV_BRANCH="origin/dev"
-CBDB_PAX_EXT=("*\.cc" "*\.h")
-CBDB_PAXC_GREP="paxc_"
-CLANG_TIDY_OUT_FILE_NAME="clang-tidy.result"
-
-modified_exts=()
-
-function do_git_diff() {
-    current_commit=$(git rev-parse HEAD)
-    dev_branch_commit=$(git rev-parse $CBDB_PAX_DEV_BRANCH)
-    if [ "$current_commit" = "$dev_branch_commit" ]; then
-        echo "Current commit is the '$CBDB_PAX_DEV_BRANCH' branch."
-        exit 0
-    fi
-
-    modified_files=$(git diff --name-only $CBDB_PAX_DEV_BRANCH -- ':!icw_test')
-    for extension in "${CBDB_PAX_EXT[@]}"; do
-        if echo "$modified_files" | grep -E -e "$extension" | grep -q -v 
"$CBDB_PAXC_GREP"; then
-            files=$(echo "$modified_files" | grep -E -e "$extension" | grep -v 
"$CBDB_PAXC_GREP")
-            if [ -z "$files" ]; then
-                continue
-            fi
-            for file in $files; do
-                if [ -e "$file" ]; then
-                    modified_exts+=("$file")
-                fi
-            done
-        fi
-    done
-}
-
-function run_clang_tidy() {
-    if [ -z "$modified_exts" ]; then
-        return 0
-    fi
-
-    echo "clang-tidy result will generate in $(pwd)/$CLANG_TIDY_OUT_FILE_NAME"
-    clang-tidy -p build/ ${modified_exts[@]} > $CLANG_TIDY_OUT_FILE_NAME 2>&1
-}
-
-function _main() {
-    pushd $CBDB_PAX_SRC_PATH
-    do_git_diff
-    run_clang_tidy
-    popd
-}
-
-_main "$@"
diff --git a/contrib/pax_storage/hd-ci/compile_pax.bash 
b/contrib/pax_storage/hd-ci/compile_pax.bash
deleted file mode 100644
index 7071cd609c..0000000000
--- a/contrib/pax_storage/hd-ci/compile_pax.bash
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-#!/usr/bin/env bash
-set -exo pipefail
-CBDB_INSTALL_PATH="/usr/local/cloudberry-db-devel"
-CBDB_PAX_SRC_PATH="/code/gpdb_pax_src"
-GPDB_PAX_UNIT_TEST_BIN="$CBDB_PAX_SRC_PATH/build/src/cpp/test_main"
-
-compile_pax() {
-       source $CBDB_INSTALL_PATH/greenplum_path.sh
-       mkdir -p $CBDB_PAX_SRC_PATH/build
-       pushd $CBDB_PAX_SRC_PATH/build
-       cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
-       make
-       popd
-}
-
-function compile_cmake() {
-       wget -O /root/cmake-3.25.1-linux-x86_64.tar.gz 
https://artifactory.hashdata.xyz/artifactory/utility/cmake-3.25.1-linux-x86_64.tar.gz
-       mkdir -p /root/cmake-3.25.1-linux-x86_64
-       tar -xvf /root/cmake-3.25.1-linux-x86_64.tar.gz -C 
/root/cmake-3.25.1-linux-x86_64
-       rm -rf /usr/bin/cmake
-       rm -rf /opt/rh/llvm-toolset-13.0/root/usr/bin/cmake
-       ln -s 
/root/cmake-3.25.1-linux-x86_64/cmake-3.25.1-linux-x86_64/bin/cmake 
/usr/bin/cmake
-       ln -s 
/root/cmake-3.25.1-linux-x86_64/cmake-3.25.1-linux-x86_64/bin/cmake 
/opt/rh/llvm-toolset-13.0/root/usr/bin/cmake
-}
-
-function run_unit() {
-       $GPDB_PAX_UNIT_TEST_BIN
-}
-
-main() {
-       compile_cmake
-       compile_pax
-       run_unit
-}
-
-main


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org
For additional commands, e-mail: commits-h...@cloudberry.apache.org

Reply via email to