Repository navigation
Description
Update 2026-11-26 (infra move): the allow list is much smaller now.
The counts of 2026-11-17 are out of date. On 2026-11-26, config_reads.toml on main holds 127 reads in 37 modules, and #7290 lowers it more. The environment manifests are in dan-petty/homelab, so the k8s area now means k8s/devops/ only. Count again before you start.
Problem
PR #6075 (#6060) removes the tests that assert a value of a manifest or config file, and adds the guard tests/gate/tree_checks/config_values.py with the allow list tests/gate/tree_checks/config_reads.toml. On 2026-11-17 the allow list kept 556 tests in 89 modules that read a committed config file. Owner, 2026-11-16: "I don't want any tests that check that a manifest or config has any particular value. They should be testing the source code of the project." Owner, 2026-11-17: delete the tests that guard security or privacy controls too ("Delete them all now", recorded on #6075 and #6060).
The allow list holds three groups (the gray-case tables of #6075: comments 6932959641, 6932962309 and 6933111354):
- value tests that fix(k8s): Drop the tests that assert values of manifests and config #6075 did not decide: security contexts, network perimeters, prune protection, nested timeouts, workflow rules, no phone-home;
- tests of source code that must agree with a manifest at run time (
CLUSTER_SECRETS,PRODUCT_MANIFESTS_BY_STACK, the runner tools table); - tests that only use a committed file as input to source code.
Expected behavior
- Take the allow list to zero, one area per pull request (k8s manifests, workflows, monitoring, commands, images and tools). Each pull request lowers the counts in
config_reads.tomland closes nothing else. - For each test, choose one, and give the reason in the PR body:
- delete it, if it asserts a value (the owner decision covers security and privacy values too);
- replace it with a test of source code on a fixture, if the source code reads the file at run time (the fixture holds the shape, not the live values);
- move the rule to a tool that runs in CI (kubeconform fix(ci): validate the k8s manifests against a schema in CI #5084, kube-linter ci(k8s): Run kube-linter on the rendered manifests in CI #6068, Trivy config, zizmor, actionlint), if a tool covers it.
- Remove the CI or image steps that only served deleted tests (helm or vale installs, if any are left).
- Close when
config_reads.tomlis empty and the guard allows no read.
Related
- test(k8s): Drop the tests that repeat third-party version pins #6060, fix(k8s): Drop the tests that assert values of manifests and config #6075, fix(roadmap): Stop plan rules that ask for config value tests #6080, ci(k8s): Run kube-linter on the rendered manifests in CI #6068, fix(ci): validate the k8s manifests against a schema in CI #5084.
Alternatives check of 2026-11-26: not-applicable.
Class: test, no model call.
Tool: none found.
Activity
dan-petty commentedon Nov 17, 2026
Both follow the owner decision on config value tests, but #6080 prevents new ones while this item deletes the existing 556.dan-petty commentedon Nov 17, 2026
Two findings from the spec rewrite of #6083 (k8s area, branch
docs/6083-k8s-spec-proofs):tests/core/test_k8s_local_path_placement.pyreads the chart values files and the manifests underk8s/throughtests.support.k8s_tree(chart_values,manifests,pinned_charts) and asserts the node affinity of each pod on a claim.tests/gate/tree_checks/config_reads.tomldoes not list the module, soconfig_values.pydoes not count reads through that helper. The speclocal-path-volume-placementnow proves the rule with a live check (kubectl get pods --all-namespaces -o json), so the test can go with the k8s area.openspec/specs/service-account-tokens/spec.mddescribes the token check oftests/invariants/test_k8s_manifests.py(_TOKEN_EXCEPTIONS). When that test goes, remove the requirement in the same pull request. The other requirement of the spec now proves the rule with a live check.dan-petty commentedon Nov 17, 2026
The k8s area is #6119, pull request #6124 (draft). The allow list falls from 556 tests in 89 modules to 413 in 65.
Guard gaps found in this area:
tests.support.k8s_tree(manifests,chart_valuesand the others), and it countedREPO_ROOT / "k8s" / "README.md"as a read through its partREPO_ROOT / "k8s".REPO_ROOT.joinpath(*parts)from literal arguments is not counted (tests/core/test_renovate_config.py), and a support module that readsk8s/is skipped (tests/support/fakes/cluster_jobs.pyreadsk8s/devops/cronjob.yamlandcronjob-stage.yaml; its users are not counted).tests/support/job_templates.pyof fix(k8s): Take the k8s area of the config-read list to zero #6124 builds a CronJob in the shape of a template and can replace those reads.fix(k8s): take the k8s area of the config-read allow list to zero
fix(k8s): take the k8s area of the config-read allow list to zero
fix(k8s): Take the k8s area of the config-read list to zero (#6124)