Prepare verified laboratory 2 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:31:17 +03:00
parent 65003b6119
commit 62d7c2023c
85 changed files with 9426 additions and 38 deletions
+16
View File
@@ -0,0 +1,16 @@
# Closure review: VP laboratories 2–4
Проверено независимым агентом 12.11.2026. Объём — закрытие ранее найденных P1/P2 в текущих исходниках и operational helpers; полного повторного аудита не проводилось.
**Подтверждённых оставшихся ошибок в проверенном объёме не обнаружено.**
- Compose wrappers закрепляют файл и проект через явные `-f`/`-p`; research lab3 и reconciliation используют отдельные случайные проекты.
- Reconciliation runner создаёт отдельные volumes, а destructive integration дополнительно требует пустые DB/bucket. Штатный профиль включает reconciliation, S3 metadata и foreign-membership regression.
- Fixture cleanup проверяет чужое членство и подтверждает SQL COMMIT до удаления S3-оригиналов. Отказ SQL сохраняет байты.
- Game guards разрешают измерения только при exit status `1`; активная игра и неизвестное состояние блокируют запуск.
- Evidence сохраняется в отдельных каталогах запуска; итоговый PASS появляется после cleanup. Основная ошибка и ошибки уборки учитываются отдельно.
- Monitor имеет немедленный rejection handler и завершается до cleanup. Rolling workload joined при отказе; замены проверяют readiness, продолжающиеся успешные записи и незавершённость нагрузки.
- JSON middleware отвергает некорректный UTF-8 до декодирования; regression присутствует во всех трёх лабораторных.
- В прочитанных acceptance2/3 уже используются `$fixture$` и PASS после cleanup. Их новое выполнение в это ревью не входило.
Проверка выполнена чтением кода, текущего плана и diff. Стенды, тесты, сборки и измерительные helpers не запускались; результаты автора повторно не подтверждались. Секреты и `.local` не читались. Единственное изменение ревьюера — этот файл.
+69
View File
@@ -0,0 +1,69 @@
14b7f3ced177639c80c8c9b113bef7d4783940b628f14d8bb6fc634eaa3d19e0 .dockerignore
a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8 .github/workflows/contracts.yml
b85d1e62d1f6d9c478cd1ce31c123c31c09a9c8b0565cf236f39a928a20a640b .gitignore
314ecc42f648282ee0f8b758027f3bf8c1860679e388a1574ed88b07b70c400b Dockerfile
668b2449e19b364092611561a28ca2cc83b6c8b35fde1c52ecfd2072795e6ca0 Makefile
215578dee14bcef1b66759a68543083e0a624611efcdb785197307b50cb7725d backend/.golangci.yaml
94e1e1caa8bcd1243b2ff16db3498a672b1e0202088812dc2839785a34d47794 backend/cmd/app/main.go
90459ce1de93d68af72228f24601279d33fe2384bebe5ada57a5bd15b28dd7dd backend/codegen.yaml
2063990a62d8b5eb00a88375eea46821e5ca197e8eaa016e70468fbc5e296bd2 backend/db/migrate.go
057db27dac8043c3142c9530f2e699f312161813dfe829f043915ee7c7e0f08e backend/db/migrations/00001_core.sql
bd945de5a2ad6d762e959888be4907d0927df524d535c9b5f4a80672f9e921fb backend/db/sqlc/queries/core.sql
803b161e063692398c93152b11a08f9e42e1bf3c72a1e64553b82c494545fd10 backend/db/sqlc/sqlc.yaml
62e951c7ddec4b5d1a4b643522ac4ecc25baba71ac71c8d3c3c65c9fd5bb47f5 backend/go.mod
c80befc84323b33479f9ea9116d68ab1e3874597642ce0359c9dfe4733a568d9 backend/go.sum
419dea68c3ac7b23b03bc1f5308516c21db04ec971451854ec1bdb71a64f0051 backend/internal/adapter/handler/api.gen.go
5fdab8ab19080c0b8662b1bbae561fa00c5c1971dc3dd352419dba23f0920242 backend/internal/adapter/handler/api.go
183217c9d66dcfb08d3da92fda01df509484bd3146b36587d84e37fbda5f3b4b backend/internal/adapter/handler/auth.go
343035190d2e13beaeafd904a54e6f62226dc7d92bd6ae78c1b8bd39d42f60b0 backend/internal/adapter/handler/errors.go
b662058ebc59010f30d21da12404837aa2329fe5e5590761efdd9140c1d24e9c backend/internal/adapter/handler/gate.go
f7938bdeb5617ed3611303c54818000de9861dde5915fa2c6fa0f74e1fa33268 backend/internal/adapter/handler/gate_test.go
f1961eebd1c3b21cdcf4af67be7882da47c85aaba969cc0d8eca73844a26a342 backend/internal/adapter/handler/handler.go
964aee4c74d75f1249d2e15d10a4fcbfe0b8b7e4a02a41474911d12ec163bd0c backend/internal/adapter/handler/json.go
64665f4273b7d676de8a3c17b20e71022a6295d16d89c3596aa24a005e26c227 backend/internal/adapter/handler/middleware.go
5cd375e5a0db8cc3596293d323e635b86fef22d8ec680f310ab5a460f8176f64 backend/internal/adapter/handler/stats.go
90a9e5400916860efb247b075bcd44aa2180f52aa753387ad6eb492d7a94aa0d backend/internal/adapter/handler/utf8_test.go
94643bf4b61ca390f8dd56a241e02e1325a994fc40887ffa0e2b8f8e5aebb4c7 backend/internal/adapter/password/argon.go
513a218e594616b5c594cca27bf1652d5321b0d567402303e1e103a19bbb63d8 backend/internal/adapter/repository/postgres/queries/core.sql.go
4863732830879d4162be215ff245375b953359de23bcd821ed7abc5c32a36c0f backend/internal/adapter/repository/postgres/queries/db.go
6db96a40a3db0f00e3d6adcc4c70d244261b4ee9c9db314f8b1b38b39987feb9 backend/internal/adapter/repository/postgres/queries/models.go
d7be13d3654ea9bbcb93540d0b5015e291277284bd97894045b36ab6f9dfa25f backend/internal/adapter/repository/postgres/repository.go
93802954db2c8eda3782acc71bca817947fd556986d3f6552c78c4b346d988ca backend/internal/application/usecase/auth.go
c82c05555673b4bf831ad910652ef4c184419f1927e38a5d5fb586f184a4e481 backend/internal/application/usecase/messenger.go
2a29236ab57ad3f56974709f870a1daa9040a097beda0bebe48d2b7698145cad backend/internal/config/config.go
d6f02d9b4ab2dfa2ac92d85197142b39f7410d36ab66aa2388b6140c14379eff backend/internal/config/config_test.go
3f7454f48ef442c277fd2741ce5aeeccf03d590bd2d31b9b89fa39f0ba05de7f backend/internal/domain/model/chat.go
bd55666ad90ecaba3b0a1496ba5499580c0c67446284ce0b83e4dd7633cecbae backend/internal/domain/model/errors.go
68d4bd9556a6f8b6704845bd68b8ed93b88c8a6f91cdcb75e5dd298f0e5d24ae backend/internal/domain/model/message.go
77bb8767ac1352bd3551e724eaaeaad4fe93eae248cc8c3008ee8b1c08adddca backend/internal/domain/model/model_test.go
cd6a07579bff01aa0d8a11b34fd000a804142b321cef302d386bdb95e9c7f953 backend/internal/domain/model/page.go
834042a6cefa3cd5c04c778b69ac7289676fbb2cec097196d236c547f4c3cd2c backend/internal/domain/model/postgres_text_test.go
5e548c33092d220408ce060fc498e3ef4f84358d7503fd679984f649bea46792 backend/internal/domain/model/text.go
c20c8b8d8a9c0327a3a24afd74f3051d78caed1d2f0851baf340ef61ac502a92 backend/internal/domain/model/user.go
465c1a1f19075b6f8301eef8dbd7fd9a8d20255716d72c97e946db04c2850dda backend/internal/domain/port/auth.go
4402ef91f87910199103f059b654d362106059a4f0ee89e9cadfe7e6d49fa0ee backend/internal/domain/repository/repository.go
d839f31015eee692065c31d2538a4cb4c841b0d89e690f0ab8baf80168510556 backend/pkg/logger/logger.go
3ce957e4e45a94453610217007a9dbf0e8b9723346ff9cc8a3e5aa8ff3676527 backend/pkg/server/server.go
bce35d0c70a825914ad0ff3a0bcdf6e7fbf520b399c576f0d75361068efd2e25 compose.example.yaml
09eafa3bf3b4be0e2a40a619391d9e99cbf077b7167bc05efe5282fd43d3de64 compose.yaml
0a71cec72903af556df85f939c7e347fc73a86a1a4ffc39fb9c8ded169b7df45 contracts/examples.json
7efd8b1e6023ddc3ff9747d4f663ee772c1293b782bb9e74bd1c3fbcca9c68d8 contracts/infrastructure.json
cff3aa6b34855b573401b0ac393fdfe327b6a12da51f315fbbd67168ce3762c4 contracts/openapi.json
633c7b0f881173920b61a67c029e9bb4b59a385e5e34ab1b3d3254556602d554 examples/requests.http
d63eac8df585a63153cff0c632e6b81b2088316b53d531eecc856ec1da7855e4 lab.json
4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525 requirements-dev.txt
01ea196f3a6db22c501209d7496bc774b4b04687fd5f30850acd863545852466 scripts/bootstrap.ts
7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671 scripts/check_contract.py
cf202f8e11de3a0c32b99f6308086e3e334f7e7ee42175259104b9afef24a36e scripts/compose.sh
0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b scripts/restart.example.sh
a5c632259396bcbc027c1e449dcd8f056aee098a2a861d4455b4e01ac167df62 scripts/restart.sh
4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54 scripts/validate_openapi.py
cd56ac8b07663f72ba5b97a30ea9ecf35b2625cf6c218259d4465ac7ce0c8a4b student-tests/acceptance.ts
1a69e392a1b0fc28869cc45c564225fe5e8cb8a784cf0a6ac1cbf3335c521205 student-tests/plot_research.py
de950d3b75e4ad1a760c121533e06390c84574f7dd0b53c0eaa742ab6d5c2f38 student-tests/requirements-plots.txt
29d44ba17c7fc65470d9893b3e2f4b03152670dae771e82d161535a54d301e14 student-tests/research.ts
9dff91ee5a9876d5c4758d66a65b3b42c29a6d3071c7e510babae561a84cf35b student-tests/wait.ts
8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d tests/client.py
6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933 tests/load.py
1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b tests/resilience.py
52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db tests/smoke.py
+1
View File
@@ -0,0 +1 @@
PASS lab2: 336 HTTP assertions, registration race, rollback, pagination, authentication; fixture cleanup completed
+117
View File
@@ -0,0 +1,117 @@
#1 [internal] load local bake definitions
#1 reading from stdin 1.04kB done
#1 DONE 0.0s
#2 [api internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.78kB 0.0s done
#2 transferring dockerfile: 1.78kB 0.0s done
#2 DONE 0.2s
#3 [migrate] resolve image config for docker-image://docker.io/docker/dockerfile:1
#3 DONE 1.1s
#4 [migrate] docker-image://docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e
#4 resolve docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e
#4 resolve docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e 0.3s done
#4 resolve docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e 0.3s done
#4 CACHED
#5 [migrate internal] load metadata for docker.io/library/golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d
#5 DONE 1.2s
#6 [api internal] load metadata for gcr.io/distroless/static-debian13:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
#6 DONE 1.7s
#7 [api internal] load .dockerignore
#7 transferring context: 226B 0.0s done
#7 transferring context: 226B 0.0s done
#7 DONE 0.2s
#8 [api internal] load build context
#8 DONE 0.0s
#9 [api stage-1 1/2] FROM gcr.io/distroless/static-debian13:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
#9 resolve gcr.io/distroless/static-debian13:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
#9 ...
#8 [migrate internal] load build context
#8 DONE 0.0s
#9 [migrate stage-1 1/2] FROM gcr.io/distroless/static-debian13:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
#9 resolve gcr.io/distroless/static-debian13:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3 0.5s done
#9 resolve gcr.io/distroless/static-debian13:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3 0.5s done
#9 DONE 0.6s
#10 [migrate build 1/4] FROM docker.io/library/golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d
#10 resolve docker.io/library/golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d 0.5s done
#10 DONE 0.7s
#8 [api internal] load build context
#8 transferring context: 112.68kB 0.1s done
#8 transferring context: 112.68kB 0.1s done
#8 DONE 0.2s
#11 [api build 2/4] WORKDIR /src
#11 CACHED
#12 [api build 3/4] COPY backend/ ./
#12 DONE 0.8s
#13 [api build 4/4] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build go build -trimpath -ldflags='-s -w' -o /out/messenger ./cmd/app
#13 DONE 16.2s
#9 [migrate stage-1 1/2] FROM gcr.io/distroless/static-debian13:nonroot@sha256:e2e927ec666bae08560abb3c55d0659eceabb657f56b6782ab500a9fc7f555e3
#9 CACHED
#14 [api stage-1 2/2] COPY --from=build /out/messenger /messenger
#14 DONE 0.8s
#15 [api] exporting to image
#15 exporting layers
#15 exporting layers 1.5s done
#15 exporting manifest sha256:420d8986fe42013b348ce01966dcbc7423d8a3f886ba44061e8b0da274562a13
#15 exporting manifest sha256:420d8986fe42013b348ce01966dcbc7423d8a3f886ba44061e8b0da274562a13 0.5s done
#15 exporting config sha256:a5eaf732ed83ff935474f01ae795b3a399dd39d6900a9dbab4e93835b046c08c
#15 exporting config sha256:a5eaf732ed83ff935474f01ae795b3a399dd39d6900a9dbab4e93835b046c08c 0.4s done
#15 exporting attestation manifest sha256:28f4f8ef7b08bcced8fb5c84607544d308361905b34930e8e46d062abc2ebb65
#15 exporting attestation manifest sha256:28f4f8ef7b08bcced8fb5c84607544d308361905b34930e8e46d062abc2ebb65 0.5s done
#15 exporting manifest list sha256:d580b7aada585a3aa02767e4bf83fd399a066d1900678bc39754933ccb6b2d35
#15 exporting manifest list sha256:d580b7aada585a3aa02767e4bf83fd399a066d1900678bc39754933ccb6b2d35 0.4s done
#15 naming to docker.io/library/vp-medvedev-lab2:local 0.1s done
#15 unpacking to docker.io/library/vp-medvedev-lab2:local
#15 unpacking to docker.io/library/vp-medvedev-lab2:local 0.5s done
#15 DONE 4.5s
#16 [migrate] exporting to image
#16 exporting layers 1.5s done
#16 exporting manifest sha256:aa34773f09faf99cb400ff24f73cab2f91966b0ad5e2c1a2d9dd6af5470a3e8e 0.4s done
#16 exporting config sha256:7cec2ad23b8284ded9176f3a19141018829c073415ed867a6f1572b5b6d7a7b9 0.4s done
#16 exporting attestation manifest sha256:b88219ef4264efc86f38e0a22aa73c6bfa543915b10b1a4d739f108f66c031fe 0.6s done
#16 exporting manifest list sha256:008fd5996ed6259d260e67b09beb4089a2752931818a60cc5a4a9ef69269f90d 0.4s done
#16 naming to docker.io/library/vp-medvedev-lab2:local 0.1s done
#16 unpacking to docker.io/library/vp-medvedev-lab2:local 0.5s done
#16 DONE 4.5s
#17 [migrate] resolving provenance for metadata file
#17 DONE 0.0s
#18 [api] resolving provenance for metadata file
#18 DONE 0.0s
Image vp-medvedev-lab2:local Building
Image vp-medvedev-lab2:local Building
Image vp-medvedev-lab2:local Built
Image vp-medvedev-lab2:local Built
Container vp-lab2-medvedev-postgres-1 Running
Container vp-lab2-medvedev-valkey-1 Running
Container vp-lab2-medvedev-migrate-1 Recreate
Container vp-lab2-medvedev-migrate-1 Recreated
Container vp-lab2-medvedev-api-1 Recreate
Container vp-lab2-medvedev-api-1 Recreated
Container vp-lab2-medvedev-postgres-1 Waiting
Container vp-lab2-medvedev-postgres-1 Healthy
Container vp-lab2-medvedev-migrate-1 Starting
Container vp-lab2-medvedev-migrate-1 Started
Container vp-lab2-medvedev-migrate-1 Waiting
Container vp-lab2-medvedev-migrate-1 Exited
Container vp-lab2-medvedev-api-1 Starting
Container vp-lab2-medvedev-api-1 Started
+2
View File
@@ -0,0 +1,2 @@
/mnt/data/home/bench-saves/vp-labs-vuIKezo9/lab2/.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
View File
+60
View File
@@ -0,0 +1,60 @@
Collecting openapi-spec-validator==0.7.2 (from -r requirements-dev.txt (line 2))
Downloading openapi_spec_validator-0.7.2-py3-none-any.whl.metadata (5.7 kB)
Collecting jsonschema<5.0.0,>=4.18.0 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading jsonschema-4.26.0-py3-none-any.whl.metadata (7.6 kB)
Collecting jsonschema-path<0.4.0,>=0.3.1 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading jsonschema_path-0.3.4-py3-none-any.whl.metadata (4.3 kB)
Collecting lazy-object-proxy<2.0.0,>=1.7.1 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading lazy_object_proxy-1.13.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (5.1 kB)
Collecting openapi-schema-validator<0.7.0,>=0.6.0 (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading openapi_schema_validator-0.6.3-py3-none-any.whl.metadata (5.4 kB)
Collecting attrs>=22.2.0 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading attrs-26.1.0-py3-none-any.whl.metadata (8.8 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl.metadata (2.9 kB)
Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading referencing-0.37.0-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.25.0 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
Collecting PyYAML>=5.1 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (2.4 kB)
Collecting pathable<0.5.0,>=0.4.1 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading pathable-0.4.4-py3-none-any.whl.metadata (1.8 kB)
Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading referencing-0.36.2-py3-none-any.whl.metadata (2.8 kB)
Collecting requests<3.0.0,>=2.31.0 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading requests-2.34.2-py3-none-any.whl.metadata (4.8 kB)
Collecting rfc3339-validator (from openapi-schema-validator<0.7.0,>=0.6.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading rfc3339_validator-0.1.4-py2.py3-none-any.whl.metadata (1.5 kB)
Collecting charset_normalizer<4,>=2 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (46 kB)
Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading idna-3.20-py3-none-any.whl.metadata (7.2 kB)
Collecting urllib3<3,>=1.26 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading urllib3-2.8.0-py3-none-any.whl.metadata (7.4 kB)
Collecting certifi>=2023.5.7 (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading certifi-2026.10.23-py3-none-any.whl.metadata (2.5 kB)
Collecting six (from rfc3339-validator->openapi-schema-validator<0.7.0,>=0.6.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2))
Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Downloading openapi_spec_validator-0.7.2-py3-none-any.whl (39 kB)
Downloading jsonschema-4.26.0-py3-none-any.whl (90 kB)
Downloading jsonschema_path-0.3.4-py3-none-any.whl (14 kB)
Downloading lazy_object_proxy-1.13.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (70 kB)
Downloading openapi_schema_validator-0.6.3-py3-none-any.whl (8.8 kB)
Downloading pathable-0.4.4-py3-none-any.whl (9.6 kB)
Downloading referencing-0.36.2-py3-none-any.whl (26 kB)
Downloading requests-2.34.2-py3-none-any.whl (73 kB)
Downloading charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (255 kB)
Downloading idna-3.20-py3-none-any.whl (69 kB)
Downloading urllib3-2.8.0-py3-none-any.whl (135 kB)
Downloading attrs-26.1.0-py3-none-any.whl (67 kB)
Downloading certifi-2026.10.23-py3-none-any.whl (135 kB)
Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl (18 kB)
Downloading pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (794 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 794.2/794.2 kB 5.9 MB/s 0:00:00
Downloading rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (371 kB)
Downloading rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: urllib3, six, rpds-py, PyYAML, pathable, lazy-object-proxy, idna, charset_normalizer, certifi, attrs, rfc3339-validator, requests, referencing, jsonschema-specifications, jsonschema-path, jsonschema, openapi-schema-validator, openapi-spec-validator
Successfully installed PyYAML-6.0.3 attrs-26.1.0 certifi-2026.10.23 charset_normalizer-3.5.2 idna-3.20 jsonschema-4.26.0 jsonschema-path-0.3.4 jsonschema-specifications-2025.9.1 lazy-object-proxy-1.13.0 openapi-schema-validator-0.6.3 openapi-spec-validator-0.7.2 pathable-0.4.4 referencing-0.36.2 requests-2.34.2 rfc3339-validator-0.1.4 rpds-py-2026.9.1 six-1.17.0 urllib3-2.8.0
+1
View File
@@ -0,0 +1 @@
PASS lab2: 368 HTTP assertions, registration race, rollback, pagination, authentication; fixture cleanup completed
View File
+13
View File
@@ -0,0 +1,13 @@
? backend/cmd/app [no test files]
? backend/db [no test files]
ok backend/internal/adapter/handler 1.039s
? backend/internal/adapter/password [no test files]
? backend/internal/adapter/repository/postgres [no test files]
? backend/internal/adapter/repository/postgres/queries [no test files]
? backend/internal/application/usecase [no test files]
ok backend/internal/config 1.020s
ok backend/internal/domain/model 1.016s
? backend/internal/domain/port [no test files]
? backend/internal/domain/repository [no test files]
? backend/pkg/logger [no test files]
? backend/pkg/server [no test files]
+1
View File
@@ -0,0 +1 @@
0 issues.
+3
View File
@@ -0,0 +1,3 @@
/mnt/data/home/bench-saves/vp-labs-vuIKezo9/lab2/.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:28202"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
+41
View File
@@ -0,0 +1,41 @@
Collecting matplotlib
Downloading matplotlib-3.11.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (80 kB)
Collecting contourpy>=1.0.1 (from matplotlib)
Downloading contourpy-1.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Collecting cycler>=0.10 (from matplotlib)
Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.28.2 (from matplotlib)
Downloading fonttools-4.68.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (139 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib)
Downloading kiwisolver-1.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (5.2 kB)
Collecting numpy>=1.25 (from matplotlib)
Downloading numpy-2.5.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (6.6 kB)
Collecting packaging>=20.0 (from matplotlib)
Downloading packaging-26.3-py3-none-any.whl.metadata (3.5 kB)
Collecting pillow>=9 (from matplotlib)
Downloading pillow-13.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (9.1 kB)
Collecting pyparsing>=3 (from matplotlib)
Downloading pyparsing-3.3.3-py3-none-any.whl.metadata (5.9 kB)
Collecting python-dateutil>=2.7 (from matplotlib)
Downloading python_dateutil-4.0.0-py3-none-any.whl.metadata (7.3 kB)
Collecting tzdata (from python-dateutil>=2.7->matplotlib)
Downloading tzdata-2026.6-py2.py3-none-any.whl.metadata (1.4 kB)
Downloading matplotlib-3.11.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (11.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.0/11.0 MB 7.9 MB/s 0:00:01
Downloading contourpy-1.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (384 kB)
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.68.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (5.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.4/5.4 MB 8.3 MB/s 0:00:00
Downloading kiwisolver-1.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 7.9 MB/s 0:00:00
Downloading numpy-2.5.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.7/16.7 MB 9.2 MB/s 0:00:01
Downloading packaging-26.3-py3-none-any.whl (129 kB)
Downloading pillow-13.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 7.8 MB/s 0:00:00
Downloading pyparsing-3.3.3-py3-none-any.whl (126 kB)
Downloading python_dateutil-4.0.0-py3-none-any.whl (92 kB)
Downloading tzdata-2026.6-py2.py3-none-any.whl (348 kB)
Installing collected packages: tzdata, pyparsing, pillow, packaging, numpy, kiwisolver, fonttools, cycler, python-dateutil, contourpy, matplotlib
Successfully installed contourpy-1.4.0 cycler-0.12.1 fonttools-4.68.0 kiwisolver-1.5.1 matplotlib-3.11.2 numpy-2.5.4 packaging-26.3 pillow-13.0.0 pyparsing-3.3.3 python-dateutil-4.0.0 tzdata-2026.6
+1
View File
@@ -0,0 +1 @@
Ready: 1 API process(es)
+1
View File
@@ -0,0 +1 @@
Ready: 1 API process(es)
+1
View File
@@ -0,0 +1 @@
FAIL: POST /api/v1/users: expected [201], received 400
@@ -0,0 +1,145 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3795.18,
"Total Cost": 3800.99,
"Plan Rows": 51,
"Plan Width": 71,
"Actual Startup Time": 5.380,
"Actual Total Time": 6.963,
"Actual Rows": 51.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 1250,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Gather Merge",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3795.18,
"Total Cost": 6877.40,
"Plan Rows": 27044,
"Plan Width": 71,
"Actual Startup Time": 5.378,
"Actual Total Time": 6.959,
"Actual Rows": 51.00,
"Actual Loops": 1,
"Disabled": false,
"Workers Planned": 1,
"Workers Launched": 1,
"Shared Hit Blocks": 1250,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2795.17,
"Total Cost": 2834.94,
"Plan Rows": 15908,
"Plan Width": 71,
"Actual Startup Time": 4.036,
"Actual Total Time": 4.038,
"Actual Rows": 51.00,
"Actual Loops": 2,
"Disabled": false,
"Sort Key": ["created_at", "id"],
"Sort Method": "top-N heapsort",
"Sort Space Used": 31,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 1250,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Workers": [
{
"Worker Number": 0,
"Sort Method": "top-N heapsort",
"Sort Space Used": 31,
"Sort Space Type": "Memory"
}
],
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": true,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.00,
"Total Cost": 2264.44,
"Plan Rows": 15908,
"Plan Width": 71,
"Actual Startup Time": 2.269,
"Actual Total Time": 3.504,
"Actual Rows": 10000.50,
"Actual Loops": 2,
"Disabled": false,
"Filter": "((chat_id = 'd5f6496b-22d2-4d83-9840-843c175d2196'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.07+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Filter": 40001,
"Shared Hit Blocks": 1235,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Workers": [
]
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 99,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.246,
"Triggers": [
],
"Execution Time": 7.009
}
]
@@ -0,0 +1,125 @@
[
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.00,
"Total Cost": 32.50,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 5.310,
"Actual Total Time": 5.310,
"Actual Rows": 0.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 6083,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 18,
"Shared Written Blocks": 16,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Subquery Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Alias": "*SELECT*",
"Startup Cost": 0.00,
"Total Cost": 32.50,
"Plan Rows": 1000,
"Plan Width": 88,
"Actual Startup Time": 0.077,
"Actual Total Time": 1.233,
"Actual Rows": 1000.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Function Scan",
"Parent Relationship": "Subquery",
"Parallel Aware": false,
"Async Capable": false,
"Function Name": "generate_series",
"Alias": "i",
"Startup Cost": 0.00,
"Total Cost": 20.00,
"Plan Rows": 1000,
"Plan Width": 112,
"Actual Startup Time": 0.076,
"Actual Total Time": 1.121,
"Actual Rows": 1000.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 24,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.102,
"Triggers": [
{
"Trigger Name": "RI_ConstraintTrigger_c_16467",
"Constraint Name": "messages_chat_id_fkey",
"Relation": "messages",
"Time": 3.453,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16472",
"Constraint Name": "messages_sender_id_fkey",
"Relation": "messages",
"Time": 3.728,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16477",
"Constraint Name": "messages_chat_id_sender_id_fkey",
"Relation": "messages",
"Time": 3.594,
"Calls": 1000
}
],
"Execution Time": 16.243
}
]
+480
View File
@@ -0,0 +1,480 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="648pt" height="252pt" viewBox="0 0 648 252" xmlns="http://www.w3.org/2000/svg" version="1.1">
<metadata>
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:date>2026-11-12T16:36:05.047255</dc:date>
<dc:format>image/svg+xml</dc:format>
<dc:creator>
<cc:Agent>
<dc:title>Matplotlib v3.11.2, https://matplotlib.org/</dc:title>
</cc:Agent>
</dc:creator>
</cc:Work>
</rdf:RDF>
</metadata>
<defs>
<style type="text/css">*{stroke-linejoin: round; stroke-linecap: butt}</style>
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 252
L 648 252
L 648 0
L 0 0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 47.501021 231.998979
L 326.1475 231.998979
L 326.1475 36.119782
L 47.501021 36.119782
z
" style="fill: #ffffff"/>
</g>
<g id="patch_3">
<path d="M 60.16677 89679.621856
L 172.751206 89679.621856
L 172.751206 45.023382
L 60.16677 45.023382
z
" clip-path="url(#p6814e01ebe)" style="fill: #6b7280"/>
</g>
<g id="patch_4">
<path d="M 200.897315 89679.621856
L 313.481751 89679.621856
L 313.481751 223.095379
L 200.897315 223.095379
z
" clip-path="url(#p6814e01ebe)" style="fill: #2563eb"/>
</g>
<g id="matplotlib.axis_1">
<g id="xtick_1">
<g id="line2d_1">
<defs>
<path id="ma83e7220dd" d="M 0 0
L 0 3.5
" style="stroke: #000000; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#ma83e7220dd" x="116.458988" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_1">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="116.458988" y="246.597416" transform="rotate(-0 116.458988 246.597416)">chat_id</text>
</g>
</g>
<g id="xtick_2">
<g id="line2d_2">
<g>
<use xlink:href="#ma83e7220dd" x="257.189533" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_2">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="257.189533" y="246.597416" transform="rotate(-0 257.189533 246.597416)">chat_id + time + id</text>
</g>
</g>
</g>
<g id="matplotlib.axis_2">
<g id="ytick_1">
<g id="line2d_3">
<defs>
<path id="meafe312f9a" d="M 0 0
L -3.5 0
" style="stroke: #000000; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#meafe312f9a" x="47.501021" y="210.31824" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_3">
<!-- $\mathdefault{10^{-1}}$ -->
<g transform="translate(17.001021 214.96824)">
<text>
<tspan x="0" y="-0.762187" style="font-size: 10px; font-family: 'DejaVu Sans'">1</tspan>
<tspan x="6.362305" y="-0.762187" style="font-size: 10px; font-family: 'DejaVu Sans'">0</tspan>
<tspan x="12.820312" y="-4.892187" style="font-size: 7px; font-family: 'DejaVu Sans'">−</tspan>
<tspan x="18.685547" y="-4.892187" style="font-size: 7px; font-family: 'DejaVu Sans'">1</tspan>
</text>
</g>
</g>
</g>
<g id="ytick_2">
<g id="line2d_4">
<g>
<use xlink:href="#meafe312f9a" x="47.501021" y="120.759377" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_4">
<!-- $\mathdefault{10^{0}}$ -->
<g transform="translate(22.901021 125.459377)">
<text>
<tspan x="0" y="-0.674688" style="font-size: 10px; font-family: 'DejaVu Sans'">1</tspan>
<tspan x="6.362305" y="-0.674688" style="font-size: 10px; font-family: 'DejaVu Sans'">0</tspan>
<tspan x="12.820312" y="-4.804688" style="font-size: 7px; font-family: 'DejaVu Sans'">0</tspan>
</text>
</g>
</g>
</g>
<g id="ytick_3">
<g id="line2d_5">
<defs>
<path id="mea213b5217" d="M 0 0
L -2 0
" style="stroke: #000000; stroke-width: 0.6"/>
</defs>
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="230.186761" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_4">
<g id="line2d_6">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="224.191083" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_5">
<g id="line2d_7">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="218.99739" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_6">
<g id="line2d_8">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="214.416228" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_7">
<g id="line2d_9">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="183.358336" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_8">
<g id="line2d_10">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="167.587803" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_9">
<g id="line2d_11">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="156.398432" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_10">
<g id="line2d_12">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="147.719281" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_11">
<g id="line2d_13">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="140.627899" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_12">
<g id="line2d_14">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="134.63222" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_13">
<g id="line2d_15">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="129.438528" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_14">
<g id="line2d_16">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="124.857366" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_15">
<g id="line2d_17">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="93.799473" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_16">
<g id="line2d_18">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="78.02894" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_17">
<g id="line2d_19">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="66.839569" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_18">
<g id="line2d_20">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="58.160419" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_19">
<g id="line2d_21">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="51.069036" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_20">
<g id="line2d_22">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="45.073358" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="ytick_21">
<g id="line2d_23">
<g>
<use xlink:href="#mea213b5217" x="47.501021" y="39.879665" style="stroke: #000000; stroke-width: 0.6"/>
</g>
</g>
</g>
<g id="text_5">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="10.598678" y="134.059381" transform="rotate(-90 10.598678 134.059381)">Execution time, ms</text>
</g>
</g>
<g id="patch_5">
<path d="M 47.501021 231.998979
L 47.501021 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_6">
<path d="M 326.1475 231.998979
L 326.1475 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_7">
<path d="M 47.501021 231.998979
L 326.1475 231.998979
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_8">
<path d="M 47.501021 36.119782
L 326.1475 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="text_6">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="116.458988" y="41.023382" transform="rotate(-0 116.458988 41.023382)">7.009</text>
</g>
<g id="text_7">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="257.189533" y="219.095379" transform="rotate(-0 257.189533 219.095379)">0.072</text>
</g>
<g id="text_8">
<text style="font-size: 12px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="186.824261" y="30.119782" transform="rotate(-0 186.824261 30.119782)">Deep history page (51 rows)</text>
</g>
</g>
<g id="axes_2">
<g id="patch_9">
<path d="M 366.353281 231.998979
L 644.99976 231.998979
L 644.99976 36.119782
L 366.353281 36.119782
z
" style="fill: #ffffff"/>
</g>
<g id="patch_10">
<path d="M 379.01903 231.998979
L 491.603466 231.998979
L 491.603466 49.569244
L 379.01903 49.569244
z
" clip-path="url(#p34ed0a19f5)" style="fill: #6b7280"/>
</g>
<g id="patch_11">
<path d="M 519.749575 231.998979
L 632.334011 231.998979
L 632.334011 45.447363
L 519.749575 45.447363
z
" clip-path="url(#p34ed0a19f5)" style="fill: #2563eb"/>
</g>
<g id="matplotlib.axis_3">
<g id="xtick_3">
<g id="line2d_24">
<g>
<use xlink:href="#ma83e7220dd" x="435.311248" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_9">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="435.311248" y="246.597416" transform="rotate(-0 435.311248 246.597416)">chat_id</text>
</g>
</g>
<g id="xtick_4">
<g id="line2d_25">
<g>
<use xlink:href="#ma83e7220dd" x="576.041793" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_10">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="576.041793" y="246.597416" transform="rotate(-0 576.041793 246.597416)">chat_id + time + id</text>
</g>
</g>
</g>
<g id="matplotlib.axis_4">
<g id="ytick_22">
<g id="line2d_26">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="231.998979" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_11">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="235.797807" transform="rotate(-0 359.353281 235.797807)">0</text>
</g>
</g>
<g id="ytick_23">
<g id="line2d_27">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="209.536412" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_12">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="213.33524" transform="rotate(-0 359.353281 213.33524)">2</text>
</g>
</g>
<g id="ytick_24">
<g id="line2d_28">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="187.073846" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_13">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="190.872674" transform="rotate(-0 359.353281 190.872674)">4</text>
</g>
</g>
<g id="ytick_25">
<g id="line2d_29">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="164.611279" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_14">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="168.410107" transform="rotate(-0 359.353281 168.410107)">6</text>
</g>
</g>
<g id="ytick_26">
<g id="line2d_30">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="142.148712" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_15">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="145.947541" transform="rotate(-0 359.353281 145.947541)">8</text>
</g>
</g>
<g id="ytick_27">
<g id="line2d_31">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="119.686146" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_16">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="123.484974" transform="rotate(-0 359.353281 123.484974)">10</text>
</g>
</g>
<g id="ytick_28">
<g id="line2d_32">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="97.223579" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_17">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="101.022407" transform="rotate(-0 359.353281 101.022407)">12</text>
</g>
</g>
<g id="ytick_29">
<g id="line2d_33">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="74.761013" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_18">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="78.559841" transform="rotate(-0 359.353281 78.559841)">14</text>
</g>
</g>
<g id="ytick_30">
<g id="line2d_34">
<g>
<use xlink:href="#meafe312f9a" x="366.353281" y="52.298446" style="stroke: #000000; stroke-width: 0.8"/>
</g>
</g>
<g id="text_19">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: end" x="359.353281" y="56.097274" transform="rotate(-0 359.353281 56.097274)">16</text>
</g>
</g>
<g id="text_20">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="340.225938" y="134.059381" transform="rotate(-90 340.225938 134.059381)">Execution time, ms</text>
</g>
</g>
<g id="patch_12">
<path d="M 366.353281 231.998979
L 366.353281 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_13">
<path d="M 644.99976 231.998979
L 644.99976 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_14">
<path d="M 366.353281 231.998979
L 644.99976 231.998979
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_15">
<path d="M 366.353281 36.119782
L 644.99976 36.119782
" style="fill: none; stroke: #000000; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="text_21">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="435.311248" y="45.569244" transform="rotate(-0 435.311248 45.569244)">16.243</text>
</g>
<g id="text_22">
<text style="font-size: 10px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="576.041793" y="41.447363" transform="rotate(-0 576.041793 41.447363)">16.610</text>
</g>
<g id="text_23">
<text style="font-size: 12px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="505.676521" y="30.119782" transform="rotate(-0 505.676521 30.119782)">Insert 1,000 messages</text>
</g>
</g>
<g id="text_24">
<text style="font-size: 12px; font-family: 'DejaVu Sans', 'Bitstream Vera Sans', 'Computer Modern Sans Serif', 'Lucida Grande', 'Verdana', 'Geneva', 'Lucid', 'Arial', 'Helvetica', 'Avant Garde', sans-serif; text-anchor: middle" x="324" y="12.118365" transform="rotate(-0 324 12.118365)">100,000 skewed messages; one EXPLAIN ANALYZE per index</text>
</g>
</g>
<defs>
<clipPath id="p6814e01ebe">
<rect x="47.501021" y="36.119782" width="278.646479" height="195.879196"/>
</clipPath>
<clipPath id="p34ed0a19f5">
<rect x="366.353281" y="36.119782" width="278.646479" height="195.879196"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

@@ -0,0 +1,78 @@
[
{
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 10.93,
"Plan Rows": 51,
"Plan Width": 71,
"Actual Startup Time": 0.031,
"Actual Total Time": 0.037,
"Actual Rows": 51.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 1,
"Shared Read Blocks": 3,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 5761.96,
"Plan Rows": 27952,
"Plan Width": 71,
"Actual Startup Time": 0.030,
"Actual Total Time": 0.034,
"Actual Rows": 51.00,
"Actual Loops": 1,
"Disabled": false,
"Index Cond": "((chat_id = 'd5f6496b-22d2-4d83-9840-843c175d2196'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.07+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Index Searches": 1,
"Shared Hit Blocks": 1,
"Shared Read Blocks": 3,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.276,
"Triggers": [
],
"Execution Time": 0.072
}
]
@@ -0,0 +1,125 @@
[
{
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.00,
"Total Cost": 32.50,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 5.299,
"Actual Total Time": 5.299,
"Actual Rows": 0.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 5142,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 26,
"Shared Written Blocks": 24,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Subquery Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Alias": "*SELECT*",
"Startup Cost": 0.00,
"Total Cost": 32.50,
"Plan Rows": 1000,
"Plan Width": 88,
"Actual Startup Time": 0.054,
"Actual Total Time": 1.217,
"Actual Rows": 1000.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Function Scan",
"Parent Relationship": "Subquery",
"Parallel Aware": false,
"Async Capable": false,
"Function Name": "generate_series",
"Alias": "i",
"Startup Cost": 0.00,
"Total Cost": 20.00,
"Plan Rows": 1000,
"Plan Width": 112,
"Actual Startup Time": 0.054,
"Actual Total Time": 1.104,
"Actual Rows": 1000.00,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 24,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.098,
"Triggers": [
{
"Trigger Name": "RI_ConstraintTrigger_c_16467",
"Constraint Name": "messages_chat_id_fkey",
"Relation": "messages",
"Time": 3.547,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16472",
"Constraint Name": "messages_sender_id_fkey",
"Relation": "messages",
"Time": 3.867,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16477",
"Constraint Name": "messages_chat_id_sender_id_fkey",
"Relation": "messages",
"Time": 3.739,
"Calls": 1000
}
],
"Execution Time": 16.610
}
]
+1
View File
@@ -0,0 +1 @@
{"run_id":"8a1784b7aac7","started_at":"2026-11-12T13:13:44.368Z","state":"started"}
+513
View File
@@ -0,0 +1,513 @@
{
"run_id": "8a1784b7aac7",
"complete": true,
"dataset": {
"messages": 100000,
"distribution": [
90000,
9000,
1000
]
},
"plans": {
"chat_only": {
"read": {
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3795.18,
"Total Cost": 3800.99,
"Plan Rows": 51,
"Plan Width": 71,
"Actual Startup Time": 5.38,
"Actual Total Time": 6.963,
"Actual Rows": 51,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 1250,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Gather Merge",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 3795.18,
"Total Cost": 6877.4,
"Plan Rows": 27044,
"Plan Width": 71,
"Actual Startup Time": 5.378,
"Actual Total Time": 6.959,
"Actual Rows": 51,
"Actual Loops": 1,
"Disabled": false,
"Workers Planned": 1,
"Workers Launched": 1,
"Shared Hit Blocks": 1250,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Sort",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 2795.17,
"Total Cost": 2834.94,
"Plan Rows": 15908,
"Plan Width": 71,
"Actual Startup Time": 4.036,
"Actual Total Time": 4.038,
"Actual Rows": 51,
"Actual Loops": 2,
"Disabled": false,
"Sort Key": [
"created_at",
"id"
],
"Sort Method": "top-N heapsort",
"Sort Space Used": 31,
"Sort Space Type": "Memory",
"Shared Hit Blocks": 1250,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Workers": [
{
"Worker Number": 0,
"Sort Method": "top-N heapsort",
"Sort Space Used": 31,
"Sort Space Type": "Memory"
}
],
"Plans": [
{
"Node Type": "Seq Scan",
"Parent Relationship": "Outer",
"Parallel Aware": true,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0,
"Total Cost": 2264.44,
"Plan Rows": 15908,
"Plan Width": 71,
"Actual Startup Time": 2.269,
"Actual Total Time": 3.504,
"Actual Rows": 10000.5,
"Actual Loops": 2,
"Disabled": false,
"Filter": "((chat_id = 'd5f6496b-22d2-4d83-9840-843c175d2196'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.07+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Filter": 40001,
"Shared Hit Blocks": 1235,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Workers": []
}
]
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 99,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.246,
"Triggers": [],
"Execution Time": 7.009
},
"write": {
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0,
"Total Cost": 32.5,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 5.31,
"Actual Total Time": 5.31,
"Actual Rows": 0,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 6083,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 18,
"Shared Written Blocks": 16,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Subquery Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Alias": "*SELECT*",
"Startup Cost": 0,
"Total Cost": 32.5,
"Plan Rows": 1000,
"Plan Width": 88,
"Actual Startup Time": 0.077,
"Actual Total Time": 1.233,
"Actual Rows": 1000,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Function Scan",
"Parent Relationship": "Subquery",
"Parallel Aware": false,
"Async Capable": false,
"Function Name": "generate_series",
"Alias": "i",
"Startup Cost": 0,
"Total Cost": 20,
"Plan Rows": 1000,
"Plan Width": 112,
"Actual Startup Time": 0.076,
"Actual Total Time": 1.121,
"Actual Rows": 1000,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 24,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.102,
"Triggers": [
{
"Trigger Name": "RI_ConstraintTrigger_c_16467",
"Constraint Name": "messages_chat_id_fkey",
"Relation": "messages",
"Time": 3.453,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16472",
"Constraint Name": "messages_sender_id_fkey",
"Relation": "messages",
"Time": 3.728,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16477",
"Constraint Name": "messages_chat_id_sender_id_fkey",
"Relation": "messages",
"Time": 3.594,
"Calls": 1000
}
],
"Execution Time": 16.243
}
},
"history": {
"read": {
"Plan": {
"Node Type": "Limit",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.42,
"Total Cost": 10.93,
"Plan Rows": 51,
"Plan Width": 71,
"Actual Startup Time": 0.031,
"Actual Total Time": 0.037,
"Actual Rows": 51,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 1,
"Shared Read Blocks": 3,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Index Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Scan Direction": "Forward",
"Index Name": "messages_history",
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0.42,
"Total Cost": 5761.96,
"Plan Rows": 27952,
"Plan Width": 71,
"Actual Startup Time": 0.03,
"Actual Total Time": 0.034,
"Actual Rows": 51,
"Actual Loops": 1,
"Disabled": false,
"Index Cond": "((chat_id = 'd5f6496b-22d2-4d83-9840-843c175d2196'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.07+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
"Rows Removed by Index Recheck": 0,
"Index Searches": 1,
"Shared Hit Blocks": 1,
"Shared Read Blocks": 3,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
},
"Planning": {
"Shared Hit Blocks": 112,
"Shared Read Blocks": 1,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.276,
"Triggers": [],
"Execution Time": 0.072
},
"write": {
"Plan": {
"Node Type": "ModifyTable",
"Operation": "Insert",
"Parallel Aware": false,
"Async Capable": false,
"Relation Name": "messages",
"Alias": "messages",
"Startup Cost": 0,
"Total Cost": 32.5,
"Plan Rows": 0,
"Plan Width": 0,
"Actual Startup Time": 5.299,
"Actual Total Time": 5.299,
"Actual Rows": 0,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 5142,
"Shared Read Blocks": 2,
"Shared Dirtied Blocks": 26,
"Shared Written Blocks": 24,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Subquery Scan",
"Parent Relationship": "Outer",
"Parallel Aware": false,
"Async Capable": false,
"Alias": "*SELECT*",
"Startup Cost": 0,
"Total Cost": 32.5,
"Plan Rows": 1000,
"Plan Width": 88,
"Actual Startup Time": 0.054,
"Actual Total Time": 1.217,
"Actual Rows": 1000,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0,
"Plans": [
{
"Node Type": "Function Scan",
"Parent Relationship": "Subquery",
"Parallel Aware": false,
"Async Capable": false,
"Function Name": "generate_series",
"Alias": "i",
"Startup Cost": 0,
"Total Cost": 20,
"Plan Rows": 1000,
"Plan Width": 112,
"Actual Startup Time": 0.054,
"Actual Total Time": 1.104,
"Actual Rows": 1000,
"Actual Loops": 1,
"Disabled": false,
"Shared Hit Blocks": 0,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
}
]
}
]
},
"Planning": {
"Shared Hit Blocks": 24,
"Shared Read Blocks": 0,
"Shared Dirtied Blocks": 0,
"Shared Written Blocks": 0,
"Local Hit Blocks": 0,
"Local Read Blocks": 0,
"Local Dirtied Blocks": 0,
"Local Written Blocks": 0,
"Temp Read Blocks": 0,
"Temp Written Blocks": 0
},
"Planning Time": 0.098,
"Triggers": [
{
"Trigger Name": "RI_ConstraintTrigger_c_16467",
"Constraint Name": "messages_chat_id_fkey",
"Relation": "messages",
"Time": 3.547,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16472",
"Constraint Name": "messages_sender_id_fkey",
"Relation": "messages",
"Time": 3.867,
"Calls": 1000
},
{
"Trigger Name": "RI_ConstraintTrigger_c_16477",
"Constraint Name": "messages_chat_id_sender_id_fkey",
"Relation": "messages",
"Time": 3.739,
"Calls": 1000
}
],
"Execution Time": 16.61
}
}
},
"backup": {
"dump_seconds": 0.4851582589999998,
"bytes": 3034766,
"restore_seconds": 1.509961217,
"verified": {
"users": 7,
"chats": 5,
"members": 7,
"messages": 102003,
"research_messages": 102000,
"samples": [
{
"id": "8d10e913-b6a3-4ea4-a61a-42b38ad0c01c",
"text": "synthetic-1",
"created_at": "2026-01-01T00:00:00.000001+00:00"
},
{
"id": "49398fa6-3afb-4f81-90c8-8c5c8a2342bf",
"text": "synthetic-2",
"created_at": "2026-01-01T00:00:00.000002+00:00"
},
{
"id": "790effa7-630f-4267-a52d-63b6064a46e5",
"text": "synthetic-3",
"created_at": "2026-01-01T00:00:00.000003+00:00"
}
]
},
"target": "separate PostgreSQL container and persistent volume"
}
}
+3
View File
@@ -0,0 +1,3 @@
/vp-lab2-medvedev-api-1 06afbbee0d3d75fda9d8bf9cd758def600bb6f262ffbb88e6aef9ccb581994bf 2026-11-12T13:54:34.77510721Z
/vp-lab2-medvedev-postgres-1 a815eb658f9574c1f6dc47abdcedc2f787d482b6eeeccafa34c87df7eba85f2f 2026-11-12T13:54:35.92974373Z
/vp-lab2-medvedev-valkey-1 61b640ca1ecb35d30407958b3879319b2f3bb09042ef601964a76fd822c3850c 2026-11-12T13:54:35.121257658Z
+3
View File
@@ -0,0 +1,3 @@
/vp-lab2-medvedev-api-1 06afbbee0d3d75fda9d8bf9cd758def600bb6f262ffbb88e6aef9ccb581994bf 2026-11-12T13:54:29.846552448Z
/vp-lab2-medvedev-postgres-1 a815eb658f9574c1f6dc47abdcedc2f787d482b6eeeccafa34c87df7eba85f2f 2026-11-12T13:54:20.396967218Z
/vp-lab2-medvedev-valkey-1 61b640ca1ecb35d30407958b3879319b2f3bb09042ef601964a76fd822c3850c 2026-11-12T13:54:17.113781258Z
+2
View File
@@ -0,0 +1,2 @@
/mnt/data/home/bench-saves/vp-labs-vuIKezo9/lab2/.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:28202"
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
+2
View File
@@ -0,0 +1,2 @@
/mnt/data/home/bench-saves/vp-labs-vuIKezo9/lab2/.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
+18
View File
@@ -0,0 +1,18 @@
Requirement already satisfied: openapi-spec-validator==0.7.2 in ./.venv/lib/python3.14/site-packages (from -r requirements-dev.txt (line 2)) (0.7.2)
Requirement already satisfied: jsonschema<5.0.0,>=4.18.0 in ./.venv/lib/python3.14/site-packages (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (4.26.0)
Requirement already satisfied: jsonschema-path<0.4.0,>=0.3.1 in ./.venv/lib/python3.14/site-packages (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (0.3.4)
Requirement already satisfied: lazy-object-proxy<2.0.0,>=1.7.1 in ./.venv/lib/python3.14/site-packages (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (1.13.0)
Requirement already satisfied: openapi-schema-validator<0.7.0,>=0.6.0 in ./.venv/lib/python3.14/site-packages (from openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (0.6.3)
Requirement already satisfied: attrs>=22.2.0 in ./.venv/lib/python3.14/site-packages (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (26.1.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in ./.venv/lib/python3.14/site-packages (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (2025.9.1)
Requirement already satisfied: referencing>=0.28.4 in ./.venv/lib/python3.14/site-packages (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (0.36.2)
Requirement already satisfied: rpds-py>=0.25.0 in ./.venv/lib/python3.14/site-packages (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (2026.9.1)
Requirement already satisfied: PyYAML>=5.1 in ./.venv/lib/python3.14/site-packages (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (6.0.3)
Requirement already satisfied: pathable<0.5.0,>=0.4.1 in ./.venv/lib/python3.14/site-packages (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (0.4.4)
Requirement already satisfied: requests<3.0.0,>=2.31.0 in ./.venv/lib/python3.14/site-packages (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (2.34.2)
Requirement already satisfied: rfc3339-validator in ./.venv/lib/python3.14/site-packages (from openapi-schema-validator<0.7.0,>=0.6.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (0.1.4)
Requirement already satisfied: charset_normalizer<4,>=2 in ./.venv/lib/python3.14/site-packages (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (3.5.2)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.14/site-packages (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (3.20)
Requirement already satisfied: urllib3<3,>=1.26 in ./.venv/lib/python3.14/site-packages (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (2.8.0)
Requirement already satisfied: certifi>=2023.5.7 in ./.venv/lib/python3.14/site-packages (from requests<3.0.0,>=2.31.0->jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (2026.10.23)
Requirement already satisfied: six in ./.venv/lib/python3.14/site-packages (from rfc3339-validator->openapi-schema-validator<0.7.0,>=0.6.0->openapi-spec-validator==0.7.2->-r requirements-dev.txt (line 2)) (1.17.0)