forked from mtusi2026/mtusi2026lab2
Lab2- оценка 5
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# check — 2026-10-07T20:31:08Z, branch solution/BVT2304-korablev
|
||||
$ python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,12 @@
|
||||
# docker — 2026-10-07T20:31:13Z, branch solution/BVT2304-korablev
|
||||
$ docker compose ps / images / health
|
||||
SERVICE IMAGE STATUS
|
||||
api mtusi-messenger:lab2 Up 13 minutes (healthy)
|
||||
postgres postgres:17.2-alpine3.21 Up 9 minutes (healthy)
|
||||
valkey valkey/valkey:8.0.2-alpine3.21 Up 10 minutes (healthy)
|
||||
|
||||
image mtusi-messenger:lab2 size=7463250 user=app
|
||||
|
||||
$ curl /health/live /health/ready
|
||||
{"status":"ok"}
|
||||
{"status":"ok"}
|
||||
@@ -0,0 +1,6 @@
|
||||
# durability — 2026-10-07T20:31:36Z, branch solution/BVT2304-korablev
|
||||
$ SHOW fsync/synchronous_commit/...
|
||||
fsync=on
|
||||
full_page_writes=on
|
||||
synchronous_commit=on
|
||||
wal_level=replica
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 2,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 10.0,
|
||||
"elapsed_seconds": 10.224,
|
||||
"concurrency": 32,
|
||||
"successful_requests": 11354,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 1110.576,
|
||||
"successful_latency_ms": {
|
||||
"p50": 27.077,
|
||||
"p95": 44.687,
|
||||
"p99": 53.944
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 2,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30.0,
|
||||
"elapsed_seconds": 30.04,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 11007,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 366.408,
|
||||
"successful_latency_ms": {
|
||||
"p50": 5.504,
|
||||
"p95": 28.791,
|
||||
"p99": 31.703
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
# migrations — 2026-10-07T20:31:14Z, branch solution/BVT2304-korablev
|
||||
$ docker compose run --rm migrate (повторный запуск)
|
||||
{"level":"INFO","msg":"migrations up to date","total":1}
|
||||
$ select * from schema_migrations
|
||||
1|0001_init.sql
|
||||
@@ -0,0 +1,16 @@
|
||||
# persistence — 2026-10-07T20:31:17Z, branch solution/BVT2304-korablev
|
||||
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd
|
||||
## StartedAt BEFORE
|
||||
api 2026-10-07T20:17:23.346707028Z
|
||||
postgres 2026-10-07T20:21:18.602507236Z
|
||||
valkey 2026-10-07T20:21:00.713703458Z
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
## StartedAt AFTER (все три перезапущены)
|
||||
api 2026-10-07T20:31:26.847094604Z
|
||||
postgres 2026-10-07T20:31:23.343062647Z
|
||||
valkey 2026-10-07T20:31:23.29843169Z
|
||||
## volume
|
||||
mtusi-lab2_pgdata
|
||||
## restart.sh напрямую (Git Bash)
|
||||
rc=0
|
||||
@@ -0,0 +1,6 @@
|
||||
# quality — 2026-10-07T20:31:10Z, branch solution/BVT2304-korablev
|
||||
$ gofmt -l . && go vet ./... && go build ./...
|
||||
gofmt -l: []
|
||||
go vet: ok
|
||||
go build: ok
|
||||
go version go1.27.1 windows/amd64
|
||||
@@ -0,0 +1,3 @@
|
||||
# smoke — 2026-10-07T20:31:08Z, branch solution/BVT2304-korablev
|
||||
$ python tests/smoke.py --base-url http://127.0.0.1:8080
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,74 @@
|
||||
[
|
||||
{
|
||||
"test": "wrong password / unknown user -> одинаковый 401 Basic",
|
||||
"status": "PASS",
|
||||
"seconds": 0.47,
|
||||
"note": "known=23ms unknown=22ms"
|
||||
},
|
||||
{
|
||||
"test": "пароль: 12..128 code points, двоеточие допустимо",
|
||||
"status": "PASS",
|
||||
"seconds": 0.12,
|
||||
"note": ""
|
||||
},
|
||||
{
|
||||
"test": "logout: 204, затем 401 на запрос и повторный logout",
|
||||
"status": "PASS",
|
||||
"seconds": 0.18,
|
||||
"note": ""
|
||||
},
|
||||
{
|
||||
"test": "токен непрозрачный, в БД только SHA-256, пароль — Argon2id",
|
||||
"status": "PASS",
|
||||
"seconds": 0.9,
|
||||
"note": ""
|
||||
},
|
||||
{
|
||||
"test": "expiry при SESSION_TTL_SECONDS=2 (api-short-ttl :8081)",
|
||||
"status": "PASS",
|
||||
"seconds": 5.67,
|
||||
"note": ""
|
||||
},
|
||||
{
|
||||
"test": "гонка регистрации одного username: ровно один 201",
|
||||
"status": "PASS",
|
||||
"seconds": 0.73,
|
||||
"note": "201x1, 409x19"
|
||||
},
|
||||
{
|
||||
"test": "rollback составной операции создания чата",
|
||||
"status": "PASS",
|
||||
"seconds": 3.56,
|
||||
"note": "xact_rollback 164 -> 167"
|
||||
},
|
||||
{
|
||||
"test": "параметризованные запросы: SQL-символы сохраняются как текст",
|
||||
"status": "PASS",
|
||||
"seconds": 0.22,
|
||||
"note": ""
|
||||
},
|
||||
{
|
||||
"test": "пагинация 250 сообщений: без потерь и повторов, курсор чужого чата -> 400",
|
||||
"status": "PASS",
|
||||
"seconds": 4.27,
|
||||
"note": "7 pages"
|
||||
},
|
||||
{
|
||||
"test": "Valkey реально кэширует сессии (TTL <= 60s), FLUSHALL не разлогинивает",
|
||||
"status": "PASS",
|
||||
"seconds": 1.76,
|
||||
"note": "keys=15 ttl=30s"
|
||||
},
|
||||
{
|
||||
"test": "отказ Valkey: API обходит кэш, logout -> 503 (не оставляет отозванный токен в кэше)",
|
||||
"status": "PASS",
|
||||
"seconds": 2.42,
|
||||
"note": "degraded requests took 1.10s total"
|
||||
},
|
||||
{
|
||||
"test": "отказ PostgreSQL: ready -> 503, бизнес-запросы 503, аноним/неизвестный токен не проходят",
|
||||
"status": "PASS",
|
||||
"seconds": 17.09,
|
||||
"note": ""
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
# student-tests — python student-tests/run_tests.py --json evidence/student-tests.json
|
||||
|
||||
PASS 0.47s wrong password / unknown user -> одинаковый 401 Basic [known=23ms unknown=22ms]
|
||||
PASS 0.12s пароль: 12..128 code points, двоеточие допустимо
|
||||
PASS 0.18s logout: 204, затем 401 на запрос и повторный logout
|
||||
PASS 0.90s токен непрозрачный, в БД только SHA-256, пароль — Argon2id
|
||||
PASS 5.67s expiry при SESSION_TTL_SECONDS=2 (api-short-ttl :8081)
|
||||
PASS 0.73s гонка регистрации одного username: ровно один 201 [201x1, 409x19]
|
||||
PASS 3.56s rollback составной операции создания чата [xact_rollback 164 -> 167]
|
||||
PASS 0.22s параметризованные запросы: SQL-символы сохраняются как текст
|
||||
PASS 4.27s пагинация 250 сообщений: без потерь и повторов, курсор чужого чата -> 400 [7 pages]
|
||||
PASS 1.76s Valkey реально кэширует сессии (TTL <= 60s), FLUSHALL не разлогинивает [keys=15 ttl=30s]
|
||||
PASS 2.42s отказ Valkey: API обходит кэш, logout -> 503 (не оставляет отозванный токен в кэше) [degraded requests took 1.10s total]
|
||||
PASS 17.09s отказ PostgreSQL: ready -> 503, бизнес-запросы 503, аноним/неизвестный токен не проходят
|
||||
|
||||
12/12 passed
|
||||
@@ -0,0 +1 @@
|
||||
see results.json -> read.pk_only
|
||||
@@ -0,0 +1,9 @@
|
||||
Limit (cost=0.42..167.46 rows=51 width=462) (actual time=0.032..0.057 rows=51 loops=1)
|
||||
Buffers: shared hit=5 read=4
|
||||
-> Index Scan using messages_chat_history_idx on messages (cost=0.42..18702.46 rows=5710 width=462) (actual time=0.030..0.050 rows=51 loops=1)
|
||||
Index Cond: ((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-06-16 00:00:00.729+00'::timestamp with time zone, '816028d8-560b-edb9-b9ae-2bfe37b74505'::uuid)))
|
||||
Buffers: shared hit=5 read=4
|
||||
Planning:
|
||||
Buffers: shared hit=151 read=1
|
||||
Planning Time: 1.206 ms
|
||||
Execution Time: 0.107 ms
|
||||
@@ -0,0 +1,361 @@
|
||||
{
|
||||
"started_at": "2026-10-07T21:18:58+00:00",
|
||||
"environment": {
|
||||
"docker_cpus": 22,
|
||||
"docker_mem_gib": 15.4,
|
||||
"docker_os": "Docker Desktop",
|
||||
"postgres": "17.2",
|
||||
"shared_buffers": "128MB",
|
||||
"work_mem": "4MB"
|
||||
},
|
||||
"dataset": {
|
||||
"messages": 110025,
|
||||
"chats": 2021,
|
||||
"users": 2000,
|
||||
"max_chat": 60000,
|
||||
"median_chat": 10,
|
||||
"avg_text_chars": 421,
|
||||
"max_text_chars": 1984,
|
||||
"table_mb": 64.7,
|
||||
"seed_seconds": 4.1
|
||||
},
|
||||
"read": {
|
||||
"pk_only": {
|
||||
"big_first_page": {
|
||||
"exec_ms_median": 11.866,
|
||||
"exec_ms_min": 10.706,
|
||||
"exec_ms_max": 13.437,
|
||||
"planning_ms_median": 0.129,
|
||||
"rows": 51,
|
||||
"shared_hit": 6826,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Gather Merge -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_keyset": {
|
||||
"exec_ms_median": 9.495,
|
||||
"exec_ms_min": 8.872,
|
||||
"exec_ms_max": 10.584,
|
||||
"planning_ms_median": 0.114,
|
||||
"rows": 51,
|
||||
"shared_hit": 6768,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Gather Merge -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_offset": {
|
||||
"exec_ms_median": 48.697,
|
||||
"exec_ms_min": 45.498,
|
||||
"exec_ms_max": 54.401,
|
||||
"planning_ms_median": 0.124,
|
||||
"rows": 51,
|
||||
"shared_hit": 6826,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Gather Merge -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"medium_first_page": {
|
||||
"exec_ms_median": 9.692,
|
||||
"exec_ms_min": 8.654,
|
||||
"exec_ms_max": 11.999,
|
||||
"planning_ms_median": 0.126,
|
||||
"rows": 51,
|
||||
"shared_hit": 6738,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"small_first_page": {
|
||||
"exec_ms_median": 9.674,
|
||||
"exec_ms_min": 8.77,
|
||||
"exec_ms_max": 10.79,
|
||||
"planning_ms_median": 0.137,
|
||||
"rows": 14,
|
||||
"shared_hit": 6738,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
}
|
||||
},
|
||||
"chat_id": {
|
||||
"big_first_page": {
|
||||
"exec_ms_median": 13.729,
|
||||
"exec_ms_min": 13.19,
|
||||
"exec_ms_max": 14.689,
|
||||
"planning_ms_median": 0.124,
|
||||
"rows": 51,
|
||||
"shared_hit": 9900,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Gather Merge -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_keyset": {
|
||||
"exec_ms_median": 9.317,
|
||||
"exec_ms_min": 8.088,
|
||||
"exec_ms_max": 10.636,
|
||||
"planning_ms_median": 0.137,
|
||||
"rows": 51,
|
||||
"shared_hit": 3733,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Sort -> Bitmap Heap Scan -> Bitmap Index Scan(t2_ix)",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_offset": {
|
||||
"exec_ms_median": 50.228,
|
||||
"exec_ms_min": 48.063,
|
||||
"exec_ms_max": 69.066,
|
||||
"planning_ms_median": 0.146,
|
||||
"rows": 51,
|
||||
"shared_hit": 9900,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Gather Merge -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"medium_first_page": {
|
||||
"exec_ms_median": 0.417,
|
||||
"exec_ms_min": 0.305,
|
||||
"exec_ms_max": 0.608,
|
||||
"planning_ms_median": 0.057,
|
||||
"rows": 51,
|
||||
"shared_hit": 129,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Sort -> Bitmap Heap Scan -> Bitmap Index Scan(t2_ix)",
|
||||
"runs": 20
|
||||
},
|
||||
"small_first_page": {
|
||||
"exec_ms_median": 0.042,
|
||||
"exec_ms_min": 0.034,
|
||||
"exec_ms_max": 0.084,
|
||||
"planning_ms_median": 0.054,
|
||||
"rows": 14,
|
||||
"shared_hit": 5,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Sort -> Index Scan(t2_ix)",
|
||||
"runs": 20
|
||||
}
|
||||
},
|
||||
"created_at_id": {
|
||||
"big_first_page": {
|
||||
"exec_ms_median": 0.045,
|
||||
"exec_ms_min": 0.038,
|
||||
"exec_ms_max": 0.094,
|
||||
"planning_ms_median": 0.051,
|
||||
"rows": 51,
|
||||
"shared_hit": 29,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Index Scan(t2_ix)",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_keyset": {
|
||||
"exec_ms_median": 0.064,
|
||||
"exec_ms_min": 0.05,
|
||||
"exec_ms_max": 0.096,
|
||||
"planning_ms_median": 0.055,
|
||||
"rows": 51,
|
||||
"shared_hit": 70,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Index Scan(t2_ix)",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_offset": {
|
||||
"exec_ms_median": 51.115,
|
||||
"exec_ms_min": 49.001,
|
||||
"exec_ms_max": 56.033,
|
||||
"planning_ms_median": 0.136,
|
||||
"rows": 51,
|
||||
"shared_hit": 12977,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Gather Merge -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"medium_first_page": {
|
||||
"exec_ms_median": 0.368,
|
||||
"exec_ms_min": 0.307,
|
||||
"exec_ms_max": 0.902,
|
||||
"planning_ms_median": 0.04,
|
||||
"rows": 51,
|
||||
"shared_hit": 1336,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Index Scan(t2_ix)",
|
||||
"runs": 20
|
||||
},
|
||||
"small_first_page": {
|
||||
"exec_ms_median": 17.53,
|
||||
"exec_ms_min": 16.59,
|
||||
"exec_ms_max": 18.85,
|
||||
"planning_ms_median": 0.17,
|
||||
"rows": 14,
|
||||
"shared_hit": 12889,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
}
|
||||
},
|
||||
"chat_created_id": {
|
||||
"big_first_page": {
|
||||
"exec_ms_median": 0.041,
|
||||
"exec_ms_min": 0.033,
|
||||
"exec_ms_max": 0.078,
|
||||
"planning_ms_median": 0.044,
|
||||
"rows": 51,
|
||||
"shared_hit": 8,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Index Scan(messages_chat_history_idx)",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_keyset": {
|
||||
"exec_ms_median": 0.044,
|
||||
"exec_ms_min": 0.037,
|
||||
"exec_ms_max": 0.069,
|
||||
"planning_ms_median": 0.045,
|
||||
"rows": 51,
|
||||
"shared_hit": 9,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Index Scan(messages_chat_history_idx)",
|
||||
"runs": 20
|
||||
},
|
||||
"big_deep_offset": {
|
||||
"exec_ms_median": 54.471,
|
||||
"exec_ms_min": 50.873,
|
||||
"exec_ms_max": 56.894,
|
||||
"planning_ms_median": 0.132,
|
||||
"rows": 51,
|
||||
"shared_hit": 16054,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Gather Merge -> Sort -> Seq Scan",
|
||||
"runs": 20
|
||||
},
|
||||
"medium_first_page": {
|
||||
"exec_ms_median": 0.046,
|
||||
"exec_ms_min": 0.033,
|
||||
"exec_ms_max": 0.069,
|
||||
"planning_ms_median": 0.05,
|
||||
"rows": 51,
|
||||
"shared_hit": 9,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Index Scan(messages_chat_history_idx)",
|
||||
"runs": 20
|
||||
},
|
||||
"small_first_page": {
|
||||
"exec_ms_median": 0.036,
|
||||
"exec_ms_min": 0.028,
|
||||
"exec_ms_max": 0.047,
|
||||
"planning_ms_median": 0.041,
|
||||
"rows": 14,
|
||||
"shared_hit": 6,
|
||||
"shared_read": 0,
|
||||
"plan": "Limit -> Index Scan(messages_chat_history_idx)",
|
||||
"runs": 20
|
||||
}
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"pk_only": {
|
||||
"insert_20k_ms_median": 420.9,
|
||||
"wal_bytes_median": 4531341,
|
||||
"runs": 9,
|
||||
"secondary_index_mb": 0.0
|
||||
},
|
||||
"chat_id": {
|
||||
"insert_20k_ms_median": 482.5,
|
||||
"wal_bytes_median": 5989805,
|
||||
"runs": 9,
|
||||
"secondary_index_mb": 0.82
|
||||
},
|
||||
"created_at_id": {
|
||||
"insert_20k_ms_median": 497.6,
|
||||
"wal_bytes_median": 6234752,
|
||||
"runs": 9,
|
||||
"secondary_index_mb": 4.27
|
||||
},
|
||||
"chat_created_id": {
|
||||
"insert_20k_ms_median": 503.4,
|
||||
"wal_bytes_median": 6570551,
|
||||
"runs": 9,
|
||||
"secondary_index_mb": 6.2
|
||||
}
|
||||
},
|
||||
"backup_restore": {
|
||||
"backup_taken_at": "2026-10-07 21:19:41.540149+00",
|
||||
"dump_seconds": 0.85,
|
||||
"dump_mb": 6.9,
|
||||
"copy_out_seconds": 0.22,
|
||||
"copy_in_seconds": 0.69,
|
||||
"pg_restore_seconds": 1.03,
|
||||
"analyze_seconds": 0.5,
|
||||
"total_recovery_seconds": 2.21
|
||||
},
|
||||
"verification": {
|
||||
"checks": {
|
||||
"users": {
|
||||
"source": "2000",
|
||||
"restored": "2000",
|
||||
"match": true
|
||||
},
|
||||
"chats": {
|
||||
"source": "2021",
|
||||
"restored": "2021",
|
||||
"match": true
|
||||
},
|
||||
"chat_members": {
|
||||
"source": "5250",
|
||||
"restored": "5250",
|
||||
"match": true
|
||||
},
|
||||
"messages": {
|
||||
"source": "110025",
|
||||
"restored": "110025",
|
||||
"match": true
|
||||
},
|
||||
"schema_migrations": {
|
||||
"source": "1",
|
||||
"restored": "1",
|
||||
"match": true
|
||||
},
|
||||
"messages_checksum": {
|
||||
"source": "63211757690929886368194",
|
||||
"restored": "63211757690929886368194",
|
||||
"match": true
|
||||
},
|
||||
"per_chat_counts_md5": {
|
||||
"source": "c9923d86da3e7be8ef64323c8917e869",
|
||||
"restored": "c9923d86da3e7be8ef64323c8917e869",
|
||||
"match": true
|
||||
},
|
||||
"big_chat_history_md5": {
|
||||
"source": "e21b19ba52dca7b57c2032c5c948f9ba",
|
||||
"restored": "e21b19ba52dca7b57c2032c5c948f9ba",
|
||||
"match": true
|
||||
},
|
||||
"medium_chat_history_md5": {
|
||||
"source": "f07aa1e21b5268f1321fedf6cfb6e64a",
|
||||
"restored": "f07aa1e21b5268f1321fedf6cfb6e64a",
|
||||
"match": true
|
||||
},
|
||||
"small_chat_history_md5": {
|
||||
"source": "c58b6535cdbb7b72cc43b895cea34de6",
|
||||
"restored": "c58b6535cdbb7b72cc43b895cea34de6",
|
||||
"match": true
|
||||
},
|
||||
"sample_200_md5": {
|
||||
"source": "e2088ba6aeeb4c1a89beb667f76955e9",
|
||||
"restored": "e2088ba6aeeb4c1a89beb667f76955e9",
|
||||
"match": true
|
||||
},
|
||||
"indexes": {
|
||||
"source": "chat_members_pkey,chat_members_position_key,chat_members_user_idx,chats_pkey,messages_chat_history_idx,messages_pkey,schema_migrations_pkey,sessions_expires_idx,sessions_pkey,sessions_user_idx,users_pkey,users_username_key",
|
||||
"restored": "chat_members_pkey,chat_members_position_key,chat_members_user_idx,chats_pkey,messages_chat_history_idx,messages_pkey,schema_migrations_pkey,sessions_expires_idx,sessions_pkey,sessions_user_idx,users_pkey,users_username_key",
|
||||
"match": true
|
||||
}
|
||||
},
|
||||
"all_match": true,
|
||||
"post_backup_write_in_source": true,
|
||||
"post_backup_write_in_restored": false,
|
||||
"restored_history_plan": [
|
||||
"Limit (cost=0.42..137.32 rows=51 width=462)",
|
||||
" -> Index Scan using messages_chat_history_idx on messages (cost=0.42..14831.87 rows=5525 width=462)",
|
||||
" Index Cond: ((chat_id = '64fbbeee-3c1b-b5be-9d4f-5bd05fe83171'::uuid) AND (ROW(created_at, id) > ROW('2026-06-16 00:00:00.729+00'::timestamp with time zone, '816028d8-560b-edb9-b9ae-2bfe37b74505'::uuid)))"
|
||||
]
|
||||
},
|
||||
"finished_at": "2026-10-07T21:19:53+00:00"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# validate — 2026-10-07T21:05:25Z
|
||||
$ .venv/Scripts/python scripts/validate_openapi.py (requirements-dev.txt: openapi-spec-validator==0.7.2)
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
Reference in New Issue
Block a user