Port final lab 5 validation, session and PNG recovery fixes
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Поздний перенос ЛР5 → ЛР6
|
||||
|
||||
Источник только immutable snapshot `lab5-c7b8feb805d151e878d77b0dff47320a9436b172`; диапазон `f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071..c7b8feb805d151e878d77b0dff47320a9436b172`. Исходный HEAD ЛР6 `237a7c93e507b984add5b49c51c6720a6bfca505`, дерево было чистым. Полный перечень всех изменённых путей, SHA-256 источника и решение по каждому: [source-inventory.json](forward-published/source-inventory.json).
|
||||
|
||||
## Перенос
|
||||
|
||||
| Группа | Изменение | Разрешение |
|
||||
|---|---|---|
|
||||
| identity handlers/postgres/valkey | Отзыв сессии, блокировка чтения, nonce заполнения кэша | Полный diff; SQLAlchemy и Lua, схема без изменений |
|
||||
| identity authentication/values, messaging values | NUL и не-ASCII Basic | Полный diff; ошибки по существующему контракту |
|
||||
| attachments images.py и png.py | Проверка IDAT, исходная tRNS глубина, tiles памяти | Полный diff; OTel S3/worker не изменён |
|
||||
| infra/haproxy/haproxy.cfg | JSON escaping request_id в 502/503/504 | Полный diff |
|
||||
| infra/rabbitmq/definitions.json | delivery-limit=-1 | Сохранено описание lab6 и существующая топология/DLX |
|
||||
| student-tests (все пути inventory) | Регрессии источника | Сохранены OTelJobObserver/provider ЛР6; прямые handle_job получают observer. Boundary PNG генерируются локально, без зависимости от evidence ЛР5; default project/port заменены на ЛР6 |
|
||||
| openspec/specs (10 capabilities) | 11 изменённых requirements | Полные delta blocks, исходные префиксы capabilities сохранены |
|
||||
| openspec/config.yaml | Версии SQLAlchemy/Alembic, provenance | Применимые строки влиты, контекст ЛР6 сохранён |
|
||||
|
||||
## Неприменимые артефакты
|
||||
|
||||
AGENTS.md, REPORT.md и evidence/README.md источника относятся к ЛР5 и не заменяют документы ЛР6. Результаты evidence источника относятся к другому приложению/SHA и не копируются как доказательство ЛР6. Исполняемая логика двух targeted.py адаптирована в student-tests/tools/forward_runtime.py; их файлы результатов не импортированы. Четыре новых source OpenSpec archives — история выполненных этапов ЛР5; их требования перенесены объединённым change `forward-lab5-published-fixes`, их завершение не выдаётся за проверку ЛР6. Каждый исключённый путь перечислен в inventory с причиной. Применимых runtime-изменений не пропущено; source diff не затрагивает Dockerfile, зависимости, Alembic или compose runtime.
|
||||
|
||||
## Документация
|
||||
|
||||
Context7 resolve для SQLAlchemy и RabbitMQ вернул `Monthly quota exceeded`. Использован официальный fallback: [SQLAlchemy 2.0 with_for_update](https://docs.sqlalchemy.org/en/20/core/selectable.html#sqlalchemy.sql.expression.GenerativeSelect.with_for_update) подтверждает read+key_share; [RabbitMQ 4.1 quorum delivery limit](https://www.rabbitmq.com/docs/4.1/quorum-queues#disabling-the-limit) содержит policy delivery-limit=-1. Новых зависимостей нет; версии остаются закреплёнными.
|
||||
|
||||
## Проверки и затронутые измерения
|
||||
|
||||
Изменение auth/cache влияет на HTTP/DB путь трека, поэтому повторяются все 15 серий с прежними параметрами; `evidence/track5` остаётся историческим результатом bc0b1620825b53fd3a3019623326ebf68cbbbeec. Новые PNG/доставка проверяются через runtime ЛР6 с включённой OTel, включая память, recovery и трассы. Статус и наблюдения будут дополнены после фактического завершения команд.
|
||||
@@ -0,0 +1,14 @@
|
||||
date: 2026-11-06T23:35:28Z commit: 97feb04b3f2a6008f636e1fdbdf284b1c97282a1
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ make check validate lint
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
.venv/bin/ruff check src student-tests scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
All checks passed!
|
||||
.venv/bin/ruff format --check src student-tests scripts/obs_cost_summary.py scripts/obs_cost.py scripts/obs_incidents.py scripts/obs_recovery.py scripts/capture_evidence.py alembic scripts/scaling.py tools scripts/probe.py scripts/limits.py scripts/lab4_scenarios.py scripts/lab4_seed.py scripts/upload_memory.py scripts/reconcile_check.py scripts/reconcile_track.py scripts/make_images.py scripts/pipeline_suite.py scripts/pipeline_evidence.py
|
||||
216 files already formatted
|
||||
.venv/bin/ty check src student-tests alembic
|
||||
All checks passed!
|
||||
exit_code: 0 elapsed_seconds: 0.590
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,78 @@
|
||||
date: 2026-11-06T23:32:01Z commit: 97feb04b3f2a6008f636e1fdbdf284b1c97282a1
|
||||
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab6", "LB_HTTP_PORT": "18086", "LB_STATS_PORT": "26085", "BASE_URL": "http://127.0.0.1:18086", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
||||
$ 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 1016 items / 19 deselected / 997 selected
|
||||
|
||||
student-tests/adapters/test_rabbitmq.py ..... [ 0%]
|
||||
student-tests/adapters/test_s3_storage.py ... [ 0%]
|
||||
student-tests/api/test_access.py ......... [ 1%]
|
||||
student-tests/api/test_attachments.py .................................. [ 5%]
|
||||
...... [ 5%]
|
||||
student-tests/api/test_bounded_contexts.py .................... [ 7%]
|
||||
student-tests/api/test_cache.py ............ [ 8%]
|
||||
student-tests/api/test_concurrency.py .... [ 9%]
|
||||
student-tests/api/test_consistency.py ........ [ 10%]
|
||||
student-tests/api/test_cost_experiment.py ... [ 10%]
|
||||
student-tests/api/test_drain.py .. [ 10%]
|
||||
student-tests/api/test_events.py ...... [ 11%]
|
||||
student-tests/api/test_http_telemetry.py . [ 11%]
|
||||
student-tests/api/test_idempotency.py ............... [ 12%]
|
||||
student-tests/api/test_instance.py .... [ 13%]
|
||||
student-tests/api/test_job_returning.py . [ 13%]
|
||||
student-tests/api/test_message_attachments.py ............. [ 14%]
|
||||
student-tests/api/test_migrations.py ................................... [ 18%]
|
||||
. [ 18%]
|
||||
student-tests/api/test_negative.py ..................................... [ 21%]
|
||||
[ 21%]
|
||||
student-tests/api/test_nul_validation.py ................. [ 23%]
|
||||
student-tests/api/test_operability.py .............. [ 25%]
|
||||
student-tests/api/test_pagination.py .................. [ 26%]
|
||||
student-tests/api/test_pipeline.py ............. [ 28%]
|
||||
student-tests/api/test_pool.py ............ [ 29%]
|
||||
student-tests/api/test_reconciler.py ........... [ 30%]
|
||||
student-tests/api/test_recovery.py ............ [ 31%]
|
||||
student-tests/api/test_sessions.py ...................... [ 33%]
|
||||
student-tests/api/test_timeout.py ........ [ 34%]
|
||||
student-tests/api/test_trace_context.py . [ 34%]
|
||||
student-tests/api/test_upload_consistency.py ......... [ 35%]
|
||||
student-tests/api/test_versioned_pipeline.py ........... [ 36%]
|
||||
student-tests/api/test_wire_format.py .. [ 37%]
|
||||
student-tests/unit/test_attachments_domain.py .......................... [ 39%]
|
||||
. [ 39%]
|
||||
student-tests/unit/test_authentication.py ............................. [ 42%]
|
||||
student-tests/unit/test_cursor.py ........... [ 43%]
|
||||
student-tests/unit/test_domain.py ...................................... [ 47%]
|
||||
.. [ 47%]
|
||||
student-tests/unit/test_haproxy_errors.py ............... [ 49%]
|
||||
student-tests/unit/test_image_inspection.py ............................ [ 52%]
|
||||
........................................................................ [ 59%]
|
||||
........................................................................ [ 66%]
|
||||
..................................................... [ 71%]
|
||||
student-tests/unit/test_job_observer.py . [ 71%]
|
||||
student-tests/unit/test_nul_inputs.py ...................... [ 74%]
|
||||
student-tests/unit/test_pipeline_domain.py ....................... [ 76%]
|
||||
student-tests/unit/test_png_memory.py ....s [ 76%]
|
||||
student-tests/unit/test_png_transparency.py ............................ [ 79%]
|
||||
........................................................................ [ 86%]
|
||||
.............................................. [ 91%]
|
||||
student-tests/unit/test_png_upload.py .. [ 91%]
|
||||
student-tests/unit/test_probe.py .............. [ 93%]
|
||||
student-tests/unit/test_reconcile_measurements.py ...... [ 93%]
|
||||
student-tests/unit/test_render_pool.py .....s. [ 94%]
|
||||
student-tests/unit/test_renderer.py .............................. [ 97%]
|
||||
student-tests/unit/test_scaling.py ..... [ 97%]
|
||||
student-tests/unit/test_session_cache.py .......... [ 98%]
|
||||
student-tests/unit/test_telemetry_platform.py ..... [ 99%]
|
||||
student-tests/unit/test_timeouts.py . [ 99%]
|
||||
student-tests/unit/test_worker_delivery.py .... [100%]
|
||||
|
||||
========== 995 passed, 2 skipped, 19 deselected in 176.45s (0:02:56) ===========
|
||||
exit_code: 0 elapsed_seconds: 179.184
|
||||
Reference in New Issue
Block a user