167 lines
6.4 KiB
Plaintext
167 lines
6.4 KiB
Plaintext
# Итоговые проверки на машине замеров — часть 1
|
|
# Дата UTC: 2026-12-04; MacBook Air M4, macOS 26.6.2 arm64,
|
|
# Python хоста 3.13.7, Docker 28.0.4, Compose 5.6.1, ВМ 10 CPU / 9.70 GiB.
|
|
# src_sha256: 9f54713d40ab16487073215427ef36fc2826a073550f825cc5eb0902a5c2ad7e
|
|
# После разрешённых изменений памяти queue: API и S3 по 1 GiB (commit f5bbe56).
|
|
# Код приложения, конфигурации рабочего стенда, нагрузка и пороги не менялись.
|
|
# unit/fmt/lint/selftest — повтор после поправки S3; check/validate/requirements-check
|
|
# — тот же день перед ней, к этим проверкам поправка bench не относится.
|
|
# test-isolated — отдельный стенд, все results 0, материалы и стенд убраны им самим.
|
|
# Домашний путь в выводе заменён на <репозиторий>; численные результаты сохранены.
|
|
# Здесь ещё нет итоговых failure-checks, security-audit и scan: они идут после bench.
|
|
|
|
$ make fmt
|
|
uv run ruff format .
|
|
188 files left unchanged
|
|
uv run ruff check --fix .
|
|
All checks passed!
|
|
$ make lint
|
|
uv run ruff format --check .
|
|
188 files already formatted
|
|
uv run ruff check .
|
|
All checks passed!
|
|
$ make unit-test
|
|
uv run pytest -m unit student-tests/unit
|
|
============================= test session starts ==============================
|
|
platform darwin -- Python 3.13.7, pytest-9.1.1, pluggy-1.6.0
|
|
rootdir: <репозиторий>
|
|
configfile: pyproject.toml
|
|
plugins: platformdirs-4.14.8, anyio-4.15.1
|
|
collected 490 items
|
|
|
|
student-tests/unit/test_auth_hardening.py ................... [ 3%]
|
|
student-tests/unit/test_broker_tls.py .................... [ 7%]
|
|
student-tests/unit/test_compose_hardening.py ........................... [ 13%]
|
|
. [ 13%]
|
|
student-tests/unit/test_db_roles.py .................................... [ 21%]
|
|
............... [ 24%]
|
|
student-tests/unit/test_openbao_config.py ......................... [ 29%]
|
|
student-tests/unit/test_openbao_tooling.py ................ [ 32%]
|
|
student-tests/unit/test_rotation.py .............................. [ 38%]
|
|
student-tests/unit/test_scan.py ........................................ [ 46%]
|
|
............................ [ 52%]
|
|
student-tests/unit/test_secrets_store.py ............................... [ 58%]
|
|
.... [ 59%]
|
|
student-tests/unit/test_security_audit.py .......... [ 61%]
|
|
student-tests/unit/test_staging_check.py ...... [ 62%]
|
|
student-tests/unit/test_storage_tls.py .............. [ 65%]
|
|
student-tests/unit/test_telemetry.py .............................. [ 71%]
|
|
student-tests/unit/test_telemetry_backends_tls.py ...................... [ 76%]
|
|
............................................... [ 85%]
|
|
student-tests/unit/test_telemetry_tls.py ........................... [ 91%]
|
|
student-tests/unit/test_tls.py .................. [ 95%]
|
|
student-tests/unit/test_trace_chain.py ........ [ 96%]
|
|
student-tests/unit/test_track1.py ................ [100%]
|
|
|
|
=============================== warnings summary ===============================
|
|
student-tests/unit/test_telemetry.py:23
|
|
<репозиторий>/student-tests/unit/test_telemetry.py:23: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
|
|
from starlette.testclient import TestClient
|
|
|
|
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
|
======================= 490 passed, 1 warning in 55.76s ========================
|
|
$ .venv/bin/python bench/queue.py --selftest
|
|
queue selftest: ok
|
|
$ .venv/bin/python bench/uploads.py --selftest
|
|
uploads selftest: ok
|
|
$ .venv/bin/python bench/analysis.py --selftest
|
|
analysis selftest: ok
|
|
$ .venv/bin/python bench/reconcile.py --selftest
|
|
reconcile selftest: ok
|
|
$ .venv/bin/python bench/telemetry.py --selftest
|
|
telemetry selftest: ok
|
|
# Все восемь подготовительных команд завершились кодом 0:
|
|
[
|
|
{
|
|
"command": [
|
|
"make",
|
|
"fmt"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 0.235
|
|
},
|
|
{
|
|
"command": [
|
|
"make",
|
|
"lint"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 0.056
|
|
},
|
|
{
|
|
"command": [
|
|
"make",
|
|
"unit-test"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 56.212
|
|
},
|
|
{
|
|
"command": [
|
|
".venv/bin/python",
|
|
"bench/queue.py",
|
|
"--selftest"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 0.042
|
|
},
|
|
{
|
|
"command": [
|
|
".venv/bin/python",
|
|
"bench/uploads.py",
|
|
"--selftest"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 0.026
|
|
},
|
|
{
|
|
"command": [
|
|
".venv/bin/python",
|
|
"bench/analysis.py",
|
|
"--selftest"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 0.026
|
|
},
|
|
{
|
|
"command": [
|
|
".venv/bin/python",
|
|
"bench/reconcile.py",
|
|
"--selftest"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 0.033
|
|
},
|
|
{
|
|
"command": [
|
|
".venv/bin/python",
|
|
"bench/telemetry.py",
|
|
"--selftest"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 0.042
|
|
}
|
|
]
|
|
$ make check
|
|
python3 scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
$ make validate PYTHON=.venv/bin/python
|
|
.venv/bin/python scripts/validate_openapi.py
|
|
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
|
$ make requirements-check
|
|
uv export --frozen --no-dev --no-emit-project --no-header --format requirements.txt | diff -u requirements.txt - && echo "requirements.txt matches uv.lock"
|
|
requirements.txt matches uv.lock
|
|
$ make test-isolated
|
|
# ... вывод setup, smoke, прогресс и уборка сокращены
|
|
========== 641 passed, 55 deselected, 1 warning in 100.38s (0:01:40) ===========
|
|
[isolated] postgres log: permission denied 0
|
|
[isolated] results: {'test': 0, 'student-test': 0, 'test-failover': 0, 'attachment-failover': 0, 'test-persistence': 0, 'postgres-permissions': 0}
|
|
{
|
|
"command": [
|
|
"make",
|
|
"test-isolated"
|
|
],
|
|
"exit": 0,
|
|
"seconds": 203.811
|
|
}
|