Commit Graph
2 Commits
Author SHA1 Message Date
oqyude 53df473609 ci: снимок конфигурации, runtime-drift и вычисление всех хостов
config-fingerprint.sh: снимок поведенчески значимых частей конфигурации
всех хостов (юниты и их unitConfig, порты и vhost'ы nginx, зона DNS,
пакеты, монтирования, контейнеры) — чтобы «функционал не изменился»
было измеримым, а не обещанием. Значения секретов в снимок не попадают.

runtime-drift.sh: сверка декларации с работающим хостом — nginx -T против
/etc/nginx/nginx.conf, podman inspect против -p в systemd-юните, и
наличие ConditionPathIsMountPoint у охраняемых юнитов. Ловит класс
«в nix всё правильно, в проде — нет» (инвариант 8, ADR-0003/0004).

evaluate-all-hosts.yml: workflow вручную вычисляет все семь конфигураций.
Раньше CI проверял только sapphira (раннер — сам сапфир), и поломки в
mobile.nix были невидимы.
2026-11-15 06:34:11 +03:00
oqyude 2ed525b9f5 chore: anchor the scripts ignore rule and keep the guard verifier (T48)
test-runner / smoke (push) Successful in 0s
nixos flake checks / invariant-checks (push) Canceled after 0s
.gitignore had `scripts` as an unanchored pattern. A pattern without a slash
matches a directory of that name at ANY depth, so a future
modules/*/scripts/ would have been silently ignored — the kind of thing that
only shows up as "why is my file not in git". It is anchored to /scripts/
now. No tracked file was matched before or after (verified with
`git ls-files | git check-ignore --stdin --no-index`, empty both ways).

The 22 scripts in .temp/ are not committed wholesale: they are eight
iterations of one T4 test (t4-final-v5..v8), three of another
(t4-live-test{,v2,v3}), plus one-shot deploy/cleanup/diagnose scripts that
hardcode `cd /mnt/s/Git/nixos` and perform umount / mount --move. Committing
them would be noise, not knowledge.

One of them is reusable and non-destructive, so it is preserved:
.ci/verify/guard-non-destructive-verify.sh. It creates two throwaway systemd
units (ConditionPathIsMountPoint=/nonexistent must refuse to start,
=/mnt/services must start) and resets them, so it can be run against a live
host to prove the condition is evaluated at all. That is the check the owner
needs for T52. Content is byte-identical to the .temp original
(md5 b0ac8081aae568a3db921fb64f4c0a05) and passes shellcheck -S error.

Not pushed.
2026-10-24 02:28:32 +03:00