From 9c093b4558caf984f6fc925c0bb4cbab27f975f4 Mon Sep 17 00:00:00 2001 From: Kris Hung Date: Fri, 30 Sep 2022 13:06:06 -0700 Subject: [PATCH] Update the comment for the limitations of build.py script (#4933) --- build.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/build.py b/build.py index 1859e7c329..de8479e652 100755 --- a/build.py +++ b/build.py @@ -307,6 +307,9 @@ def gitclone(self, repo, tag, subdir, org): else: self.cmd(f'if [[ ! -e {clone_dir} ]]; then') + # FIXME [DLIS-4045 - Currently the tag starting with "pull/" is not + # working with "--repo-tag" as the option is not forwared to the + # individual repo build correctly.] # If 'tag' starts with "pull/" then it must be of form # "pull//head". We just clone at "main" and then fetch the # reference onto a new branch we name "tritonbuildref". @@ -1559,12 +1562,15 @@ def cibase_build(cmake_script, repo_dir, cmake_dir, build_dir, install_dir, cmake_script.mkdir(os.path.join(ci_dir, 'src', 'test')) cmake_script.cpdir(os.path.join(repo_dir, 'src', 'test', 'models'), os.path.join(ci_dir, 'src', 'test')) - cmake_script.cpdir(os.path.join(repo_install_dir, 'bin'), ci_dir) - cmake_script.mkdir(os.path.join(ci_dir, 'lib')) - cmake_script.cp( - os.path.join(repo_install_dir, 'lib', - 'libtritonrepoagent_relocation.so'), - os.path.join(ci_dir, 'lib')) + # Skip copying the artifacts in the bin and lib as those directories will + # be missing when the core build is not enabled. + if not FLAGS.no_core_build: + cmake_script.cpdir(os.path.join(repo_install_dir, 'bin'), ci_dir) + cmake_script.mkdir(os.path.join(ci_dir, 'lib')) + cmake_script.cp( + os.path.join(repo_install_dir, 'lib', + 'libtritonrepoagent_relocation.so'), + os.path.join(ci_dir, 'lib')) # Some of the backends are needed for CI testing cmake_script.mkdir(os.path.join(ci_dir, 'backends')) @@ -1913,7 +1919,7 @@ def enable_all(): '--no-core-build', action="store_true", required=False, - help='Do not build Triton core sharead library or executable.') + help='Do not build Triton core shared library or executable.') parser.add_argument( '--backend', action='append', @@ -1926,7 +1932,7 @@ def enable_all(): action='append', required=False, help= - 'The version of a component to use in the build as :. can be "common", "core", "backend" or "thirdparty". If starts with "pull/" then it refers to a pull-request reference, otherwise indicates the git tag/branch. If the version is non-development then the default is the release branch matching the container version (e.g. version YY.MM -> branch rYY.MM); otherwise the default is "main" (e.g. version YY.MMdev -> branch main).' + 'The version of a component to use in the build as :. can be "common", "core", "backend" or "thirdparty". indicates the git tag/branch to use for the build. Currently does not support pull-request reference. If the version is non-development then the default is the release branch matching the container version (e.g. version YY.MM -> branch rYY.MM); otherwise the default is "main" (e.g. version YY.MMdev -> branch main).' ) parser.add_argument( '--repoagent',