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 ba0633ea94e Remove unused concourse/* from source
ba0633ea94e is described below

commit ba0633ea94ee1928fe58621ab5e20cc92e3b6b0f
Author: Dianjin Wang <[email protected]>
AuthorDate: Fri Mar 20 11:33:36 2026 +0800

    Remove unused concourse/* from source
    
    This is a further update based on the PR:
     - https://github.com/apache/cloudberry/pull/1625
---
 pom.xml                                            |   2 -
 src/backend/gporca/concourse/build_and_test.py     | 110 ---------------------
 .../xerces-c/xerces-c-3.1.2.tar.gz.sha256          |   1 -
 3 files changed, 113 deletions(-)

diff --git a/pom.xml b/pom.xml
index c3a1cd34381..cfa44a0d6aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -571,8 +571,6 @@ code or new licensing patterns.
             <include>src/backend/gporca/**/Makefile</include>
 
             <exclude>src/backend/gporca/cmake/FindXerces.cmake</exclude>
-            <exclude>src/backend/gporca/concourse/build_and_test.py</exclude>
-            
<exclude>src/backend/gporca/concourse/xerces-c/xerces-c-3.1.2.tar.gz.sha256</exclude>
             <exclude>src/backend/gporca/server/fixdxl.sh</exclude>
             
<exclude>src/backend/gporca/server/include/unittest/gpopt/operators/CScalarIsDistinctFromTest.h</exclude>
             <exclude>src/backend/gporca/server/dxl.xsd</exclude>
diff --git a/src/backend/gporca/concourse/build_and_test.py 
b/src/backend/gporca/concourse/build_and_test.py
deleted file mode 100755
index e885843dc4c..00000000000
--- a/src/backend/gporca/concourse/build_and_test.py
+++ /dev/null
@@ -1,110 +0,0 @@
-#!/usr/bin/python3
-
-import optparse
-import os
-import shutil
-import subprocess
-import sys
-
-def num_cpus():
-    # Use multiprocessing module, available in Python 2.6+
-    try:
-        import multiprocessing
-        return multiprocessing.cpu_count()
-    except (ImportError, NotImplementedError):
-        pass
-
-    # Get POSIX system config value for number of processors.
-    posix_num_cpus = os.sysconf("SC_NPROCESSORS_ONLN")
-    if posix_num_cpus != -1:
-        return posix_num_cpus
-
-    # Guess
-    return 2
-
-def install_dependencies(dependencies, output_dir):
-    for dependency in dependencies:
-        status = install_dependency(dependency, output_dir)
-        if status:
-            return status
-
-def install_dependency(dependency_name, output_dir):
-    return subprocess.call(
-        ["tar -xzf " + dependency_name + "/*.tar.gz -C " + output_dir], 
shell=True)
-
-def cmake_configure(src_dir, build_type, output_dir, cxx_compiler = None, 
cxxflags = None):
-    if os.path.exists("build"):
-        shutil.rmtree("build")
-    os.mkdir("build")
-    cmake_args = ["cmake",
-                  "-D", "CMAKE_INSTALL_PREFIX=" + output_dir,
-                  "-D", "CMAKE_BUILD_TYPE=" + build_type]
-    if cxx_compiler:
-        cmake_args.append("-D")
-        cmake_args.append("CMAKE_CXX_COMPILER=" + cxx_compiler)
-    if cxxflags:
-        cmake_args.append("-D")
-        cmake_args.append("CMAKE_CXX_FLAGS=" + cxxflags)
-
-    cmake_args.append("../" + src_dir)
-    cmake_command = " ".join(cmake_args)
-    if os.path.exists('/opt/gcc_env.sh'):
-        cmake_command = "source /opt/gcc_env.sh && " + cmake_command
-    print(cmake_command)
-    return subprocess.call(cmake_command, cwd="build", shell=True)
-
-def make():
-    return subprocess.call(["make",
-        "-j" + str(num_cpus()),
-        "-l" + str(2 * num_cpus()),
-        ],
-        cwd="build",
-        env=ccache_env()
-        )
-
-
-def ccache_env():
-    env = os.environ.copy()
-    env['CCACHE_DIR'] = os.getcwd() + '/.ccache'
-    return env
-
-
-def run_tests():
-    return subprocess.call(["ctest",
-                            "--output-on-failure",
-                            "-j" + str(num_cpus()),
-                            "--test-load", str(4 * num_cpus()),
-                            ],
-                            cwd="build")
-
-def main():
-    parser = optparse.OptionParser()
-    parser.add_option("--build_type", dest="build_type", default="RELEASE")
-    parser.add_option("--compiler", dest="compiler")
-    parser.add_option("--cxxflags", dest="cxxflags")
-    parser.add_option("--output_dir", dest="output_dir", default="install")
-    parser.add_option("--skiptests", dest="skiptests", action="store_true", 
default=False)
-
-    (options, args) = parser.parse_args()
-    # install deps for building
-    status = install_dependencies(args, "/usr/local")
-    if status:
-        return status
-    status = cmake_configure("",
-                             options.build_type,
-                             options.output_dir,
-                             options.compiler,
-                             options.cxxflags)
-    if status:
-        return status
-    status = make()
-    if status:
-        return status
-    if not options.skiptests:
-        status = run_tests()
-        if status:
-            return status
-    return 0
-
-if __name__ == "__main__":
-    sys.exit(main())
diff --git a/src/backend/gporca/concourse/xerces-c/xerces-c-3.1.2.tar.gz.sha256 
b/src/backend/gporca/concourse/xerces-c/xerces-c-3.1.2.tar.gz.sha256
deleted file mode 100644
index 7fbcc8000ec..00000000000
--- a/src/backend/gporca/concourse/xerces-c/xerces-c-3.1.2.tar.gz.sha256
+++ /dev/null
@@ -1 +0,0 @@
-743bd0a029bf8de56a587c270d97031e0099fe2b7142cef03e0da16e282655a0


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to