forked from mtusi2026/mtusi2026lab5
feat:report
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
@@ -0,0 +1,56 @@
|
||||
(.venv) linux@DESKTOP-7TS8I4A:/mnt/c/MiniLynx/Forth/VP/lab5/mtusi2026lab5-fork$ make my_tests
|
||||
python3 student_tests/states.py
|
||||
upload -> queued
|
||||
status stays queued while worker paused
|
||||
ready with thumbnail/crop/optimized (original available via ?variant=original)
|
||||
original served via ?variant=original (111817 bytes)
|
||||
python3 student_tests/limits.py
|
||||
413 payload_too_large
|
||||
415 unsupported_media_type
|
||||
415 mismatched content (client MIME not trusted)
|
||||
400 invalid image (signature ok, header broken)
|
||||
400 too many pixels
|
||||
python3 student_tests/variants.py
|
||||
original byte-identical
|
||||
thumbnail 256x160 (metadata matches)
|
||||
crop 128x128 JPEG
|
||||
optimized present (4818 bytes)
|
||||
python3 student_tests/broker-payload.py
|
||||
stream sample:
|
||||
1794848167433-0
|
||||
payload
|
||||
{"schema_version":1,"job_id":"ee59551f-c85f-411a-b4d9-6076f31fde8f","type":"attachment.process.v1","attachment_id":"1175cf24-2984-4800-b84d-1aa702ecd7bd","pipeline_version":1,"attempt":1,"created_at":"2026-11-16T16:56:07Z"}
|
||||
1794848176445-0
|
||||
payload
|
||||
{"schema_version":1,"job_id":"b7792daf-6123-4c7a-9566-b2fc4a53a614","type":"attachment.process.v1","attachment_id":"05ef10e7-19c4-47ef-9c68-a2e09eb8338e","pipeline_version":1,"attempt":1,"created_at":"2026-11-16T16:56:16Z"}
|
||||
|
||||
broker payload has only ids/version/attempt
|
||||
python3 student_tests/staging-cleanup.py
|
||||
staging object removed after ready (mc rc=1)
|
||||
python3 student_tests/dlq.py
|
||||
failed registry:
|
||||
b1ccbeca-ae22-44f1-837c-868d2165889c|invalid_image|1
|
||||
python3 student_tests/redelivery.py
|
||||
redelivery is no-op (still 3 non-original variants; original via object_key)
|
||||
python3 student_tests/outbox.py
|
||||
outbox paused: published_at IS NULL, upload accepted
|
||||
after unpause: ready
|
||||
python3 student_tests/failed.py
|
||||
failed immediately (attempt=1), error_code=invalid_image — permanent, not retried
|
||||
python3 student_tests/retry.py
|
||||
transient error retried: attempt=2
|
||||
retry log lines:
|
||||
worker-1 | 2026/11/16 16:56:48 retry job=64072f3d-6b9e-4101-b31b-7e9a2f51bac3 attempt=2 next_attempt=2026-11-16T16:56:50.964432673Z backoff=2s jitter=451.35473ms code=storage_error
|
||||
recovered to ready after staging restored (attempt=2)
|
||||
python3 student_tests/replay.py
|
||||
failed reached
|
||||
replay -> queued
|
||||
replay reset attempt to 1; permanent error failed again — not retried
|
||||
python3 student_tests/lease.py
|
||||
worker stopped at processing (job=da0adcf7-64a7-427c-a50b-438e9d688bb7, lease_expires_at=2026-11-16 16:57:59.829609+00)
|
||||
reaper requeued the stuck job
|
||||
ready after unstuck
|
||||
python3 student_tests/crash-before-ack.py
|
||||
worker killed during processing
|
||||
recovery produced exactly 3 non-original variants, no duplicates (original in object_key)
|
||||
(.venv) linux@DESKTOP-7TS8I4A:/mnt/c/MiniLynx/Forth/VP/lab5/mtusi2026lab5-fork$
|
||||
Reference in New Issue
Block a user