Skip to content

fix(k8s): drop the pin checks of SearXNG and the chart tables #6063

Description

@dan-petty

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:

Owner decisions, 2026-11-16 (#6060 (comment)):

  1. SearXNG gate: remove it. The SEARXNG_IMAGE equality gate in tests/gate/k8s_checks/devops_runtime.py and the SearXNG engine-names tests (tests/invariants/test_k8s_searxng.py, tests/k8s/test_searxng_check.py saved-reply test) go; a SearXNG image updates like any other image.
  2. 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

  1. 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-check holds 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.json describe 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

  1. added
    type/bug
    scope/k8s
    source/agent
    status/new
    effort/medium
    value/high
    on Nov 16, 2026
  2. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P0-Critical. CI fails on every SearXNG and chart Renovate update until a person edits tests by hand.
    • Related: fix(deps): give SearXNG its own Renovate branch behind approval #6051, which asks for a different change. Both address the SearXNG gate friction on Renovate updates, but 6051 isolates SearXNG in its own branch while the candidate removes the gate entirely.
  3. added
    priority/p0-critical
    on Nov 16, 2026
  4. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 16, 2026
  6. added a commit that references this issue on Nov 16, 2026
    75e0629
  7. removed
    status/in-review
    on Nov 17, 2026
  8. added a commit that references this issue on Nov 17, 2026
  9. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-17 03:03 UTC

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/mediumpriority/p0-criticalscope/k8ssource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions