merge done project from github
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-13 10:56:52 +03:00
parent 65003b6119
commit 256d8b9035
30 changed files with 1261 additions and 46 deletions
+10 -2
View File
@@ -1,5 +1,13 @@
# Доказательства
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
local-integration.txt — фактический успешный запуск student-tests/native_verify.py:
Python 3.12, PostgreSQL 17.11, Redis 8.0.2, зависимости requirements.lock.txt.
local-explain-and-rollback.txt — реальный план SQL, повтор миграций и откат.
protected-files.sha256 — контрольные суммы неизменённых файлов skeleton.
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
Эти данные относятся к native-процессам, НЕ к Docker Compose.
Для собственного стенда сохраните вывод scripts/verify.py в compose-verification.txt.
Скрипт создаст explain-and-rollback.txt и restart-before.txt/restart-after.txt.
Публичный persistence с scripts/restart.sh запускайте отдельно на Linux/WSL.
Не добавляйте пароли, .env, токены, Authorization или дампы пользовательских данных.
Binary file not shown.
+13
View File
@@ -0,0 +1,13 @@
PASS: migrations applied twice
PASS: rollback removes partial chat
EXPLAIN: 12000 messages; cursor after row 9001; page 51
Limit (cost=0.29..8.89 rows=51 width=69) (actual time=0.017..0.048 rows=51 loops=1)
Buffers: shared hit=4
-> Index Scan using messages_history on messages (cost=0.29..507.33 rows=3006 width=69) (actual time=0.015..0.037 rows=51 loops=1)
Index Cond: ((chat_id = '2e792f72-9441-47f1-bf88-18cb19132cdb'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '1a322347-8a32-4b05-9695-5a34b1440088'::uuid)))
Buffers: shared hit=4
Planning:
Buffers: shared hit=6
Planning Time: 0.267 ms
Execution Time: 0.149 ms
PASS: history uses messages_history index
+13
View File
@@ -0,0 +1,13 @@
PASS: migrations applied twice
PASS: rollback removes partial chat
EXPLAIN: 12000 messages; cursor after row 9001; page 51
Limit (cost=0.29..13.92 rows=51 width=69) (actual time=0.010..0.021 rows=51 loops=1)
Buffers: shared hit=4
-> Index Scan using messages_history on messages (cost=0.29..805.74 rows=3012 width=69) (actual time=0.010..0.017 rows=51 loops=1)
Index Cond: ((chat_id = '72bcdf0e-3925-4d4d-b65f-d1b13c025935'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '843e3f43-24f4-4509-9082-6abb79d91871'::uuid)))
Buffers: shared hit=4
Planning:
Buffers: shared hit=6
Planning Time: 0.209 ms
Execution Time: 0.046 ms
PASS: history uses messages_history index
+27
View File
@@ -0,0 +1,27 @@
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
PASS: concurrent registration: 1 x 201, 3 x 409
PASS: Unicode password with colon
PASS: validation, cursor isolation, logout
PASS: migrations applied twice
PASS: rollback removes partial chat
EXPLAIN: 12000 messages; cursor after row 9001; page 51
Limit (cost=0.29..13.92 rows=51 width=69) (actual time=0.010..0.021 rows=51 loops=1)
Buffers: shared hit=4
-> Index Scan using messages_history on messages (cost=0.29..805.74 rows=3012 width=69) (actual time=0.010..0.017 rows=51 loops=1)
Index Cond: ((chat_id = '72bcdf0e-3925-4d4d-b65f-d1b13c025935'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '843e3f43-24f4-4509-9082-6abb79d91871'::uuid)))
Buffers: shared hit=4
Planning:
Buffers: shared hit=6
Planning Time: 0.209 ms
Execution Time: 0.046 ms
PASS: history uses messages_history index
PASS: actual API/PostgreSQL/Redis process restart preserves data and existing tokens
PASS: actual Redis cache key exists
PASS: Redis outage fallback 0.013s; invalid token rejected
PASS: PostgreSQL outage 503 0.009s; live 200, ready 503
PASS: short session expires (expected configured TTL=2)
PASS: native integration suite (Docker not available)
+14
View File
@@ -0,0 +1,14 @@
2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e CONTRIBUTING.md
c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971 COURSE.md
59a70ede89ba308a782f0695f8441dfa4b75479d155966303ab86addc36f8d1f MAINTAINERS.md
4f14a97911bd3ea335868d37fec187d1738b42f91a7d4780d33b721edf25b6dc README.md
72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f contracts/README.md
0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45 contracts/examples.json
7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8 contracts/infrastructure.json
cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4 contracts/openapi.json
d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4 lab.json
e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5 tests/README.md
8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d tests/client.py
6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933 tests/load.py
1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b tests/resilience.py
52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db tests/smoke.py
+3
View File
@@ -0,0 +1,3 @@
/lab2-api-1 2026-11-13T07:24:06.731303647Z
/lab2-cache-1 2026-11-13T07:24:06.443371797Z
/lab2-db-1 2026-11-13T07:24:06.5139748Z
+3
View File
@@ -0,0 +1,3 @@
/lab2-api-1 2026-11-13T07:19:48.194614314Z
/lab2-cache-1 2026-11-13T07:15:56.963253379Z
/lab2-db-1 2026-11-13T07:15:57.286672521Z