forked from mtusi2026/mtusi2026lab3
Finalize lab 3 report and evidence provenance
Tie the grade 5 claim to the final SQLAlchemy revalidation and measured scaling results. Clarify clean-clone setup, failure timings, historical evidence, and operational constraints; record report-stage checks and evidence audits.
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
date: 2026-11-05T22:25:56.847995+00:00 commit: f591fa64e525679a31c9db7f942d36c789e1a12f
|
||||
worktree: report documentation changes only; application and tests unchanged
|
||||
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
exit: 0
|
||||
duration_seconds: 0.100
|
||||
|
||||
$ make validate
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
exit: 0
|
||||
duration_seconds: 0.250
|
||||
|
||||
$ 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
|
||||
109 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit: 0
|
||||
duration_seconds: 0.113
|
||||
|
||||
$ make student-test
|
||||
.venv/bin/pytest
|
||||
============================= test session starts ==============================
|
||||
platform darwin -- Python 3.14.5, pytest-9.1.1, pluggy-1.6.0
|
||||
rootdir: <repo>
|
||||
configfile: pyproject.toml
|
||||
testpaths: student-tests
|
||||
plugins: asyncio-1.4.0, anyio-4.15.1
|
||||
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
|
||||
collected 302 items / 12 deselected / 290 selected
|
||||
|
||||
student-tests/api/test_access.py ......... [ 3%]
|
||||
student-tests/api/test_bounded_contexts.py .................. [ 9%]
|
||||
student-tests/api/test_cache.py ...... [ 11%]
|
||||
student-tests/api/test_concurrency.py .... [ 12%]
|
||||
student-tests/api/test_consistency.py ........ [ 15%]
|
||||
student-tests/api/test_drain.py .. [ 16%]
|
||||
student-tests/api/test_events.py ...... [ 18%]
|
||||
student-tests/api/test_idempotency.py ............... [ 23%]
|
||||
student-tests/api/test_instance.py .... [ 24%]
|
||||
student-tests/api/test_migrations.py ...................... [ 32%]
|
||||
student-tests/api/test_negative.py ..................................... [ 45%]
|
||||
[ 45%]
|
||||
student-tests/api/test_operability.py .............. [ 50%]
|
||||
student-tests/api/test_pagination.py .................. [ 56%]
|
||||
student-tests/api/test_pool.py ............ [ 60%]
|
||||
student-tests/api/test_sessions.py .................. [ 66%]
|
||||
student-tests/api/test_timeout.py ...... [ 68%]
|
||||
student-tests/api/test_wire_format.py .. [ 69%]
|
||||
student-tests/unit/test_authentication.py ..................... [ 76%]
|
||||
student-tests/unit/test_cursor.py ........... [ 80%]
|
||||
student-tests/unit/test_domain.py ..................................... [ 93%]
|
||||
student-tests/unit/test_probe.py .............. [ 97%]
|
||||
student-tests/unit/test_scaling.py ..... [ 99%]
|
||||
student-tests/unit/test_timeouts.py . [100%]
|
||||
|
||||
===================== 290 passed, 12 deselected in 31.49s ======================
|
||||
exit: 0
|
||||
duration_seconds: 32.073
|
||||
|
||||
$ uv lock --check
|
||||
Resolved 64 packages in 5ms
|
||||
exit: 0
|
||||
duration_seconds: 0.019
|
||||
|
||||
$ openspec validate --all --strict
|
||||
- Validating...
|
||||
✓ 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: 14 passed, 0 failed (14 items)
|
||||
exit: 0
|
||||
duration_seconds: 0.831
|
||||
|
||||
$ docker ps --format '{{.ID}} {{.Names}} {{.Ports}}'
|
||||
(empty)
|
||||
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
|
||||
109 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit: 0
|
||||
duration_seconds: 0.118
|
||||
Reference in New Issue
Block a user