forked from mtusi2026/mtusi2026lab7
feat: run a per-run OpenBao for failure checks, bench, CI and driver stands
Every stand with its own storages now brings up its own OpenBao and acts
as its operator: materials live in the run's temporary directory and are
removed on any outcome; the working stand's OpenBao is never touched.
- make failure_checks: own OpenBao, 20 s / 60 s token roles, six new
OpenBao fault checks, hook actions and the secrets log summary
- bao.py rewrite and waiting for the active node after unseal
- bench/: OpenBao in every fresh stand, "before" variants get secrets
via ${...} references, passport stand.secrets and limits.openbao
- CI job: BAO_ADDRESS, run OpenBao operator, override with openbao,
cleaner and migrate pairs, test_ci_override.py
- driver: shared temporary stand for freeze-lb and reconcile-signal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,6 +40,16 @@ FAULT_S3_BASE_URL = os.environ.get("FAULT_S3_BASE_URL", "").rstrip("/")
|
||||
FAULT_BACKLOG_BASE_URL = os.environ.get("FAULT_BACKLOG_BASE_URL", "").rstrip(
|
||||
"/",
|
||||
)
|
||||
# OpenBao стенда отказов (change openbao-tooling, design, решение 2): адрес и
|
||||
# каталог материалов оператора прогона, сроки токенов ролей и срок ожидания
|
||||
# OpenBao при старте API — проверки сверяют с ними стенд
|
||||
FAULT_BAO_ENV = (
|
||||
"FAULT_BAO_ADDRESS",
|
||||
"FAULT_BAO_OPERATOR_DIR",
|
||||
"FAULT_BAO_TOKEN_TTL_S",
|
||||
"FAULT_BAO_TOKEN_MAX_TTL_S",
|
||||
"FAULT_SECRETS_STARTUP_TIMEOUT_S",
|
||||
)
|
||||
FAULT_HOOK_TIMEOUT_S = 120
|
||||
# срок клиента «узкого» API: больше ожидания места, срока тела и шагов
|
||||
UPLOADS_CLIENT_TIMEOUT_S = 30
|
||||
@@ -84,6 +94,7 @@ def pytest_collection_finish(session: pytest.Session) -> None:
|
||||
and FAULT_UPLOADS_BASE_URL
|
||||
and FAULT_S3_BASE_URL
|
||||
and FAULT_BACKLOG_BASE_URL
|
||||
and all(os.environ.get(name) for name in FAULT_BAO_ENV)
|
||||
):
|
||||
pytest.exit(
|
||||
"fault checks need the failure stand and its hook: "
|
||||
|
||||
Reference in New Issue
Block a user