[DRE-maint] Bug#919735: ruby-premailer-rails: FTBFS (failing tests)

Santiago Vila sanvila at debian.org
Fri Jan 18 23:41:55 GMT 2019


Package: src:ruby-premailer-rails
Version: 1.9.7-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=ruby --with ruby
   dh_update_autotools_config -i -O--buildsystem=ruby
   dh_auto_configure -i -O--buildsystem=ruby
	dh_ruby --configure
   dh_auto_build -i -O--buildsystem=ruby
	dh_ruby --build
   dh_ruby --build
   dh_auto_test -i -O--buildsystem=ruby
	dh_ruby --test
 fakeroot debian/rules binary-indep
dh binary-indep --buildsystem=ruby --with ruby
   dh_testroot -i -O--buildsystem=ruby
   dh_prep -i -O--buildsystem=ruby

[... snipped ...]

      when HTML contains unicode
        does not mess those up
  when adapter is hpricot
    #to_plain_text
      includes the text from the HTML part
    #to_inline_css
      when inline CSS block present
        returns the HTML with the CSS inlined
      when CSS is loaded externally
        returns the HTML with the CSS inlined
      when HTML contains unicode
        does not mess those up
  .new
    extracts the CSS
    passes on the configs
    does not allow to override with_html_string

Premailer::Rails
  #config
    when set
      should eq {:foo=>:bar}

Failures:

  1) Premailer::Rails::Hook when message also contains a text part does not replace any message part
     Failure/Error:
       expect { run_hook(message) }.to_not \
         change { message.all_parts.map(&:content_type) }

       expected `message.all_parts.map(&:content_type)` not to have changed, but did change from ["multipart/alternative; boundary=\"--==_mimepart_5c425ea927787_76ba2ab410f145c014523\"; charset=UTF-8", "text/html; charset=UTF-8", "text/plain; charset=UTF-8"] to ["multipart/alternative; boundary=\"--==_mimepart_5c425ea927787_76ba2ab410f145c014523\"; charset=UTF-8", "text/plain; charset=UTF-8", "text/html; charset=UTF-8"]
     # ./spec/integration/hook_spec.rb:93:in `block (3 levels) in <top (required)>'

Finished in 0.79986 seconds (files took 1.43 seconds to load)
68 examples, 1 failure

Failed examples:

rspec ./spec/integration/hook_spec.rb:92 # Premailer::Rails::Hook when message also contains a text part does not replace any message part

Coverage report generated for RSpec to /<<PKGBUILDDIR>>/coverage. 528 / 529 LOC (99.81%) covered.
/usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby2.5" failed. Exiting.
dh_auto_install: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-premailer-rails returned exit code 1
make[1]: *** [debian/rules:12: override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
and it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ruby-premailer-rails.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



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