-
Notifications
You must be signed in to change notification settings - Fork 229
[tests-only][full-ci] Test: run Core-API-8 test suite on k8s #11826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
6358a8d to
53fb068
Compare
1c60d50 to
7a49c3f
Compare
tests/acceptance/features/coreApiWebdavPreviews/previewsAutoAdustedSizing.feature
Show resolved
Hide resolved
tests/acceptance/features/coreApiWebdavUploadTUS/creationWithUploadExtension.feature
Outdated
Show resolved
Hide resolved
| And user "Alice" sends a chunk to the last created TUS Location with offset "3" and data "4567890" using the WebDAV API | ||
| And user "Alice" sends a chunk to the last created TUS Location with offset "3" and data "0000000" using the WebDAV API | ||
| Then the HTTP status code should be "404" | ||
| Then the HTTP status code should be "404" or "409" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we get 409 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the confirmation issue: #11854 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we get 409 when there's offset mismatch which will be the case when the upload session is found (due to race condition). So expecting 404 or 409 is ok IMO.
For future refs:
https://github.com/owncloud/reva/blob/38a73a6cb88ef46b12a3de9f912284d697588b42/pkg/rhttp/datatx/manager/tus/tus.go#L181-L188
⬇️
https://github.com/tus/tusd/blob/c3cef4460b0cb4cf887724d722000e018bb435b2/pkg/handler/unrouted_handler.go#L788-L791 (Status 409)
OR
https://github.com/tus/tusd/blob/c3cef4460b0cb4cf887724d722000e018bb435b2/pkg/handler/unrouted_handler.go#L770-L774 (Status 404)
⬇️
https://github.com/owncloud/reva/blob/38a73a6cb88ef46b12a3de9f912284d697588b42/pkg/storage/utils/decomposedfs/upload.go#L362-L370
⬇️
https://github.com/owncloud/reva/blob/38a73a6cb88ef46b12a3de9f912284d697588b42/pkg/storage/utils/decomposedfs/upload/store.go#L136-L147
c2a11d8 to
e33e63e
Compare
6b50513 to
5b338e7
Compare
eca5419 to
bab8034
Compare
This reverts commit 23e9adb.
4c9ad18 to
5ef4f75
Compare
5ef4f75 to
b9b0e2f
Compare
|
| | 1024 | 1024 | 640 | 640 | spaces | | ||
| | 1 | 1024 | 16 | 16 | spaces | | ||
| | 1024 | 1 | 640 | 480 | spaces | | ||
| | 1024 | 1 | 640 | 640 | spaces | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by default vips is not enabled, we need to think of running test locally with vips disabled.
May be we should check using either .. or ..
| | 1024 | 1 | 640 | 640 | spaces | | |
| | 1024 | 1 | 640 | 480,640 | spaces | |



Description
This PR enables Unicode text preview support for the thumbnails service in Kubernetes, ensures consistent thumbnail generation between test builds and production images, and fixes a flaky TUS upload test.
Problem
image/jpegencoder while production Docker images (built withENABLE_VIPS=true) use libvips encoder, causing different JPEG output and test failurescoreApiWebdavUploadTUS/lowLevelUpload.feature: send last chunk twicewas failing in Drone CI K8s with409but passing locally with404Changes
1. K8s Font Support
2. Consistent Test Builds
ENABLE_VIPS=trueto test builds to match production images (which already have VIPS enabled)unicode-fixture.png: 620 → 739 bytesfit.png: 713 → 885 bytesfill.png: 874 → 1029 bytesresize.png: 829 → 984 bytesthumbnail.png: 874 → 1029 bytes3. TUS Upload Test Fix
404to404 or 409for "send last chunk twice" scenarioPassing CIs:
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: