forked from mtusi2026/mtusi2026lab5
RabbitMQ + transactional outbox, отдельный worker (thumbnail/crop/WebP), lease и heartbeat, retry с backoff+jitter, DLQ и replay, admission control; тесты отказов, трек 1 и отчёт.
21 lines
964 B
Plaintext
21 lines
964 B
Plaintext
ok 320x200 -> thumbnail 256x160
|
|
ok crop 128x128
|
|
ok optimized WebP 320x200, no upscale
|
|
ok thumbnail/crop are JPEG
|
|
ok 40x10: thumbnail 40x10, crop 128x128
|
|
ok 3000x2 -> 256x1 / 1280x1 (min 1px)
|
|
ok 1001x999 -> 256x255 (floor)
|
|
ok EXIF orientation applied: 400x200 (o=6) -> 128x256
|
|
ok rotated content: red half on top after orientation 6
|
|
ok EXIF removed from thumbnail/optimized
|
|
ok transparent PNG -> white JPEG thumbnail
|
|
ok WebP optimized keeps alpha
|
|
ok 16-bit PNG, CMYK JPEG, palette+transparency PNG are processed
|
|
ok pixel limit enforced before decode -> image_too_large (exit 4)
|
|
ok corrupted PNG -> invalid_image (exit 3)
|
|
ok 36 Mpx PNG with 160 MiB address-space limit -> image_too_complex (exit 5), got 5
|
|
ok 39.5 Mpx PNG (31 MB file) ok in 0.9s, peak child RSS 322 MiB
|
|
ok CPU limit exhausted -> SIGXCPU (worker: permanent image_too_complex), got -24
|
|
ok 39.5 Mpx JPEG (7 MB file) ok in 0.3s, peak child RSS 335 MiB
|
|
RESULT: PASS
|