Skip to content

API tests fail when running on a system build with ENABLE_VIPS=true #66

Closed

Description

@individual-it
  1. use a binary build with ENABLE_VIPS=1 e.g. opencloudeu/opencloud-rolling docker image
  2. run test that check the exact content of the preview e.g. tests/acceptance/features/coreApiWebdavPreviews/previews.feature:350

the tests fail because they check if the image is bit-by-bit as expected and with VIPS the image is slightly different, what is not surprising because an other library generates it

e.g. with VIPS
Image
vs. without:
Image

Possible solutions:

  1. do nothing and expect the tests to run without VIPS (we cannot change the CI to run with VIPS and can cause confusion when running tests locally or in other environments)
  2. change the images to what is expected to be generated when using with VIPS (just opposite of 1, basically same confusion can happen)
  3. make test step take 2 images: e.g. Then the downloaded preview content should match with <expected-image> or <expected-vips-image> fixtures preview content
  4. have some more clever image comparison, e.g. amount of pixel difference (could lead to false positive/negative specially for highly resized images)
  5. create images in the test with the same/similar libraries and check the differnces

CC @ScharfViktor

Activity

  1. v-scharf commented on Sep 1, 2025

    @v-scharf
    Collaborator

    I would choose solution 2: update the expected fixtures to match the images generated with VIPS.
    and I’d also add a clear marker (e.g. @need-build-with-VIPS tag in the test header)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions