span_id и trace_id
Deploy / deploy (push) Successful in 1m1s

This commit is contained in:
Раис Юсупалиев
2026-06-20 19:46:48 +03:00
parent 798b6e38bd
commit 02b80f2b73
4 changed files with 90 additions and 2 deletions
+13
View File
@@ -6,6 +6,7 @@ import yaml
PROJECT_ROOT = Path(__file__).resolve().parents[2]
COMPOSE_FILE = PROJECT_ROOT / "docker-compose.yml"
INFRA_README = PROJECT_ROOT / "infra" / "README.md"
DEPLOY_WORKFLOW = PROJECT_ROOT / ".gitea" / "workflows" / "deploy.yml"
def _load_compose() -> dict:
@@ -28,3 +29,15 @@ def test_smoke_command_sequence_is_documented() -> None:
assert "docker compose config" in readme
assert "docker compose up -d redis" in readme
assert "docker compose ps" in readme
def test_deploy_recreates_collector_after_config_update() -> None:
workflow = DEPLOY_WORKFLOW.read_text(encoding="utf-8")
recreate_command = (
"docker compose -p $COMPOSE_PROJECT up -d --force-recreate otel-collector"
)
application_command = "docker compose -p $COMPOSE_PROJECT up -d"
assert recreate_command in workflow
assert workflow.index(recreate_command) < workflow.rindex(application_command)