5 Star 0 Fork 18

src-openEuler / mysql5

 / 详情

【SP1 update 20220506】mysql5包在x86架构下,本地使用rpmbuild编译失败

已完成
缺陷
创建于  
2022-05-09 19:08

【环境信息】
OS版本:20.03-LTS-SP1 update 20220506
repo源:everything,update,update_0506,EPOL,EPOL_update,EPOL_0506,update_source_0506,EPOL_update_source_0506

【问题复现步骤】
1、安装rpmbuild:dnf install rpm-build -y
2、下载源码包:yumdownloader --source mysql5
3、安装mysql5源码包:rpm -ivh mysql5-5.7.37-1.oe1.src.rpm
4、rpmbuild进行编译:rpmbuild -ba /root/rpmbuild/SPECS/mysql5.spec

【预期结果】
编译成功

【实际结果】
编译失败,报错如下:
The servers were restarted 903 times
Spent 10429.982 of 2874 seconds executing testcases

Completed: Failed 6/3522 tests, 99.83% were successful.

Failing test(s): rpl.rpl_semi_sync_turn_on_off_optimize_for_static_plugin_config main.xa_prepared_binlog_off rpl.rpl_apply_binlog_with_gtid_when_gtid_mode_off

Unstable test(s)(failures/attempts): main.index_merge_delete(1/2) innodb.table_encrypt_kill(1/2) parts.partition_reverse_scan_icp(1/2)

The log files in var/log may give you some hint of what went wrong.

If you want to report this error, please read first the documentation
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html

1718 tests were skipped, 340 by the test itself.

mysql-test-run: *** ERROR: there were failing test cases
错误:/var/tmp/rpm-tmp.55Wsm1 (%check) 退出状态不好

RPM 构建错误:
%changelog 没有按照时间顺序降序排列
/var/tmp/rpm-tmp.55Wsm1 (%check) 退出状态不好

输入图片说明

附件
Emily_LiuLiu 2022-05-11 11:48

评论 (7)

Emily_LiuLiu 创建了缺陷

Hi emily_liuliu, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: DB, and any of the maintainers: @ZhengZhenyu , @赵波 , @陈棋德

openeuler-ci-bot 添加了
 
sig/DB
标签
Emily_LiuLiu 修改了描述
Emily_LiuLiu 修改了描述
Emily_LiuLiu 修改了描述
Emily_LiuLiu 修改了描述
Emily_LiuLiu 修改了描述
Emily_LiuLiu 修改了描述
Emily_LiuLiu 负责人small_leek 修改为赵波

See the 1st picture, I can not repo on my test env, besides a unstable test failure which won't break the rpm build progress.
输入图片说明

As my said above, it won't break rpmbuild locally. I used the test user to exec the whole progress.
输入图片说明

This is my test env sysinfo. It was 20.03 LTS SP1 and the test runner is "test" user.
输入图片说明

The unstable test failure won't break rpmbuild progress. The issue usually caused by the system environment and the situation of system resource allocation. When I rerun the single test which it was failing during my rpmbuild. It got pass.
So now, all the regresstion test got pass.

输入图片说明

我创建了一个干净的机器,又编译了两遍还是出现相同的错误,日志mysql5_build_log见附件,失败截图如下:
输入图片说明

Emily_LiuLiu 上传了附件mysql5_build_log

现在测试结果是:
rpmbuild编译时,打包阶段成功,测试用例阶段会失败6条,并发parallel=auto使用默认的参数auto,即跟测试机器的CPU保持一致:
输入图片说明
输入图片说明

打包阶段完成后,单独去跑测试用例,降低并发为3,之前失败的6条测试用例能跑过:
输入图片说明
输入图片说明

zjl_long 修改了描述
陈棋德 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936 7541682 bzhaoop 1614065650
1
https://gitee.com/src-openeuler/mysql5.git
git@gitee.com:src-openeuler/mysql5.git
src-openeuler
mysql5
mysql5

搜索帮助

14c37bed 8189591 565d56ea 8189591