[Bug 1549942] Re: php-imagick failing autopkgtests

Steve Langasek steve.langasek at canonical.com
Tue Mar 8 03:22:25 UTC 2016


On Mon, Mar 07, 2016 at 10:53:49PM -0000, Nish Aravamudan wrote:
> > I see.  That doesn't look like a very sane test to me; the test ought
> > to test that the output is *correct*, not test that the output matches
> > some known bug.  Yes, I think patching this test to always check for
> > the correct value is appropriate.

> But what is "correct" to an API consumer? That imagemagick always rounds
> up?

The test code asserts that this is what's correct, I assume with some
cause.

Really, this is a bad test because it's testing aspects of the imagemagick
implementation, not the php-imagick code.  Instead of hard-coding an
imagemagick version check, it would be better if this test allowed for both
buggy and non-buggy versions of imagemagick and accepted either value, given
the imperfection of checking version numbers.

Or, the test could use values that didn't run into this rounding problem?
Since this behavior difference doesn't seem to be relevant to testing the
behavior of php-imagick itself.

> Then php-imagick will always fail against older version of
> imagemagick.

For the package, it's acceptable for the test to fail against older versions
of imagemagick.  For upstream, that's their decision.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/1549942

Title:
  php-imagick failing autopkgtests

Status in ImageMagick:
  Fix Released
Status in fusiondirectory package in Ubuntu:
  New
Status in gosa package in Ubuntu:
  New
Status in imagemagick package in Ubuntu:
  Fix Released
Status in ldap-account-manager package in Ubuntu:
  New
Status in php-horde-ansel package in Ubuntu:
  New
Status in php-horde-image package in Ubuntu:
  New
Status in php-imagick package in Ubuntu:
  New
Status in phpbb3 package in Ubuntu:
  New
Status in pictor package in Ubuntu:
  New

Bug description:
  8:6.8.9.9-7 has backported

      - PixelColor off by one on i386 (closes: #811308)
        https://github.com/ImageMagick/ImageMagick/issues/54

  but there were two commits that came after the currently backported
  changes (d6054824 and 95c8394e). The former, especially, is needed, as
  the current backport introducing a rounding bug (incorrect use of
  floor()).

To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/1549942/+subscriptions



More information about the foundations-bugs mailing list