From ad4daab35861f7c739692ff587eb5eb682eeb89c Mon Sep 17 00:00:00 2001 From: Repinoid Date: Wed, 30 Sep 2026 09:38:42 +0300 Subject: [PATCH] =?UTF-8?q?chore(tools):=20=D0=BB=D0=B5=D0=B3=D0=B0=D1=81?= =?UTF-8?q?=D0=B8-=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D1=8B=20=D0=B3?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D1=8B=20(fail-fast=20DEPRE?= =?UTF-8?q?CATED)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 10/11/12/13 + 02_..._template_v2 нерабочие (зовут 01 без --profile, ищут *.token в корне репо) и не вызываются никаким рабочим скриптом (ссылки — только в исторических HISTORY/NOTES). Теперь падают сразу с подсказкой канонического пути вместо мнимой работы; 13 вдобавок больше не может сделать rm -f provider/resources_yaml/*.yaml. Проверено: bash -n OK, guard отдаёт exit 2. --- .../scripts/02_generate_resources_and_docs_template_v2.sh | 7 +++++++ TOOLS/scripts/10_yaml_stability_run.sh | 7 +++++++ TOOLS/scripts/11_yaml_stability_run_latest.sh | 7 +++++++ TOOLS/scripts/12_generate_yamls_latest.sh | 7 +++++++ TOOLS/scripts/13_generate_yamls_clean.sh | 8 ++++++++ 5 files changed, 36 insertions(+) diff --git a/TOOLS/scripts/02_generate_resources_and_docs_template_v2.sh b/TOOLS/scripts/02_generate_resources_and_docs_template_v2.sh index e2022ce..676f8aa 100755 --- a/TOOLS/scripts/02_generate_resources_and_docs_template_v2.sh +++ b/TOOLS/scripts/02_generate_resources_and_docs_template_v2.sh @@ -1,6 +1,13 @@ #!/usr/bin/env bash set -euo pipefail +# ⛔ DEPRECATED (2026-09-30): легаси-дубль. Читает provider/resources_yaml (ephemeral), +# пишет доки в docs/30_registry/resources, PROFILE_DIR не парсит (путь к списку сервисов пуст). +# Канон: TOOLS/scripts/02_generate_resources_and_docs_v2.sh --profile TOOLS/config/ +# См. HISTORY/2026-09-30_yaml_pipeline_hardening.md +echo "DEPRECATED: ${0##*/} отключён. Используйте: TOOLS/scripts/02_generate_resources_and_docs_v2.sh --profile TOOLS/config/" >&2 +exit 2 + # Generate docs using ClickHouse template (v2, no color markup). # Canonical docs generator for unified resources_yaml. diff --git a/TOOLS/scripts/10_yaml_stability_run.sh b/TOOLS/scripts/10_yaml_stability_run.sh index 7416838..0e00899 100755 --- a/TOOLS/scripts/10_yaml_stability_run.sh +++ b/TOOLS/scripts/10_yaml_stability_run.sh @@ -1,6 +1,13 @@ #!/usr/bin/env bash set -euo pipefail +# ⛔ DEPRECATED (2026-09-30): скрипт нерабочий — зовёт 01_generate_yamls.sh без +# --profile (→ exit 2) и ищет *.token в корне репо (их там нет). +# Канон: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/ +# См. HISTORY/2026-09-30_yaml_pipeline_hardening.md +echo "DEPRECATED: ${0##*/} отключён. Используйте: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/" >&2 +exit 2 + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT_DIR="${ROOT_DIR:-$(cd "${SCRIPT_DIR}/../.." && pwd)}" SCRIPT="${ROOT_DIR}/TOOLS/scripts/01_generate_yamls.sh" diff --git a/TOOLS/scripts/11_yaml_stability_run_latest.sh b/TOOLS/scripts/11_yaml_stability_run_latest.sh index 4d0eba8..12ac9f1 100755 --- a/TOOLS/scripts/11_yaml_stability_run_latest.sh +++ b/TOOLS/scripts/11_yaml_stability_run_latest.sh @@ -1,6 +1,13 @@ #!/usr/bin/env bash set -euo pipefail +# ⛔ DEPRECATED (2026-09-30): скрипт нерабочий — зовёт 10 → 01 без --profile (→ exit 2), +# ищет *.token в корне репо (их там нет). +# Канон: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/ +# См. HISTORY/2026-09-30_yaml_pipeline_hardening.md +echo "DEPRECATED: ${0##*/} отключён. Используйте: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/" >&2 +exit 2 + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT_DIR="${ROOT_DIR:-$(cd "${SCRIPT_DIR}/../.." && pwd)}" TOKEN_FILE="${TOKEN_FILE:-}" diff --git a/TOOLS/scripts/12_generate_yamls_latest.sh b/TOOLS/scripts/12_generate_yamls_latest.sh index 65dc27b..f05a5d5 100755 --- a/TOOLS/scripts/12_generate_yamls_latest.sh +++ b/TOOLS/scripts/12_generate_yamls_latest.sh @@ -1,6 +1,13 @@ #!/usr/bin/env bash set -euo pipefail +# ⛔ DEPRECATED (2026-09-30): скрипт нерабочий — зовёт 01_generate_yamls.sh без +# --profile (→ exit 2) и ищет *.token в корне репо (их там нет). +# Канон: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/ +# См. HISTORY/2026-09-30_yaml_pipeline_hardening.md +echo "DEPRECATED: ${0##*/} отключён. Используйте: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/" >&2 +exit 2 + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT_DIR="${ROOT_DIR:-$(cd "${SCRIPT_DIR}/../.." && pwd)}" TOKEN_FILE="${TOKEN_FILE:-}" diff --git a/TOOLS/scripts/13_generate_yamls_clean.sh b/TOOLS/scripts/13_generate_yamls_clean.sh index 77703da..1cce648 100755 --- a/TOOLS/scripts/13_generate_yamls_clean.sh +++ b/TOOLS/scripts/13_generate_yamls_clean.sh @@ -1,6 +1,14 @@ #!/usr/bin/env bash set -euo pipefail +# ⛔ DEPRECATED (2026-09-30): скрипт не только нерабочий (зовёт 12 без --profile), +# но и делает rm -f provider/resources_yaml/*.yaml — стирает ephemeral-слой +# provider/ (не generated/). Опасен и бессмысленен. +# Канон: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/ +# См. HISTORY/2026-09-30_yaml_pipeline_hardening.md +echo "DEPRECATED: ${0##*/} отключён. Используйте: TOOLS/scripts/01_generate_yamls.sh --profile TOOLS/config/" >&2 +exit 2 + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT_DIR="${ROOT_DIR:-$(cd "${SCRIPT_DIR}/../.." && pwd)}" PROVIDER_DIR="${ROOT_DIR}/provider"