ЛР 5 — БВТ2302 — Лебедев — на 5

This commit is contained in:
2026-11-22 23:05:53 +03:00
parent 276dbdad8a
commit fbd04ce238
112 changed files with 9536 additions and 16 deletions
+13
View File
@@ -0,0 +1,13 @@
# 2026-11-21T15:23:11Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ python3 student-tests/test_pipeline.py
## attachment pipeline (http://127.0.0.1:8080)
PASS upload → 202 queued snapshot, then ready; original byte-exact; three variants by contract 0.98s ready 0.93s after 202; thumbnail 256×160, crop 128×128, optimized 320×200 WebP
PASS big image: optimized fits 1280 without upscale, thumbnail rounds down 0.76s thumbnail 256x170, optimized 1280x852
PASS EXIF orientation applied (stored 400×200, orientation 6 → 200×400); tiny image not upscaled 1.35s
PASS variant parameter: unknown → 400; default original; outsider → 404 0.66s
PASS undecodable image → failed with safe error_code, no retries; content 409; cannot attach (409) 1.70s events ['enqueued', 'published', 'claimed', 'failed']; listed in failed registry
PASS queued/processing attachment can be attached to a message right away 0.68s
PASS duplicate deliveries of a finished job are no-ops (5 raw duplicates) 5.51s committed ×1, duplicate_ignored ×5, metadata unchanged
PASS replay is safe: ready → noop; failed (permanent) → re-executed once, failed again 3.23s ready: noop; failed: replayed (audit by student) → failed again (permanent error)
summary: 8 passed, 0 failed
exit=0