Files
mtusi2026lab7/evidence/test-pipeline-idempotency.txt
T

13 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-11-22T19:28:30Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ python3 student-tests/test_pipeline_idempotency.py
## track 2: pipeline idempotency (https://127.0.0.1:8443)
PASS D: 8 duplicate copies of one job delivered concurrently → one claim, one commit 34.24s 9 deliveries: claimed 1, committed 1, duplicate_ignored 8
PASS R: reorder — stale attempts (1, 2) and a future one arrive DURING attempt 3 → ignored 23.22s during attempt 3: attempts 2, 1 → stale_ignored; 9 → stale_ignored(future) + term; one commit
PASS C: crash before/after side effect, after COMMIT, hung worker — all reach one result 66.32s {'crash-before-s3': 'takeover', 'crash-after-s3': 'takeover', 'crash-after-commit': 'dup_ignored', 'hang-40': 'takeover'}
PASS V1: stale v1 job after v2 is published → superseded, no v1 side effects 22.07s v2 ready first; v1 → superseded at claim; variants only v2, pointer 2
PASS V2: version race — slow v1 commits after v2 → pointer stays on v2 (no overwrite by older) 17.26s v1 finished after v2 → superseded at commit; pointer history [(None, 2)]
PASS V3: redelivered v1 after v2 rollout and repeated reprocess are no-ops 10.06s v1 ready → v2 ready (pointer 1→2); 3 v1 duplicates ignored; reprocess v1/v2 again → noop
PASS invariants I1–I7 hold for everything this suite produced (settled, bytes verified) 3.61s attachments 9, jobs 12 {'ready': 10, 'superseded': 2}, variants 33, events 91
summary: 7 passed, 0 failed
exit=0