Repository navigation
Description
Problem
Tests repeat the exact versions of third-party artifacts that the manifests pin: chart versions, image tags and digests, tool versions. When Renovate updates a pin, these tests fail, although no project code changed. On 2026-11-16 the Renovate pull requests #6046 (Helm chart patches) and #6029 (container image patches) failed on such tests: tests/invariants/test_k8s_argocd_apps.py:196 ('4.6.1' == '4.6.0'), the chart table of tests/core/test_k8s_local_path_placement.py, tests/commands/k8s/test_k8s_qdrant_security.py:99, and tests/invariants/test_k8s_searxng.py:87. About 19 test files under tests/invariants, tests/k8s, tests/core/test_k8s*, tests/commands/k8s and tests/gate/k8s_checks hold version or digest literals.
Owner, 2026-11-16: "I'm seeing unnecessary tests for items that are not project code, like pinned k8s manifest versions. This is breaking renovate workflows and adding to the rats nest that is the current test sprawl."
Expected behavior
- A test checks project code and project rules, not the value of a third-party pin. Delete each assertion that repeats an exact third-party version, tag or digest (and the test, if that is all it does). Keep a check of a rule, for example "each image is pinned by digest", "a chart version is semver", or "the Application and the vendored chart agree" where the vendored copy is project code that the cluster runs.
- A table in code or docs that repeats a pinned version reads it from the manifest, or drops the version.
- A file derived from a pinned artifact (for example the SearXNG engine-names file, a vendored chart) is generated where it is used, or regenerated by a Renovate post-upgrade task after fix(k8s): Keep the Renovate token away from upgrade tasks #6020; a test does not hold it to the pin.
docs/TESTING.mdstates the rule, and a test-tree check (or an ast-grep rule) refuses a new test that compares with a literal version, tag or digest that a manifest ofk8s/pins.- The count of tests and test lines falls, and a Renovate update of a pin needs no test change.
Activity
dan-petty commentedon Nov 16, 2026
Renovate PRs fail in CI on these tests, blocking dependency updates and adding manual work.Both concern the SearXNG version pin, but #5093 updates the pin while the candidate removes the test that asserts it.dan-petty commentedon Nov 16, 2026
Owner, 2026-11-16 (wider than the issue text): "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."
So the scope of this item is every test that reads a manifest, a ConfigMap template, a gateway or Renovate config, a workflow file or another config file and asserts a value in it, not only third-party version pins. That includes recent tests such as
test_no_openrouter_route_uses_the_floor_variant(#5982),tests/config/test_roadmap_model_jobs.py(#6019), the automerge-scope test oftests/core/test_renovate_config.py(#6036), the per-job model and doubled-limit tests oftests/config/test_k8s_devops_runtime.py, and the value checks undertests/invariants/test_k8s_*,tests/k8s/,tests/core/test_k8s*andtests/commands/k8s/.What stays:
renovate-config-validator), which check form and schema, not a chosen value.List each gray case (for example the gate checks of
tests/gate/k8s_checks/, which run the admission policies) in the PR with a proposed decision for the owner, instead of deciding it alone.dan-petty commentedon Nov 16, 2026
Owner, 2026-11-16 (a second rule for docs/TESTING.md in this item): "we shouldn't create unit tests for things that are better measured with end to end and integration tests". A behavior that spans components (the Service and GitHub, a Job in the cluster, the gateway and a provider, a CLI command and its subprocesses) is measured by an integration or end-to-end test at the real edge or a contract-faithful fake of it (ADR 0007: tests double only process edges), not by unit tests that rebuild the flow with mocks. This item writes the rule and lists the clearest cases; it does not rewrite the unit suite.
dan-petty commentedon Nov 16, 2026
Owner decisions, 2026-11-16 (answered directly to the owner's session):
SEARXNG_IMAGEequality gate intests/gate/k8s_checks/devops_runtime.pyand the SearXNG engine-names tests (tests/invariants/test_k8s_searxng.py,tests/k8s/test_searxng_check.pysaved-reply test) go; a SearXNG image updates like any other image.renovate.jsonvalues (renovate-config-validatorin CI checks the form).dan-petty commentedon Nov 16, 2026
Owner, 2026-11-16 22:55Z (direct): "remove any tests or workflows that will block renovate updates". This approves the removal of each test, gate check (
tests/gate/k8s_checks/, for example theCRAWL4AI_IMAGEequality assert) and CI workflow step that fails a Renovate pull request when the update breaks no project code. The SearXNG gate and the token-table versions are in the PR of the Renovate fixer (owner decisions above). Where a Renovate configuration change removes the failure (for examplefix(deps)for an update of runtime files), the config change is used, per the owner rule of 21:45Z.fix(deps): give SearXNG its own Renovate branch behind approval
8 remaining items
fix(roadmap): Stop plan rules that ask for config value tests (#6091)
devops-cli-service commentedon Nov 17, 2026
Released in v0.169.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.169.3
devops-cli-service commentedon Nov 17, 2026
Live since 2026-11-17 03:03 UTC
docs(openspec): Name a command proof in the k8s and stack scenarios
docs(openspec): name the command proof of the DCGM counter list scenario
docs(openspec): Name a command proof in the k8s and stack scenarios (#…
fix(k8s): Take the k8s area of the config-read list to zero (#6124)
docs(openspec): Name a command proof in the image and pin scenarios (#…
dan-petty commentedon Nov 19, 2026
Owner decision of 2026-11-19: the trivy-action input assertions (severity, ignore-unfixed and exit-code in test_mcp_server_image.py:49-67, test_runner_image.py:103-113 and test_service_image.py:111-141) go under the owner rule of 2026-11-16 (no config-value tests). #6405 deletes them when one image-scan action holds the threshold in one place.
refactor(deps): take the shared Renovate preset from infra (#6738)