fix: stop keeping second copies of versions Renovate moves #90

Merged
ivuorinen merged 2 commits from ivuorinen/fix/drop-stale-promtool-fixture-test into main 2026-10-07 20:33:34 +00:00 AGit
Owner

#21 is the first kube-prometheus-stack PR in which Renovate set promtool
itself (3.14.0 -> 3.15.0). Its render job passed, but the hooks job failed
on "the repository's own mise.toml agrees with the deployed chart" in
tests/check-promtool-parity.bats. That test did not render the chart: it
compared mise.toml with tests/fixtures/prometheus-rendered.yaml, a fixed
test value of v3.14.0 that nothing updates. Every chart bump that moves
Prometheus would have failed it. The render job already compares the pin
with the real chart, so the test is deleted, and the fixture says its
version is a test value, not the deployed one.

A search for other values that Renovate changes in one place while another
file keeps a copy found these, several already wrong:

  • docs/07-monitoring.md's dashboard table gave each source's tag. Redis
    (v1.91.1, deployed v1.93.0) and Gatus (v5.36.0, deployed v5.37.0) had
    already drifted. The table now names sources only, and says the tags live
    in scripts/generate-grafana-dashboards.sh.
  • docs/08-dns-and-certs.md named neilpang/acme.sh:3.1.4 (deployed 3.1.6),
    alpine/kubectl:1.36.2 (deployed 1.36.4) and alpine:3.24.2. Image names
    only now.
  • docs/11-renovate.md and docs/12-gatus-homepage.md ran pinned Renovate and
    Gatus images in their example commands. They now read the tag from the
    manifest that deploys it.
  • docs/15-maintenance.md linked Longhorn 1.10.0's docs while the cluster
    runs 1.12.1. It now links the latest docs and says to switch to the
    version in gitops/apps/longhorn/kustomization.yaml.
  • Comments in gitops/argocd-apps/ stated current versions: "3.24.2 is the
    current patch release" (adguard-home), "the cluster runs v3.5.3"
    (crds), and the postgres-exporter tag the Authentik chart picks. Each now
    records the version that was checked, and crds.yaml says when to check
    again.

Version numbers that record a test result ("verified against chart
88.5.3", "confirmed against Traefik 3.7.8") stay as written: they are
evidence of a check made at that version, not a claim about what runs now.

Tests: bats 56/56 and prek run --all-files on this branch, and bats 56/56
with this change applied on top of #21's branch.

#21 is the first kube-prometheus-stack PR in which Renovate set promtool itself (3.14.0 -> 3.15.0). Its render job passed, but the hooks job failed on "the repository's own mise.toml agrees with the deployed chart" in tests/check-promtool-parity.bats. That test did not render the chart: it compared mise.toml with tests/fixtures/prometheus-rendered.yaml, a fixed test value of v3.14.0 that nothing updates. Every chart bump that moves Prometheus would have failed it. The render job already compares the pin with the real chart, so the test is deleted, and the fixture says its version is a test value, not the deployed one. A search for other values that Renovate changes in one place while another file keeps a copy found these, several already wrong: - docs/07-monitoring.md's dashboard table gave each source's tag. Redis (v1.91.1, deployed v1.93.0) and Gatus (v5.36.0, deployed v5.37.0) had already drifted. The table now names sources only, and says the tags live in scripts/generate-grafana-dashboards.sh. - docs/08-dns-and-certs.md named neilpang/acme.sh:3.1.4 (deployed 3.1.6), alpine/kubectl:1.36.2 (deployed 1.36.4) and alpine:3.24.2. Image names only now. - docs/11-renovate.md and docs/12-gatus-homepage.md ran pinned Renovate and Gatus images in their example commands. They now read the tag from the manifest that deploys it. - docs/15-maintenance.md linked Longhorn 1.10.0's docs while the cluster runs 1.12.1. It now links the latest docs and says to switch to the version in gitops/apps/longhorn/kustomization.yaml. - Comments in gitops/argocd-apps/ stated current versions: "3.24.2 is the current patch release" (adguard-home), "the cluster runs v3.5.3" (crds), and the postgres-exporter tag the Authentik chart picks. Each now records the version that was checked, and crds.yaml says when to check again. Version numbers that record a test result ("verified against chart 88.5.3", "confirmed against Traefik 3.7.8") stay as written: they are evidence of a check made at that version, not a claim about what runs now. Tests: bats 56/56 and prek run --all-files on this branch, and bats 56/56 with this change applied on top of #21's branch.
fix: stop keeping second copies of versions Renovate moves
All checks were successful
validate / render (pull_request) Successful in 1m25s
validate / hooks (pull_request) Successful in 2m14s
831bfa4d01
#21 is the first kube-prometheus-stack PR in which Renovate set promtool
itself (3.14.0 -> 3.15.0). Its render job passed, but the hooks job failed
on "the repository's own mise.toml agrees with the deployed chart" in
tests/check-promtool-parity.bats. That test did not render the chart: it
compared mise.toml with tests/fixtures/prometheus-rendered.yaml, a fixed
test value of v3.14.0 that nothing updates. Every chart bump that moves
Prometheus would have failed it. The render job already compares the pin
with the real chart, so the test is deleted, and the fixture says its
version is a test value, not the deployed one.

A search for other values that Renovate changes in one place while another
file keeps a copy found these, several already wrong:

- docs/07-monitoring.md's dashboard table gave each source's tag. Redis
  (v1.91.1, deployed v1.93.0) and Gatus (v5.36.0, deployed v5.37.0) had
  already drifted. The table now names sources only, and says the tags live
  in scripts/generate-grafana-dashboards.sh.
- docs/08-dns-and-certs.md named neilpang/acme.sh:3.1.4 (deployed 3.1.6),
  alpine/kubectl:1.36.2 (deployed 1.36.4) and alpine:3.24.2. Image names
  only now.
- docs/11-renovate.md and docs/12-gatus-homepage.md ran pinned Renovate and
  Gatus images in their example commands. They now read the tag from the
  manifest that deploys it.
- docs/15-maintenance.md linked Longhorn 1.10.0's docs while the cluster
  runs 1.12.1. It now links the latest docs and says to switch to the
  version in gitops/apps/longhorn/kustomization.yaml.
- Comments in gitops/argocd-apps/ stated current versions: "3.24.2 is the
  current patch release" (adguard-home), "the cluster runs v3.5.3"
  (crds), and the postgres-exporter tag the Authentik chart picks. Each now
  records the version that was checked, and crds.yaml says when to check
  again.

Version numbers that record a test result ("verified against chart
88.5.3", "confirmed against Traefik 3.7.8") stay as written: they are
evidence of a check made at that version, not a claim about what runs now.

Tests: bats 56/56 and prek run --all-files on this branch, and bats 56/56
with this change applied on top of #21's branch.
docs: give every fact one home, and check the indexes that stay
All checks were successful
validate / render (pull_request) Successful in 2m2s
validate / hooks (pull_request) Successful in 3m38s
9da54b9642
The first commit removed version copies that had already drifted. Every
document was then audited for the same class of problem: README.md,
CLAUDE.md, scripts/node-red-flows/README.md and docs/01-15, each against
six lenses (current-state versions, lists of repo-defined sets, values
copied from manifests, references that must exist, the same fact stated
twice, procedures wrong for this repo). 135 findings; 109 were fixed in
the text, 3 rejected on evidence, and the rest needed a check or a change
outside the docs, covered below or left for a decision.

Docs now explain why and point at the file that holds a value, instead of
copying schedules, thresholds, sizes, IPs, counts, member lists and
versions from it. Copies that had drifted were the README hook table
(missing two hooks), the forward-auth and UI lists (missing
Gatus, Homepage, Node-RED), the scrape table (missing Node-RED and
Tailscale), the Renovate manager and exception tables, the Gatus claim
that it queries game servers, "every Application prunes" in
15-maintenance.md, and procedures for things now automated: CRDs
installed "by a script" (the crds Application does it), a manual dashboard
pin step, `ark install` on a GitOps cluster, and app removal lists that
missed the ExternalSecret, scrape target, dashboard and tests. Removal is
now one rg over the repo, with bats and prek catching anything left.

The sync-policy comment repeated in 23 Applications is replaced by a
test: tests/gitops-sync-shape.bats fails unless every Application
autosyncs with prune and without selfHeal, argocd-config excepted.
docs/05-argocd.md stays the one explanation.

The lists an operator needs in one place stay, and are now checked by
tests/docs-sync.bats:
- every scripts/ subdirectory in the README layout;
- every docs/NN-*.md in the README's Docs list;
- docs/03-networking.md's IP table equals the LoadBalancer IPs pinned
  under gitops/ and manifests/ plus TRAEFIK_IP;
- docs/10-secrets.md's vault table equals the items the ExternalSecrets
  read, and each field it names is used by one;
- no image tag in any doc, as no count already was; the count check's
  noun list now also covers PVCs, volumes, CRDs, services, keys, jobs,
  secrets, containers and blocklists.

Each test was made to fail once on a deliberate break before being kept.
The bats hook now fires on all of gitops/, manifests/ and scripts/, since
the suites read from all three; tests/hook-coverage.bats derives that list
from git, and failed on 66 uncovered files before the pattern was widened.

Tests: bats 62/62, prek run --all-files clean.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ivuorinen/turingpi-cluster!90
No description provided.