[DRE-maint] Bug#1019611: ruby-asset-sync: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: Failure/Error: @yml ||= ::YAML.load(::ERB.new(IO.read(yml_path)).result)[::Rails.env] || {}

Antonio Terceiro terceiro at debian.org
Tue Sep 13 00:49:05 BST 2022


Source: ruby-asset-sync
Version: 2.11.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.1

Hi,

We are about to start the ruby3.1 transition in unstable. While trying to
rebuild ruby-asset-sync with ruby3.1 enabled, the build failed.

Relevant part of the build log (hopefully):
>       Failure/Error: @yml ||= ::YAML.load(::ERB.new(IO.read(yml_path)).result)[::Rails.env] || {}
> 
>       Psych::BadAlias:
>         Unknown alias: defaults
>       # ./lib/asset_sync/config.rb:165:in `yml'
>       # ./lib/asset_sync/config.rb:195:in `load_yml!'
>       # ./lib/asset_sync/config.rb:95:in `initialize'
>       # ./spec/unit/rackspace_spec.rb:63:in `new'
>       # ./spec/unit/rackspace_spec.rb:63:in `block (3 levels) in <top (required)>'
> 
> Finished in 1 second (files took 0.56587 seconds to load)
> 133 examples, 27 failures, 3 pending
> 
> Failed examples:
> 
> rspec ./spec/unit/asset_sync_spec.rb:105 # AssetSync from yml should default AssetSync to enabled
> rspec ./spec/unit/asset_sync_spec.rb:110 # AssetSync from yml should configure run_on_precompile
> rspec ./spec/unit/asset_sync_spec.rb:114 # AssetSync from yml should configure aws_access_key_id
> rspec ./spec/unit/asset_sync_spec.rb:118 # AssetSync from yml should configure aws_secret_access_key
> rspec ./spec/unit/asset_sync_spec.rb:122 # AssetSync from yml should configure fog_directory
> rspec ./spec/unit/asset_sync_spec.rb:126 # AssetSync from yml should configure fog_region
> rspec ./spec/unit/asset_sync_spec.rb:130 # AssetSync from yml should configure path_style
> rspec ./spec/unit/asset_sync_spec.rb:134 # AssetSync from yml should configure existing_remote_files
> rspec ./spec/unit/asset_sync_spec.rb:138 # AssetSync from yml should default gzip_compression to false
> rspec ./spec/unit/asset_sync_spec.rb:142 # AssetSync from yml should default manifest to false
> rspec ./spec/unit/asset_sync_spec.rb:146 # AssetSync from yml should default asset_regexps to match regexps
> rspec ./spec/unit/asset_sync_spec.rb:158 # AssetSync from yml, exporting to a mobile hybrid development directory should be disabled
> rspec ./spec/unit/google_spec.rb:111 # AssetSync from yml when using S3 interop API should configure google_storage_access_key_id
> rspec ./spec/unit/google_spec.rb:115 # AssetSync from yml when using S3 interop API should configure google_storage_secret_access_key
> rspec ./spec/unit/google_spec.rb:119 # AssetSync from yml when using S3 interop API should not configure google_json_key_location
> rspec ./spec/unit/google_spec.rb:123 # AssetSync from yml when using S3 interop API should configure fog_directory
> rspec ./spec/unit/google_spec.rb:127 # AssetSync from yml when using S3 interop API should configure existing_remote_files
> rspec ./spec/unit/google_spec.rb:131 # AssetSync from yml when using S3 interop API should default gzip_compression to false
> rspec ./spec/unit/google_spec.rb:135 # AssetSync from yml when using S3 interop API should default manifest to false
> rspec ./spec/unit/google_spec.rb:146 # AssetSync from yml when using service account API should configure google_json_key_location
> rspec ./spec/unit/google_spec.rb:150 # AssetSync from yml when using service account API should not configure google_storage_secret_access_key
> rspec ./spec/unit/rackspace_spec.rb:66 # AssetSync using Rackspace from yml should keep existing remote files
> rspec ./spec/unit/rackspace_spec.rb:70 # AssetSync using Rackspace from yml should configure rackspace_username
> rspec ./spec/unit/rackspace_spec.rb:74 # AssetSync using Rackspace from yml should configure rackspace_api_key
> rspec ./spec/unit/rackspace_spec.rb:78 # AssetSync using Rackspace from yml should configure fog_directory
> rspec ./spec/unit/rackspace_spec.rb:82 # AssetSync using Rackspace from yml should configure fog_region
> rspec ./spec/unit/rackspace_spec.rb:86 # AssetSync using Rackspace from yml should configure existing_remote_files
> 
> Coverage report generated for RSpec to /<<PKGBUILDDIR>>/coverage. 359 / 474 LOC (75.74%) covered.
> Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
> /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.10.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/exe/rspec ./spec/integration/aws_integration_spec.rb ./spec/unit/asset_sync_spec.rb ./spec/unit/google_spec.rb ./spec/unit/multi_mime_spec.rb ./spec/unit/rackspace_spec.rb ./spec/unit/railsless_spec.rb ./spec/unit/storage_spec.rb failed
> ERROR: Test "ruby3.1" failed: 


The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/17/ruby-asset-sync/ruby-asset-sync_2.11.0-1+rebuild1663007365_amd64-2022-09-12T18:29:26Z.build

To reproduce this, you need ruby-all-dev >= 1:3.0+2.  Depending on when you
read this, this might mean installing ruby-all-dev from experimental, or ir the
transition has alraedy started in unstable, a normal build on unstable should
do it.  If you fail to reproduce, please provide a build log and diff it with
mine so that we can identify if something relevant changed in the meantime.

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
-------------- 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/20220912/1b4af9c3/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list