Подтвердить чистый запуск лабораторной с новыми PG и S3

This commit is contained in:
Горбанюк
2026-10-17 20:24:22 +03:00
parent 85433e20e4
commit 36d295e16c
4 changed files with 99 additions and 1 deletions
+8
View File
@@ -84,6 +84,14 @@ docker compose --env-file .env down --volumes
Скрипты не используют общий Docker prune и не останавливают другие лабораторные.
Дополнительно проверен отдельный чистый clone коммита `900182c`: новые credentials,
новые PostgreSQL/S3 volumes, сборка образа с OCI revision этого коммита, все 65
тестов, публичные smoke и persistence. Хеши всех runtime-модулей в образе совпали
с исходниками clone и версией измерений. Временный стенд и только его новые
volumes удалены; основные данные lab4 сохранены. Доказательства:
[clean-clone.txt](evidence/clean-clone.txt), [clean-clone.json](evidence/clean-clone.json).
Workflow application.yml подготовлен, удалённый runner здесь не запускался.
## Архитектура и версии
```mermaid
+1 -1
View File
@@ -1,2 +1,2 @@
PASS: 101 candidate/versioned files; 45 reachable objects; no requested names or local credentials.
PASS: 103 candidate/versioned files; 129 reachable objects; no requested names or local credentials.
PASS: instructor files unchanged, upstream push disabled.
+68
View File
@@ -0,0 +1,68 @@
{
"tested_commit": "900182cbb405d57b20c1b8bfd7cef21592ccf4cf",
"image_revision": "900182cbb405d57b20c1b8bfd7cef21592ccf4cf",
"runtime_sha256": {
"reconcile.py": "6c96d72a8c49a03ff721029545a41c3587bc24be3272df4003bf6141dd04df9c",
"cursor.py": "a2208cba232ae0f67c4430d3e90c3962129c8fb3987ea853c624cdd2c73d7a1f",
"cache.py": "17756fa84a2c40fd4d1baf9602a7b755ca5998bc241f0657db3505b04623321d",
"service.py": "7e100756e3bb24a89bce5dfa41a471969cdb4287c1523673d1e7ff8255bf3c19",
"__init__.py": "f798dc149d6bef46d697dccdaf6be9c8d08654f18161e42c99f548c30074f4ae",
"__main__.py": "486cd5bbb3f1a814de74357e938968d219070e845cf178761a7a23e87d003ea4",
"app.py": "6dd900a5ff7b2213ace024b55dfd7313195d1fb1257bab6067b16d2b4f515941",
"settings.py": "d21f4b624767b19c80f534e608de6de6071260b5e2d642a06e6a7aec0148c161",
"auth.py": "6bebcd8d1d3ca4c2c6e8b0e5793ae13d8996cac3709b5b845d814b51a5e1a3c3",
"attachments.py": "3fbf029536834be791d39b38fb76e2eb694b46a57d891ff73763b3a7be99234f",
"storage.py": "2fd071caf423a09378d8fc162dc5f675484addf8589e0e0228057c6b7bb77d75",
"migrate.py": "f073c080e13635a01482539dbb474b9b4f49bbf5ff66f483dbda4fbe1d1eb57f",
"schemas.py": "3f94cc536beec31ec7890331abbc736445a311d03b30b9b5726dd60c17c9f6a9",
"repository.py": "d29dabc547e0071b21f8b9d5371fc5753b89766f2c3e8ea8412cdcb8a8c33384",
"domain.py": "bd8456d7423a3e12c02a57ed90d1875fc5c7acdcfc0d26b94f9ead4855160298"
},
"runtime_matches_measurements": true,
"fresh_secrets": true,
"fresh_pg_and_s3_volumes": true,
"student_tests_passed": 65,
"public_smoke_passed": true,
"public_persistence_passed": true,
"api_instances": [
{
"id": "f43056b397aa3639d9fe0220734c61f2e66caa5d6ce4522c35a645933787204d",
"started_at": "2026-10-17T17:22:12.959003129Z",
"pid": 9135,
"running": true,
"image": "sha256:4c8bff2f05a461167d1921b16e64fbd46342daffcaed4f1e9486dadea0ea3416",
"memory": 536870912,
"nano_cpus": 1000000000,
"published_ports": {},
"instance": "c4a9f8fb8759467b83f84981872cc014"
},
{
"id": "ca95b52ce4b1976a36b4f0e1aa32a7310cacee932f4f8090b410cf957dc931c3",
"started_at": "2026-10-17T17:22:13.11128092Z",
"pid": 9269,
"running": true,
"image": "sha256:4c8bff2f05a461167d1921b16e64fbd46342daffcaed4f1e9486dadea0ea3416",
"memory": 536870912,
"nano_cpus": 1000000000,
"published_ports": {},
"instance": "8f7362c97d3f40c48a6c72dd5504fb1e"
}
],
"s3": {
"id": "3f7a14116acfd92ef834a5c71f2571b08c297e3786f16a7789bae5d28e4e7fae",
"started_at": "2026-10-17T17:22:12.732578545Z",
"pid": 8874,
"running": true,
"image": "sha256:ca2f62967cfd3096ef07615e356e3e6909bb6885e1672999fc0e206b478ec904",
"memory": 805306368,
"nano_cpus": 1000000000,
"published_ports": {
"9000/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "59004"
}
]
}
}
}
+22
View File
@@ -0,0 +1,22 @@
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
python3 tests/smoke.py --base-url "http://127.0.0.1:28084"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
uv run --locked pytest --disable-warnings
============================= test session starts ==============================
platform darwin -- Python 3.14.7, pytest-9.1.1, pluggy-1.7.0
rootdir: <repository>
configfile: pyproject.toml
testpaths: student-tests
plugins: anyio-4.15.1
collected 65 items
student-tests/test_api.py .................................... [ 55%]
student-tests/test_attachments.py ................. [ 81%]
student-tests/test_cluster.py ............ [100%]
======================= 65 passed, 2 warnings in 21.77s ========================
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:28084"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.