ACCOUNT组件执行集成测试报错

bmcgo 版本为: 0.5.317

编译容器镜像版本:2503

account组件的版本:1.70.22
执行bingo build命令编译完account组件后,使用bingo test --it --wb报错。
报错日志如下:
Installing (downloading, building) binaries…
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: WARN: Build folder is dirty, removing it: /root/.conan/data/Cyrus_SASL/2.1.28-h1.computing.ibmc.r1/hw.ibmc.release/rc/build/6a517c436d4f5a491440e620151be0c0415fc82a
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: WARN: Trying to remove corrupted source folder
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: WARN: This can take a while for big packages
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: Configuring sources in /root/.conan/data/Cyrus_SASL/2.1.28-h1.computing.ibmc.r1/hw.ibmc.release/rc/source
ERROR: Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: Error in source() method, line 28
git.clone(**self.conan_data[“sources”][self.version])
CalledProcessErrorWithStderr: Command ‘git -c http.sslVerify=false fetch --depth 1 origin “2.1.28-h1.computing.ibmc.r1”’ returned non-zero exit status 128.
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
fatal: unable to access ‘https://open.codehub.huawei.com/OpenSourceCenter/cyrusimap/cyrus-sasl.git/’: Could not resolve host: open.codehub.huawei.com

ERROR: 执行命令 conan create . account/100.70.22@hw.ibmc.dev/dev -pr:h profile.dt.ini -s build_type=Dt -r ibmc_dev --build=missing -tf None 错误, 日志: /root/.bmcgo_log/bmcgo.log
ERROR: Traceback (most recent call last):
File “/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py”, line 355, in run
return method(command_args)
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py”, line 218, in test
test.run()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/test.py”, line 835, in run
self.build_and_deploy()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/test.py”, line 263, in build_and_deploy
self.build.run()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/build.py”, line 206, in run
tool.run_command(cmd, show_log=True, timeout=timeout)
File “/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py”, line 665, in run_command
raise e
File “/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py”, line 647, in run_command
ret = subprocess.run(command, check=check, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘conan’, ‘create’, ‘.’, ‘account/100.70.22@hw.ibmc.dev/dev’, ‘-pr:h’, ‘profile.dt.ini’, ‘-s’, ‘build_type=Dt’, ‘-r’, ‘ibmc_dev’, ‘–build=missing’, ‘-tf’, ‘None’]’ returned non-zero exit status 1.

ERROR: Command ‘[‘conan’, ‘create’, ‘.’, ‘account/100.70.22@hw.ibmc.dev/dev’, ‘-pr:h’, ‘profile.dt.ini’, ‘-s’, ‘build_type=Dt’, ‘-r’, ‘ibmc_dev’, ‘–build=missing’, ‘-tf’, ‘None’]’ returned non-zero exit status 1.
ERROR: 请查看日志信息
浏览器访问https://open.codehub.huawei.com/OpenSourceCenter/cyrusimap/cyrus-sasl.git/显示无法连接

检查一下命令有没有输错:bingo test --it --wb, 这里 it 和 wb 应该是一个 -,现在看到是两个

换成单个-之后的报错
root@4b2dd305c211:/home/limingfeng/openUBMC/account# bingo test -it -wb
没有启动组件版本分析
===>>>包名: account/1.70.22@hw.ibmc.dev/dev
仓库地址为: AtomGit | GitCode - 全球开发者的开源社区,开源代码托管平台
================================ 构建菜单 ================================
单元测试(ut): False
集成测试(it): True
覆盖率: False
地址消毒: False

保存包信息到 /home/limingfeng/openUBMC/account/temp/package_info
================ 开发者测试开始 ================
================ 测试 account 开始 ================
集成测试配置: /home/limingfeng/openUBMC/account/test/integration/test_account.conf
WARN: ===>>>> exception: cannot access local variable ‘process’ where it is not associated with a value
WARN: ===>>>> 测试: account/1.70.22@hw.ibmc.dev/dev 失败

这里看下来应该是首次执行导致 temp 下的文件不全。请先去掉 -wb 选项执行 -it 后再使用 -wb 的选项。

单独执行bingo test -it 后报错日志如下,Could not resolve host: open.codehub.huawei.com
Installing (downloading, building) binaries…
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: WARN: Build folder is dirty, removing it: /root/.conan/data/Cyrus_SASL/2.1.28-h1.computing.ibmc.r1/hw.ibmc.release/rc/build/6a517c436d4f5a491440e620151be0c0415fc82a
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: WARN: Trying to remove corrupted source folder
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: WARN: This can take a while for big packages
Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: Configuring sources in /root/.conan/data/Cyrus_SASL/2.1.28-h1.computing.ibmc.r1/hw.ibmc.release/rc/source
ERROR: Cyrus_SASL/2.1.28-h1.computing.ibmc.r1@hw.ibmc.release/rc: Error in source() method, line 28
git.clone(**self.conan_data[“sources”][self.version])
CalledProcessErrorWithStderr: Command ‘git -c http.sslVerify=false fetch --depth 1 origin “2.1.28-h1.computing.ibmc.r1”’ returned non-zero exit status 128.
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
fatal: unable to access ‘https://open.codehub.huawei.com/OpenSourceCenter/cyrusimap/cyrus-sasl.git/’: Could not resolve host: open.codehub.huawei.com

ERROR: 执行命令 conan create . account/1.70.22@hw.ibmc.dev/dev -pr:h profile.dt.ini -s build_type=Dt -r ibmc_dev --build=missing -tf None 错误, 日志: /root/.bmcgo_log/bmcgo.log
ERROR: Traceback (most recent call last):
File “/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py”, line 355, in run
return method(command_args)
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/dist-packages/bmcgo/cli/cli.py”, line 218, in test
test.run()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/test.py”, line 835, in run
self.build_and_deploy()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/test.py”, line 263, in build_and_deploy
self.build.run()
File “/usr/local/lib/python3.12/dist-packages/bmcgo/component/build.py”, line 206, in run
tool.run_command(cmd, show_log=True, timeout=timeout)
File “/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py”, line 665, in run_command
raise e
File “/usr/local/lib/python3.12/dist-packages/bmcgo/utils/tools.py”, line 647, in run_command
ret = subprocess.run(command, check=check, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘conan’, ‘create’, ‘.’, ‘account/1.70.22@hw.ibmc.dev/dev’, ‘-pr:h’, ‘profile.dt.ini’, ‘-s’, ‘build_type=Dt’, ‘-r’, ‘ibmc_dev’, ‘–build=missing’, ‘-tf’, ‘None’]’ returned non-zero exit status 1.

ERROR: Command ‘[‘conan’, ‘create’, ‘.’, ‘account/1.70.22@hw.ibmc.dev/dev’, ‘-pr:h’, ‘profile.dt.ini’, ‘-s’, ‘build_type=Dt’, ‘-r’, ‘ibmc_dev’, ‘–build=missing’, ‘-tf’, ‘None’]’ returned non-zero exit status 1.
ERROR: 请查看日志信息

  1. 执行conan config get general 查看revisions_enabled 是否为1。 若不是,执行 conan config set general.revisions_enabled=1
  2. 参考 account组件单元测试执行报错 - #11,来自 Larry_Li

遇到点新问题,跑it时,一直卡在KILL self没有退出,有打印报dbus_launch:command not found,请问这咋处理?

ipmitool dbus-x11 libdbus-1-dev dbus 这几个工具是否有安装,没有的话,使用apt install安装下这些工具。

1 个赞

是的,缺dbus-x11

该问题是否解决,如未解决请提供最新信息

此帖长时间无跟踪答复,标记为已解决,如有疑问可重新发帖或跟帖。