You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API tests fail when running on a system build with ENABLE_VIPS=true #66
use a binary build with ENABLE_VIPS=1 e.g. opencloudeu/opencloud-rolling docker image
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
vs. without:
Possible solutions:
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)
change the images to what is expected to be generated when using with VIPS (just opposite of 1, basically same confusion can happen)
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
have some more clever image comparison, e.g. amount of pixel difference (could lead to false positive/negative specially for highly resized images)
create images in the test with the same/similar libraries and check the differnces
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)
Activity
v-scharf commentedon Sep 1, 2025
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)