Skip to content

test: Take the config-read allow list of the guard to zero #6082

Open
1 of 1 issue completed
Open

Description

@dan-petty

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.toml and closes nothing else.
  • For each test, choose one, and give the reason in the PR body:
  • Remove the CI or image steps that only served deleted tests (helm or vale installs, if any are left).
  • Close when config_reads.toml is empty and the guard allows no read.

Related

Alternatives check of 2026-11-26: not-applicable.
Class: test, no model call.
Tool: none found.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor
  2. added
    type/test
    source/agent
    status/new
    value/medium
    effort/high
    priority/p2-medium
    owner/agent
    on Nov 17, 2026
  3. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor

    Two findings from the spec rewrite of #6083 (k8s area, branch docs/6083-k8s-spec-proofs):

    1. The guard misses one module. tests/core/test_k8s_local_path_placement.py reads the chart values files and the manifests under k8s/ through tests.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.toml does not list the module, so config_values.py does not count reads through that helper. The spec local-path-volume-placement now proves the rule with a live check (kubectl get pods --all-namespaces -o json), so the test can go with the k8s area.
    2. A spec names the check of a test that this item deletes. The requirement "The check finds each token that a pod mounts" of openspec/specs/service-account-tokens/spec.md describes the token check of tests/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.
  4. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor

    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:

    • Fixed in fix(k8s): Take the k8s area of the config-read list to zero #6124: the guard did not count a call of a reader of tests.support.k8s_tree (manifests, chart_values and the others), and it counted REPO_ROOT / "k8s" / "README.md" as a read through its part REPO_ROOT / "k8s".
    • Still open for the next areas: a helper that builds REPO_ROOT.joinpath(*parts) from literal arguments is not counted (tests/core/test_renovate_config.py), and a support module that reads k8s/ is skipped (tests/support/fakes/cluster_jobs.py reads k8s/devops/cronjob.yaml and cronjob-stage.yaml; its users are not counted). tests/support/job_templates.py of 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highowner/agentpriority/p2-mediumsource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions