[wp-trac] [WordPress Trac] #40537: PDF tests cannot be tested on Travis

WordPress Trac noreply at wordpress.org
Fri Jun 30 18:42:31 UTC 2017


#40537: PDF tests cannot be tested on Travis
------------------------------------+------------------------------
 Reporter:  johnbillion             |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Media                   |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by danielbachhuber):

 I ran into this bug (and a variety of error notices) in the wild on a
 DreamPress box. Here's a summary

 {{{
 3) Tests_Image_Intermediate_Size::test_get_intermediate_sizes_by_name
 ImagickException: exif_read_data(waffles-1.jpg): Incorrect APP1 Exif
 Identifier Code
 /home/wp_5xude7/wp-test-runner-35/src/wp-admin/includes/image.php:430
 13) Tests_Image_Meta::test_utf8_iptc_tags
 ImagickException: exif_read_data(test-image-iptc.jpg): Illegal IFD size
 /home/wp_5xude7/wp-test-runner-35/src/wp-admin/includes/image.php:430
 /home/wp_5xude7/wp-test-runner-35/tests/phpunit/tests/image/meta.php:126
 14) Test_Image_Resize_GD::test_resize_bad_image
 ImagickException: imagecreatefromstring(): Data is not in a recognized
 format
 /home/wp_5xude7/wp-test-runner-35/src/wp-includes/class-wp-image-editor-
 gd.php:102
 /home/wp_5xude7/wp-test-runner-35/src/wp-includes/media.php:2913
 /home/wp_5xude7/wp-test-runner-35/tests/phpunit/tests/image/resize.php:168
 /home/wp_5xude7/wp-test-
 runner-35/tests/phpunit/tests/image/resize_gd.php:32
 16) Tests_Image_Editor_Imagick::test_image_preserves_alpha_on_rotate
 Failed asserting that 1.0 matches expected 0.0.
 /home/wp_5xude7/wp-test-runner-35/tests/phpunit/tests/image/base.php:64
 /home/wp_5xude7/wp-test-
 runner-35/tests/phpunit/tests/image/editor_imagick.php:531
 }}}

 Full report in:
 https://gist.github.com/danielbachhuber/f6f3711c877350ad610e569c0ba9931e

 {{{
 [wp581415]$ convert --version
 Version: ImageMagick 6.6.9-7 2016-06-01 Q16 http://www.imagemagick.org
 }}}

 It'd be good to get ImageMagick running in Travis so we have visibility
 into these sorts of failures.

 Related https://github.com/octalmage/WP-Unit-Test-Runner/issues/19

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40537#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list