[DRE-maint] Bug#877314: ruby-premailer FTBFS and Debci failure: test failure
Adrian Bunk
bunk at debian.org
Sat Sep 30 13:43:50 UTC 2017
Source: ruby-premailer
Version: 1.8.6-1
Severity: serious
Tags: buster sid
Some recent change in unstable makes ruby-premailer FTBFS and Debci fail:
https://ci.debian.net/packages/r/ruby-premailer/unstable/amd64/
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ruby-premailer.html
...
Loaded suite /usr/lib/ruby/vendor_ruby/rake/rake_test_loader
Started
Premailer::TestCase:
default_test: .: (0.000564)
TestAdapter:
test_adapters_are_findable_by_class: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/hpricot.rb:40: warning: character class has duplicated range: /\A\#([\w_\-]+)\Z/
/build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/hpricot.rb:71: warning: character class has duplicated range: /\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/
/usr/lib/ruby/vendor_ruby/hpricot/traverse.rb:230: warning: assigned but unused variable - i
/usr/lib/ruby/vendor_ruby/hpricot/traverse.rb:297: warning: assigned but unused variable - oop
/usr/lib/ruby/vendor_ruby/hpricot/traverse.rb:615: warning: assigned but unused variable - links
/usr/lib/ruby/vendor_ruby/hpricot/elements.rb:490: warning: assigned but unused variable - idx
.: (0.092552)
test_adapters_are_findable_by_symbol: .: (0.000405)
test_default_to_best_available: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter.rb:21: warning: instance variable @use not initialized
.: (0.001250)
test_raises_argument_error: .: (0.000381)
test_settable_via_symbol: .: (0.001634)
TestHtmlToPlainText:
test_headings: .: (0.008737)
test_img_alt_tags: .: (0.003714)
test_line_breaks: .: (0.001862)
test_links: .: (0.010979)
test_links_within_headings: .: (0.001138)
test_lists: .: (0.010320)
test_multiple_links_per_line: .: (0.000961)
test_paragraphs_and_breaks: .: (0.003593)
test_specialchars: .: (0.001002)
test_stripping_html: .: (0.000771)
test_stripping_ignored_blocks: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/hpricot.rb:170: warning: instance variable @html_encoding not initialized
.: (0.009234)
test_stripping_whitespace: .: (0.003730)
test_to_plain_text_with_body: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/hpricot.rb:170: warning: instance variable @html_encoding not initialized
.: (0.008706)
test_to_plain_text_with_fragment: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/hpricot.rb:170: warning: instance variable @html_encoding not initialized
.: (0.008723)
test_to_plain_text_with_malformed_body: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/hpricot.rb:170: warning: instance variable @html_encoding not initialized
.: (0.008459)
test_wrapping_lines: .: (0.001104)
test_wrapping_spans: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/hpricot.rb:170: warning: instance variable @html_encoding not initialized
.: (0.008530)
TestLinks:
test_appending_link_query_string: .: (0.052149)
test_convertable_inline_links: .: (0.017419)
test_empty_query_string: .: (0.012961)
test_non_convertable_inline_links: .: (0.020109)
test_preserving_links: .: (0.023632)
test_resolving_urls_from_html_string: .: (0.000492)
test_resolving_urls_from_string: .: (0.001513)
test_resolving_urls_from_uri: .: (0.001278)
test_resolving_urls_in_doc: /build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/nokogiri.rb:41: warning: character class has duplicated range: /\A\#([\w_\-]+)\Z/
/build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/nokogiri.rb:67: warning: character class has duplicated range: /\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/
/build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/nokogiri.rb:149: warning: assigned but unused variable - body
/build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/nokogiri.rb:41: warning: character class has duplicated range: /\A\#([\w_\-]+)\Z/
/build/1st/ruby-premailer-1.8.6/lib/premailer/adapter/nokogiri.rb:67: warning: character class has duplicated range: /\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/
.: (0.125321)
test_stripping_extra_question_marks_from_query_string:.: (0.002897)
test_unescape_ampersand: .: (0.001038)
TestMisc:
test_commented_out_styles_in_the_body: .: (0.002348)
test_handling_shorthand_auto_properties: .: (0.005193)
test_ignoring_link_pseudo_selectors: .: (0.002273)
test_inline_important: .: (0.002238)
test_multiple_identical_ids: .: (0.002086)
test_not_applying_styles_to_the_head: .: (0.005184)
test_parsing_bad_markup_around_tables: F
===============================================================================
Failure:
</background: #000080/> was expected to be =~
<"background-color: #000080; height: 125px">.
test_parsing_bad_markup_around_tables(TestMisc)
/build/1st/ruby-premailer-1.8.6/test/test_misc.rb:240:in `test_parsing_bad_markup_around_tables'
237: premailer = Premailer.new(html, :with_html_string => true)
238: premailer.to_inline_css
239: assert_match /font-size: xx-large/, premailer.processed_doc.search('.style3').first.attributes['style'].to_s
=> 240: assert_match /background: #000080/, premailer.processed_doc.search('.style5').first.attributes['style'].to_s
241: end
242:
243: # in response to https://github.com/alexdunae/premailer/issues/56
===============================================================================
: (0.005144)
test_parsing_extra_quotes: .: (0.001678)
test_preserving_styles: .: (0.010537)
test_removing_scripts: .: (0.004754)
test_scripts_with_nokogiri: .: (0.001240)
test_sorting_style_attributes: .: (0.002146)
test_strip_important_from_attributes: .: (0.004412)
test_styles_in_the_body: .: (0.002142)
test_unmergable_media_queries: ------- Testing adapter nokogiri
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html> <head>
</head>
<body>
<style type="text/css">
@media (min-width:500px) {
a {
color: red;
}
}
@media screen and (orientation: portrait) {
a {
color: green;
}
}
</style>
<p><a style="color: blue">Test</a></p>
</body> </html>
------- Testing adapter hpricot
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html> <head>
</head>
<body>
<style type="text/css">
@media (min-width:500px) {
a {
color: red;
}
}
@media screen and (orientation: portrait) {
a {
color: green;
}
}
</style>
<p><a style="color: blue">Test</a></p>
</body> </html>
.: (0.007851)
test_unmergable_rules: .: (0.003533)
test_unmergable_rules_with_no_body: .: (0.002999)
TestPremailer:
test_advanced_selectors: /build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.282047)
test_carriage_returns_as_entities: .: (0.002398)
test_detecting_html: /build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.261588)
test_detecting_xhtml: /build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.009554)
test_empty_html_nokogiri: output error : unknown encoding ASCII-8BIT
output error : unknown encoding ASCII-8BIT
output error : unknown encoding ASCII-8BIT
.: (0.002029)
test_escaping_strings: /build/1st/ruby-premailer-1.8.6/lib/premailer/premailer.rb:306: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.138433)
test_htmlentities: .: (0.001575)
test_importing_css_as_string: .: (0.005403)
test_importing_local_css: /build/1st/ruby-premailer-1.8.6/lib/premailer/premailer.rb:306: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.139442)
test_importing_remote_css: /build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.269712)
test_include_link_tags_option: /build/1st/ruby-premailer-1.8.6/lib/premailer/premailer.rb:306: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.112473)
test_include_style_tags_option: /build/1st/ruby-premailer-1.8.6/lib/premailer/premailer.rb:306: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/lib/premailer/premailer.rb:306: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.240254)
test_initialize_can_accept_html_string: .: (0.002047)
test_initialize_can_accept_io_object: .: (0.001903)
test_initialize_no_escape_attributes_option: .: (0.002862)
test_input_encoding: .: (0.001279)
test_line_starting_with_uri_in_html_with_linked_css:.: (0.001474)
test_local_remote_check: [DEPRECATION] `local_uri?` is deprecated. Please use `Premailer.local_data?` instead.
.: (0.000880)
test_mailtos_with_query_strings: .: (0.002739)
test_meta_encoding_downcase: .: (0.010554)
test_meta_encoding_upcase: .: (0.001699)
test_non_self_closing_html_tags: /build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.013931)
test_output_encoding: .: (0.001514)
test_premailer_related_attributes: .: (0.005830)
test_preserving_ignored_link_elements: .: (0.003128)
test_preserving_ignored_style_elements: .: (0.003437)
test_remove_ids: .: (0.007683)
test_reset_contenteditable: .: (0.004582)
test_self_closing_xhtml_tags: /build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
/build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.015201)
test_special_characters_hpricot: .: (0.002403)
test_special_characters_nokogiri: .: (0.001588)
test_special_characters_nokogiri_remote: /build/1st/ruby-premailer-1.8.6/test/helper.rb:16: warning: File.exists? is a deprecated name, use File.exist? instead
.: (0.008202)
TestWarnings:
test_attribute_warnings: .: (0.027358)
test_css_aliased_warnings: .: (0.023167)
test_css_warnings: .: (0.021066)
test_element_warnings: .: (0.023250)
test_warn_level: .: (0.043334)
Finished in 2.21778781 seconds.
------
88 tests, 270 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
98.8636% passed
------
39.68 tests/s, 121.74 assertions/s
rake aborted!
Command failed with status (1): [ruby -w -I"test" "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "test/test_adapter.rb" "test/test_html_to_plain_text.rb" "test/test_links.rb" "test/test_misc.rb" "test/test_premailer.rb" "test/test_warnings.rb" -v]
Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby2.3" failed. Exiting.
dh_auto_install: dh_ruby --install /build/1st/ruby-premailer-1.8.6/debian/ruby-premailer returned exit code 1
debian/rules:6: recipe for target 'binary' failed
make: *** [binary] Error 1
More information about the Pkg-ruby-extras-maintainers
mailing list