forked from mtusi2026/mtusi2026lab2
Archive the lab 3 session cache and proxy review fixes
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
date: 2026-11-05T22:49:42.040537+00:00 commit: 2af24d7762a87173aa2d34c3464c64184b3ee8bf
|
||||
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
exit: 0
|
||||
|
||||
$ make validate
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
exit: 0
|
||||
|
||||
$ make lint
|
||||
.venv/bin/ruff check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests alembic scripts/probe.py scripts/limits.py scripts/scaling.py tools
|
||||
111 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit: 0
|
||||
|
||||
$ make student-test PYTEST_ARGS=-q student-tests/unit
|
||||
.venv/bin/pytest -q student-tests/unit
|
||||
........................................................................ [ 63%]
|
||||
.......................................... [100%]
|
||||
114 passed in 0.08s
|
||||
exit: 0
|
||||
|
||||
$ .venv/bin/pytest --collect-only -q student-tests/api/test_cache.py
|
||||
student-tests/api/test_cache.py::test_second_check_is_served_from_cache
|
||||
student-tests/api/test_cache.py::test_logout_leaves_tombstone_after_commit
|
||||
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing[remove]
|
||||
student-tests/api/test_cache.py::test_logout_rejected_by_database_changes_nothing[commit]
|
||||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token[none]
|
||||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token[flushall]
|
||||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token[evict]
|
||||
student-tests/api/test_cache.py::test_fill_racing_with_logout_does_not_revive_token[replacement]
|
||||
student-tests/api/test_cache.py::test_cache_loss_before_logout_commit_cannot_refill_deleted_session[flushall]
|
||||
student-tests/api/test_cache.py::test_cache_loss_before_logout_commit_cannot_refill_deleted_session[evict]
|
||||
student-tests/api/test_cache.py::test_flushall_loses_nothing
|
||||
student-tests/api/test_cache.py::test_unreachable_cache_is_bypassed_without_anonymous_access
|
||||
|
||||
12 tests collected in 0.03s
|
||||
exit: 0
|
||||
|
||||
$ openspec validate --all --strict
|
||||
✓ change/fix-lab3-review-session-cache-and-errors
|
||||
✓ spec/lab1-event-publication
|
||||
✓ spec/lab1-messenger-chats
|
||||
✓ spec/lab1-messenger-history
|
||||
✓ spec/lab1-messenger-identity
|
||||
✓ spec/lab1-service-operability
|
||||
✓ spec/lab2-auth-sessions
|
||||
✓ spec/lab2-dependency-failures
|
||||
✓ spec/lab2-history-index
|
||||
✓ spec/lab2-persistent-storage
|
||||
✓ spec/lab2-session-cache
|
||||
✓ spec/lab3-failover-operations
|
||||
✓ spec/lab3-idempotent-messages
|
||||
✓ spec/lab3-load-balancing
|
||||
✓ spec/lab3-scaling-cost
|
||||
Totals: 15 passed, 0 failed (15 items)
|
||||
- Validating...
|
||||
exit: 0
|
||||
Reference in New Issue
Block a user