[DRE-maint] Bug#996344: ruby-openstack: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: Error: test_rebuild_server(ServersTest): NoMethodError: undefined method `encode' for URI:Module
Antonio Terceiro
terceiro at debian.org
Wed Oct 13 12:45:18 BST 2021
Source: ruby-openstack
Version: 2.0.2-1.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0
Hi,
We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-openstack was found to fail to build in that situation.
To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.
Relevant part (hopefully):
> Error: test_rebuild_server(ServersTest): NoMethodError: undefined method `encode' for URI:Module
> /<<PKGBUILDDIR>>/lib/openstack/compute/server.rb:52:in `populate'
> /<<PKGBUILDDIR>>/lib/openstack/compute/server.rb:39:in `initialize'
> /<<PKGBUILDDIR>>/lib/openstack/compute/connection.rb:30:in `new'
> /<<PKGBUILDDIR>>/lib/openstack/compute/connection.rb:30:in `get_server'
> /<<PKGBUILDDIR>>/test/unit/servers_test.rb:223:in `get_test_server'
> /<<PKGBUILDDIR>>/test/unit/servers_test.rb:181:in `test_rebuild_server'
> 178: }
> 179: }}
> 180:
> => 181: server=get_test_server
> 182:
> 183: response = mock()
> 184: response.stubs(:code => "200", :body => json_response)
> ===============================================================================
> : (0.047847)
> VolumeConnectionTest:
> test_get_quotas: .: (0.018005)
> test_list_volume_types: .: (0.001369)
> test_update_quotas: .: (0.001209)
>
> Finished in 15.399109235 seconds.
> -------------------------------------------------------------------------------
> 45 tests, 183 assertions, 0 failures, 2 errors, 0 pendings, 0 omissions, 0 notifications
> 95.5556% passed
> -------------------------------------------------------------------------------
> 2.92 tests/s, 11.88 assertions/s
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/unit/authentication_test.rb" "test/unit/connection_test.rb" "test/unit/exception_test.rb" "test/unit/flavors_test.rb" "test/unit/identity_connection_test.rb" "test/unit/images_test.rb" "test/unit/metadata_test.rb" "test/unit/servers_test.rb" "test/unit/volume_connection_test.rb" "test/test_helper.rb" -v]
>
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed:
The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-openstack/ruby-openstack_2.0.2-1.1+rebuild1633390222_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211013/d6641e91/attachment-0001.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list