[wp-trac] [WordPress Trac] #60798: Investigate potentially failing Imagick PDF alpha channel test

WordPress Trac noreply at wordpress.org
Mon Mar 18 11:31:35 UTC 2024


#60798: Investigate potentially failing Imagick PDF alpha channel test
--------------------------+------------------------------
 Reporter:  swissspidy    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------

Old description:

> The test
> `\Tests_Image_Editor_Imagick::test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in_preview()`
> was introduced in #39216 / [56271].
>
> On some hosting providers, this test appears to be failing with errors
> such as this:
>
> {{{
> Tests_Image_Editor_Imagick::test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in_preview
> The intermediate size could not be retrieved.
> Failed asserting that false is of type "array".
>
> /tmp/wp-test-runner/tests/phpunit/tests/image/editorImagick.php:680
> }}}
>
> We should investigate this failure to see whether it's an issue in core
> or with the hosting provider.
>
> The test mentions "Ghostscript version >= 9.14", so maybe it's just a
> matter of skipping the test if the installed Ghostscript version (`gs
> --version` I think) is older than that.

New description:

 The test
 `\Tests_Image_Editor_Imagick::test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in_preview()`
 was introduced in #39216 / [56271].

 On some hosting providers, this test appears to be failing with errors
 such as this:

 {{{
 Tests_Image_Editor_Imagick::test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in_preview
 The intermediate size could not be retrieved.
 Failed asserting that false is of type "array".

 /tmp/wp-test-runner/tests/phpunit/tests/image/editorImagick.php:680
 }}}

 Examples:

 https://make.wordpress.org/hosting/test-results/r57849/wpsabot-r57849/
 https://make.wordpress.org/hosting/test-results/r57848/wetopibot-r57848/

 We should investigate this failure to see whether it's an issue in core or
 with the hosting provider.

 The test mentions "Ghostscript version >= 9.14", so maybe it's just a
 matter of skipping the test if the installed Ghostscript version (`gs
 --version` I think) is older than that.

--

Comment (by swissspidy):

 cc @antpb @javiercasares

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


More information about the wp-trac mailing list