Files
mtusi2026lab5/evidence/test-track2.txt

13 lines
1.5 KiB
Plaintext
Raw Permalink 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-21T15:32:11Z 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 (http://127.0.0.1:8080)
PASS D: 8 duplicate copies of one job delivered concurrently → one claim, one commit 29.42s 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 22.35s 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 63.92s {'crash-before-s3': 'takeover', 'crash-after-s3': 'takeover', 'crash-after-commit': 'takeover', 'hang-40': 'takeover'}
PASS V1: stale v1 job after v2 is published → superseded, no v1 side effects 19.62s 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) 15.35s v1 finished after v2 → superseded at commit; pointer history [(None, 2)]
PASS V3: redelivered v1 after v2 rollout and repeated reprocess are no-ops 5.99s 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) 2.07s attachments 9, jobs 12 {'ready': 10, 'superseded': 2}, variants 33, events 92
summary: 7 passed, 0 failed
exit=0