3 Star 0 Fork 11

src-openEuler / rubygem-activerecord

 / 详情

[OBS] rubygem-activerecord build problem in openEuler:23.09

已验收
缺陷 成员
创建于  
2023-08-04 12:48

评论 (3)

small_leek 创建了缺陷
small_leek 添加了
 
block
标签
展开全部操作日志

Hi small_leek, 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: sig-ruby, and any of the maintainers: @small_leek , @木得感情的openEuler机器人 , @jiangxinyu

失败现象

[   73s] Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.oO9GYF
[   73s] + umask 022
[   73s] + cd /home/abuild/rpmbuild/BUILD
[   73s] + cd activerecord-7.0.4
[   73s] + pushd ./usr/share/gems/gems/activerecord-7.0.4
[   73s] ~/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4 ~/rpmbuild/BUILD/activerecord-7.0.4
[   73s] + ln -s /home/abuild/rpmbuild/BUILD/tools ..
[   73s] + mv /home/abuild/rpmbuild/BUILD/test .
[   73s] + sed -i '/require .byebug./ s/^/#/g' test/cases/base_prevent_writes_test.rb
[   73s] + sed -i '/assert_slower_by_at_most/ s/1\.4/2.5/' test/cases/encryption/performance/envelope_encryption_performance_test.rb
[   73s] + mv -v test/cases/adapters/ /home/abuild/rpmbuild/BUILD/.
[   73s] renamed 'test/cases/adapters/' -> '/home/abuild/rpmbuild/BUILD/./adapters'
[   73s] + ruby -Itest:lib -e '
[   73s]   Dir.glob("./test/cases/**/*_test.rb")
[   73s]     .sort
[   73s]     .reject { |f| f =~ %r|/encryption/performance/| }
[   73s]     .each { |f| require f }'
[   81s] Using sqlite3
[   81s] Run options: --seed 31715
[   81s] 
[   81s] # Running:
[   81s] 
[  331s] ................................................................................................................................................................................................................................................................................................................................S........S.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S............S...........S...S..........S.......S..SS..S........................S.......................................................................................................................................................................................................................................................................................................................................................................................................................................................S..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E.............................................................................................................................................................................................................................................................................................S..........................................................................................................................................................................................................................................................................................................................S.............................................................................................................S......................................................................................................................................................................................................................................................................................................................S.............................................................................................................................................................................................E................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
[  331s] 
[  331s] Finished in 250.170599s, 30.5152 runs/s, 99.5800 assertions/s.
[  331s] 
[  331s]   1) Error:
[  331s] ActiveRecord::SqliteDBDropTest#test_generates_absolute_path_with_given_root:
[  331s] ArgumentError: mocked method :call expects 2 arguments, got ["/usr/share/gems/gems", "racc-1.6.2", "lib", "pathname"]
[  331s]     /usr/share/rubygems/rubygems/basic_specification.rb:334:in `block in have_file?'
[  331s]     /usr/share/rubygems/rubygems/basic_specification.rb:333:in `any?'
[  331s]     /usr/share/rubygems/rubygems/basic_specification.rb:333:in `have_file?'
[  331s]     /usr/share/rubygems/rubygems/basic_specification.rb:86:in `contains_requirable_file?'
[  331s]     /usr/share/rubygems/rubygems/specification.rb:1064:in `block in find_in_unresolved'
[  331s]     /usr/share/rubygems/rubygems/specification.rb:1064:in `each'
[  331s]     /usr/share/rubygems/rubygems/specification.rb:1064:in `find_all'
[  331s]     /usr/share/rubygems/rubygems/specification.rb:1064:in `find_in_unresolved'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:101:in `require'
[  331s]     /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/tasks/sqlite_database_tasks.rb:25:in `drop'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/tasks/database_tasks.rb:224:in `drop'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/test/cases/tasks/sqlite_rake_test.rb:113:in `block (3 levels) in test_generates_absolute_path_with_given_root'
[  331s]     /usr/share/gems/gems/activesupport-7.0.4/lib/active_support/testing/method_call_assertions.rb:24:in `assert_called_with'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/test/cases/tasks/sqlite_rake_test.rb:110:in `block (2 levels) in test_generates_absolute_path_with_given_root'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/test/cases/tasks/sqlite_rake_test.rb:109:in `block in test_generates_absolute_path_with_given_root'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/test/cases/tasks/sqlite_rake_test.rb:108:in `test_generates_absolute_path_with_given_root'
[  331s] 
[  331s]   2) Error:
[  331s] ActiveRecord::ConnectionAdapters::LegacyConnectionHandlersMultiDbTest#test_switching_connections_with_database_url:
[  331s] LoadError: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? linked to incompatible ]P▒вбк - /usr/lib64/gems/ruby/pg-1.2.3/pg_ext.so
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
[  331s]     /usr/share/gems/gems/pg-1.2.3/lib/pg.rb:5:in `<top (required)>'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql_adapter.rb:4:in `<top (required)>'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
[  331s]     /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/connection_handler.rb:268:in `resolve_pool_config'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/connection_handler.rb:129:in `establish_connection'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_handling.rb:95:in `block in connects_to'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_handling.rb:90:in `each'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_handling.rb:90:in `connects_to'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/test/cases/connection_adapters/legacy_connection_handlers_multi_db_test.rb:230:in `test_switching_connections_with_database_url'
[  331s] 
[  331s]   3) Error:
[  331s] ActiveRecord::ConnectionAdapters::ConnectionHandlersMultiDbTest#test_switching_connections_with_database_url:
[  331s] LoadError: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? linked to incompatible Й дбк - /usr/lib64/gems/ruby/pg-1.2.3/pg_ext.so
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
[  331s]     /usr/share/gems/gems/pg-1.2.3/lib/pg.rb:5:in `<top (required)>'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
[  331s]     /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql_adapter.rb:4:in `<top (required)>'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
[  331s]     <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
[  331s]     /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/connection_handler.rb:268:in `resolve_pool_config'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/connection_handler.rb:129:in `establish_connection'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_handling.rb:95:in `block in connects_to'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_handling.rb:90:in `each'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/lib/active_record/connection_handling.rb:90:in `connects_to'
[  331s]     /home/abuild/rpmbuild/BUILD/activerecord-7.0.4/usr/share/gems/gems/activerecord-7.0.4/test/cases/connection_adapters/connection_handlers_multi_db_test.rb:176:in `test_switching_connections_with_database_url'
[  331s] 
[  331s] 7634 runs, 24912 assertions, 0 failures, 3 errors, 19 skips
[  331s] 
[  331s] You have skipped tests. Run with --verbose for details.
[  331s] error: Bad exit status from /var/tmp/rpm-tmp.oO9GYF (%check)
[  331s] 
[  331s] RPM build warnings:

问题原因:ruby相关包升级
解决方案:参考上游提交修复

上游commit :https://github.com/rails/rails/pull/46831/commits/e708599c85226e9ad107ebdad09a9e31f1b5388a

lyn 通过src-openeuler/rubygem-activerecord Pull Request !23任务状态待办的 修改为已完成
small_leek 任务状态已完成 修改为已验收

登录 后才可以发表评论

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

搜索帮助