Repository navigation
Description
Problem Description
Two kinds of test fail at each Renovate update of a third-party pin, and a person must edit the tests before the update can merge:
- SearXNG: the
k8srow ofdevops cicompares the image of DeploymentsearxngwithSEARXNG_IMAGE(tests/gate/k8s_checks/devops_runtime.py).tests/invariants/test_k8s_searxng.pyandtests/k8s/test_searxng_check.pycompare the engine names file and the saved reply with the pinned image. Example: PR chore(deps): update container images (patch) #6029. - Charts: the ServiceAccount claim table (
CHART_CLAIMS,tests/core/test_k8s_local_path_placement.py) and the token table (_CHART_TOKENS,tests/invariants/test_k8s_manifests.py) key each entry on the chart and its version, so each chart bump fails until the keys move. Examples: PR fix(deps): update helm charts (patch) #6046 and PR chore(deps): update Helm release grafana to v14.4.2 #6055.
Owner decisions, 2026-11-16 (#6060 (comment)):
- SearXNG gate: remove it. The
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.- ServiceAccount claim and token tables: drop the chart versions from the tables. The token rules of the tables stay, checked by code, not by a version match; a chart update no longer touches the tables.
Reproduction Steps
- Look at the failed checks of PR chore(deps): update container images (patch) #6029 (SearXNG) and PR chore(deps): update Helm release grafana to v14.4.2 #6055 (grafana 14.4.2).
Expected vs Actual Behavior
Expected:
- The gate row and the SearXNG tests that compare a file or a constant with the pinned image are gone.
devops k8s searxng-checkholds no image constant that only matches the pin. - The claim and token tables key each entry on the chart name only. A test still fails when a pinned chart has no entry, and the token and claim rules stay.
- The docs, the specs and the SearXNG note of
.github/renovate.jsondescribe the result.
Actual: each SearXNG bump and each chart bump fails until a person edits the tests.
Environment Diagnostics
Self-hosted Renovate (#6014).
Logs, Traces, or Terminal Output
PR #6055: test_the_claim_table_names_each_chart_at_the_version_that_an_application_pins and test_the_chart_table_names_each_chart_at_the_version_that_an_application_pins fail on grafana 14.4.2.
Source: #6060 (comment)
Proposed design
Problem statement
Each Renovate update of the SearXNG image or of a pinned chart fails tests that compare the new pin with a saved constant or a table key. A person must edit the tests before the update can merge. This change removes the SearXNG pin comparisons and keys the chart tables on chart names only.
Acceptance criteria
Requirement: SearXNG gate drops image equality
The k8s gate SHALL NOT compare the image of Deployment searxng with SEARXNG_IMAGE.
Scenario: Gate file has no SearXNG image assertion
- WHEN A test reads tests/gate/k8s_checks/devops_runtime.py
- THEN The file has no import of SEARXNG_IMAGE and no assertion that the searxng container image equals SEARXNG_IMAGE.
Requirement: SearXNG tests drop pin comparisons
The SearXNG tests SHALL NOT compare an engine-names fixture or a saved reply fixture with the pinned image.
Scenario: SearXNG test files have no pin comparison
- WHEN A test reads tests/invariants/test_k8s_searxng.py and tests/k8s/test_searxng_check.py
- THEN The files have no assertion that the ENGINE_NAMES header or search_reply_image.txt equals the image tag or SEARXNG_IMAGE.
Requirement: searxng-check drops pin constant
The devops k8s searxng-check code SHALL hold no image constant that only matches the pinned image.
Scenario: Check module has no SEARXNG_IMAGE
- WHEN A test reads src/devops_cli/k8s/searxng_check.py and tests/k8s/test_searxng_check.py
- THEN The module defines no SEARXNG_IMAGE constant and the test file does not import or assert it.
Requirement: Claim table keys chart name only
The CHART_CLAIMS table SHALL key each entry on the chart name only and SHALL fail when a pinned chart has no entry.
Scenario: Claim table ignores chart version
- WHEN A test reads the keys of CHART_CLAIMS and the chart names that Argo CD Applications pin
- THEN Each key is a chart name with no version, each pinned chart name has an entry, and the claim rules remain.
Requirement: Token table keys chart name only
The _CHART_TOKENS table SHALL key each entry on the chart name only and SHALL fail when a pinned chart has no entry.
Scenario: Token table ignores chart version
- WHEN A test reads the keys of _CHART_TOKENS and the chart names that Argo CD Applications pin
- THEN Each key is a chart name with no version, each pinned chart name has an entry, and the token rules remain.
Requirement: SearXNG documents describe normal image updates
The SearXNG documents SHALL state that a SearXNG image updates like any other image.
Scenario: SearXNG docs have no test-edit instruction
- WHEN A test reads docs/CLUSTER.md, openspec/specs/searxng-service/spec.md, and .github/renovate.json
- THEN No text states that a SearXNG bump needs a test edit or a new saved reply.
Requirement: Chart documents describe name-only tables
The chart documents SHALL state that the claim and token tables use chart names and no chart versions.
Scenario: Chart docs have no version-key instruction
- WHEN A test reads the changed chart documents and the test docstrings of tests/core/test_k8s_local_path_placement.py and tests/invariants/test_k8s_manifests.py
- THEN No text states that a chart table key holds a chart version.
Existing Tool Considered
No alternatives check has run. The change deletes repository-specific tests and updates documents. It adds no code, so no open, maintained tool or library covers it and no build cost applies.
Key questions
- Should the SearXNG image equality gate and pin-comparison tests stay?: No. Remove the gate assertion, the SEARXNG_IMAGE constant, the engine-names header comparison, and the saved-reply image comparison. Keep the SearXNG tests that do not compare with the pin. (best practice) [sources: tests/gate/k8s_checks/devops_runtime.py, tests/invariants/test_k8s_searxng.py, tests/k8s/test_searxng_check.py, src/devops_cli/k8s/searxng_check.py]
- Chosen: Remove SearXNG pin comparisons. Owner decision 1 and the expected behavior remove each test that compares a file or a constant with the pinned image.
- Rejected: Keep SearXNG pin comparisons. Each SearXNG image bump fails until a person edits the tests.
- Should the claim and token tables keep chart versions in their keys?: No. Drop the versions. Key each entry on the chart name only. Keep the claim rules and the token rules. (best practice) [sources: tests/core/test_k8s_local_path_placement.py, tests/invariants/test_k8s_manifests.py]
- Chosen: Key tables on chart name only. Owner decision 2 removes the chart version from each key and keeps a test for a missing chart entry.
- Rejected: Keep chart version in each key. Each chart bump fails until a person moves the keys.
- Which SearXNG tests must remain after the pin comparisons go?: Keep the manifest and settings tests. Remove only the tests that compare the ENGINE_NAMES header or search_reply_image.txt with the pinned image. Remove the SEARXNG_IMAGE constant and each test that imports it. (best practice) [sources: tests/invariants/test_k8s_searxng.py, tests/k8s/test_searxng_check.py, src/devops_cli/k8s/searxng_check.py:50]
- Chosen: Remove only pin comparisons. The expected behavior removes the tests that compare a file or a constant with the pin and keeps the other SearXNG checks.
- Rejected: Remove all SearXNG tests. The manifest and settings checks still protect the deployment and do not fail on an image bump.
- How should the chart tables signal a missing pinned chart?: Collect the chart names that Argo CD Applications pin. Assert that each name is a key in CHART_CLAIMS and in _CHART_TOKENS. Do not use a version in the key. (best practice) [sources: tests/core/test_k8s_local_path_placement.py, tests/invariants/test_k8s_manifests.py]
- Chosen: Name-only key with missing-entry test. The expected behavior keeps a failure for a pinned chart with no entry and removes the version from the key.
- Rejected: Name-and-version key. A chart bump fails until a person edits the key.
- Rejected: Remove the tables. The claim and token rules must stay.
- Which documents and specs must describe the result?: Update docs/CLUSTER.md, openspec/specs/searxng-service/spec.md, and .github/renovate.json. Remove the instruction that a SearXNG bump needs a test edit. State that the chart tables key on chart names only. (best practice) [sources: docs/CLUSTER.md, openspec/specs/searxng-service/spec.md, .github/renovate.json]
- Chosen: Update the named documents and specs. The issue expected behavior names the docs, the specs, and the SearXNG note of .github/renovate.json.
- Rejected: Change only the tests. The documents and specs would still tell a person to edit tests after an image or chart bump.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 16, 2026
CI fails on every SearXNG and chart Renovate update until a person edits tests by hand.Both address the SearXNG gate friction on Renovate updates, but 6051 isolates SearXNG in its own branch while the candidate removes the gate entirely.devops-cli-service commentedon Nov 16, 2026
Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.
fix(k8s): drop the pin checks of SearXNG and the chart tables
chore(main): release 0.169.3 (#6093)
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