diff --git a/.gitignore b/.gitignore index 31aec5cdf13fc2e970998ec30b8989c9cf4e790f..6093f6bb04ffb29a014cb2abc76c6d480f44dceb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ component/LkpTests/compatibility_help/compatibility_testing component/LkpTests/compatibility_help/compatibility_testing.tar.gz component/LkpTests/lkp_help/lkp-tests.tar.gz component/DevkitDistribute/devkit_distribute/config/log.ini -component/DevkitDistribute/devkit_distribute/config/devkit_distribute.yaml \ No newline at end of file +component/DevkitDistribute/devkit_distribute/config/devkit_distribute.yaml +devkitdependencies \ No newline at end of file diff --git a/component/DevkitDistribute/check_install_result.sh b/component/DevkitDistribute/check_install_result.sh index 2f652085130000c9f49e08a16744342765098fbe..d04a89b29ab2826a86cf33a8d310dd0f500bb423 100644 --- a/component/DevkitDistribute/check_install_result.sh +++ b/component/DevkitDistribute/check_install_result.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ -e "${HOME}"/.local/lkp-tests/programs/devkit_distribute ] ; then +if [ -e "${HOME}"/.local/devkit_distribute ] ; then echo "true" else echo "false" diff --git a/component/DevkitDistribute/devkit_distribute/bin/entrance.py b/component/DevkitDistribute/devkit_distribute/bin/entrance.py index 26aedf18bfe85e68d4606bba752587bcd381409d..1f7c79951128cddafc13e2ff76053be9d68947c4 100644 --- a/component/DevkitDistribute/devkit_distribute/bin/entrance.py +++ b/component/DevkitDistribute/devkit_distribute/bin/entrance.py @@ -318,7 +318,7 @@ def main(): help="the port of the kunpeng DevKit server") parser.add_argument("-U", "--devkit-user", dest="devkit_user", default="devadmin", help="the user of the kunpeng DevKit server") - parser.add_argument("-W", "--devkit-password", dest="devkit_password", default="admin100", + parser.add_argument("-W", "--devkit-password", dest="devkit_password", default="devkit123", help="the password of the user of the kunpeng DevKit server") parser.add_argument("-a", "--app", required=True, dest="applications", help="the process names that can be multiple, each separated by a comma") diff --git a/component/DevkitDistribute/install.sh b/component/DevkitDistribute/install.sh index 3d2a3b8b74f2d68249753001a3e0a07da43d2466..1f4a0941f8d9329da99a0435349313ade2b7e850 100644 --- a/component/DevkitDistribute/install.sh +++ b/component/DevkitDistribute/install.sh @@ -4,11 +4,8 @@ set -e function main (){ - devkit_distribute_tar=$1 - echo "Decompress devkit_distribute.tar.gz to ${HOME}/.local/lkp-tests/programs" - tar --no-same-owner -zxf "${devkit_distribute_tar}" -C "${HOME}"/.local/lkp-tests/programs - chmod 755 "${HOME}"/.local/lkp-tests/programs/devkit_distribute/bin/start.sh - ln -s "${HOME}"/.local/lkp-tests/programs/devkit_distribute/bin/start.sh "${HOME}"/.local/lkp-tests/tests/devkit_distribute + echo "Decompress devkit_distribute.tar.gz to ${HOME}/.local/" + tar --no-same-owner -zxf /tmp/devkitdependencies/devkit_distribute.tar.gz -C ${HOME}/.local echo "Decompress devkit_distribute.tar.gz to ${HOME}/.local finished." } diff --git a/tools/install_dependency/src/constant.py b/tools/install_dependency/src/constant.py index c58f2795cfb1cc496e4defbdd947f963b3b19c1a..96023520141e181a8175b5d43ad9f1573c973abd 100644 --- a/tools/install_dependency/src/constant.py +++ b/tools/install_dependency/src/constant.py @@ -16,7 +16,7 @@ ROLE_COMPONENT = { SCANNER: ["BiShengJDK17", "DevKitCLI"], C_BUIDLER: ["GCCforOpenEuler", "BiShengCompiler", "BiShengJDK17", "A-FOT", "NonInvasiveSwitching"], JAVA_BUILDER: ["BiShengJDK17", "BiShengJDK8"], - EXECUTOR: ["BiShengJDK17", "LkpTests"], + EXECUTOR: ["BiShengJDK17", "DevkitDistribute", "LkpTests"], DEVKIT: ["DevKitWeb"] } diff --git a/tools/install_dependency/src/download/download_config.py b/tools/install_dependency/src/download/download_config.py index ac84b37199f1944d097a64d4d189dccb69672da5..b9d16234893ae140aef73a4e96b8e57076599bfc 100644 --- a/tools/install_dependency/src/download/download_config.py +++ b/tools/install_dependency/src/download/download_config.py @@ -25,7 +25,11 @@ LkpTests = { "file": "https://gitee.com/openeuler/devkit-pipeline/releases/download/v0.2/lkp-tests.tar.gz", "GemDependency": "https://gitee.com/openeuler/devkit-pipeline/releases/download/v0.2/gem_dependencies.zip", "CompatibilityTesting": "https://gitee.com/openeuler/devkit-pipeline/releases/download/v0.2/compatibility_testing.tar.gz", - "DevkitDistribute": "https://gitee.com/openeuler/devkit-pipeline/releases/download/v0.2/devkit_distribute.tar.gz", +} + +DevkitDistribute = { + "component_name": "DevkitDistribute", + "file": "https://gitee.com/openeuler/devkit-pipeline/releases/download/v0.2/devkit_distribute.tar.gz", } A_FOT = { diff --git a/tools/install_dependency/src/download/download_utils.py b/tools/install_dependency/src/download/download_utils.py index 4be85f22db4a856a0acc5aefbe4919ba26efd73f..4080a255ab06508708d7c1fd1cc98500a8e757ec 100644 --- a/tools/install_dependency/src/download/download_utils.py +++ b/tools/install_dependency/src/download/download_utils.py @@ -79,9 +79,13 @@ component_collection_map = { SAVE_PATH: f"{os.path.join(DEFAULT_PATH, download_config.LkpTests.get('CompatibilityTesting').split('/')[-1])}", FILE_SIZE: "76645477", }, - "DevkitDistribute": { - URL: f"{download_config.LkpTests.get('DevkitDistribute')}", - SAVE_PATH: f"{os.path.join(DEFAULT_PATH, download_config.LkpTests.get('DevkitDistribute').split('/')[-1])}", + + }, + + "DevkitDistribute": { + "download file": { + URL: f"{download_config.DevkitDistribute.get(FILE)}", + SAVE_PATH: f"{os.path.join(DEFAULT_PATH, download_config.DevkitDistribute.get(FILE).split('/')[-1])}", FILE_SIZE: "13349694", } }, diff --git a/tools/install_dependency/src/machine/machine.py b/tools/install_dependency/src/machine/machine.py index ed67933495394a13c63dddbbe99fbd46e6f5f97f..6bf8b7858c144624c7edc5cf27e790ad104f800c 100644 --- a/tools/install_dependency/src/machine/machine.py +++ b/tools/install_dependency/src/machine/machine.py @@ -136,6 +136,7 @@ class Machine: "BiShengCompiler": self.default_install_component_handle, "BiShengJDK17": self.default_install_component_handle, "BiShengJDK8": self.default_install_component_handle, + "DevkitDistribute": self.default_install_component_handle, "LkpTests": self.lkptest_install_component_handle, "NonInvasiveSwitching": self.nis_install_component_handle, "DevKitWeb": self.devkitweb_install_component_handle, @@ -248,7 +249,6 @@ class Machine: # 清理tmp临时文件 self.clear_tmp_file_at_remote_machine(ssh_client, remote_file_list) self.__install_component_on_lkptest("CompatibilityTesting", sftp_client, ssh_client) - self.__install_component_on_lkptest("DevkitDistribute", sftp_client, ssh_client) def __install_component_on_lkptest(self, sub_component_name, sftp_client, ssh_client): # 上传 tar.gz 文件